hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
提交 | 用户 | 时间
58d006 1 .lighter { font-weight: lighter; }
A 2 .bolder { font-weight: bolder; }
3 .inline { display: inline-block !important; }
4 .block { display: block !important; }
5
6 .center , .align-center{ text-align: center !important; }
7 .align-left { text-align: left !important; }
8 .align-right { text-align: right !important; }
9 .align-justify { text-align: justify; }
10
11 .middle { vertical-align: middle; }
12 .align-middle { vertical-align: middle !important; }
13 .align-top { vertical-align: top !important; }
14 .align-bottom { vertical-align: bottom !important; }
15
16 .position-relative, .pos-rel { position: relative; }
17 .position-absolute, .pos-abs { position: absolute; }
18
19 .no-float { float: none !important; }
20
21 .line-height-normal { line-height: normal !important; }
22 .line-height-0 { line-height: 0 !important; }
23 .line-height-1 { line-height: 1 !important; }
24 .line-height-125 { line-height: 1.25 !important; }
25 .line-height-150 { line-height: 1.5 !important; }
26
27
28 .dark { color: @ace-dark !important; }
29 .white { color: @ace-white !important; }
30 .red { color: @ace-red !important; }
31 .red2 { color: @ace-red2 !important; }
32 .light-red { color: @ace-light-red !important; }
33 .blue { color: @ace-blue !important; }
34 .light-blue { color: @ace-light-blue !important; }
35 .green { color: @ace-green !important; }
36 .light-green { color: @ace-light-green !important;}
37 .orange { color: @ace-orange !important; }
38 .orange2 { color: @ace-orange2 !important; }
39 .light-orange {color: @ace-light-orange !important;}
40 .purple { color: @ace-purple !important; }
41 .pink { color: @ace-pink !important; }
42 .pink2 { color: @ace-pink2  !important; }
43 .brown { color: @ace-brown !important; }
44 .grey { color: @ace-grey !important; }
45 .light-grey { color: @ace-light-grey !important; }
46
47
48 .biggerX (@index) when (@index < 310) {
49     .bigger-@{index} { font-size: unit(@index,~"%") !important; }
50     .biggerX(@index + 10);
51 }
52 .biggerX(110);
53 .bigger-115 { font-size: 115% !important;}
54 .bigger-125 { font-size: 125% !important;}
55 .bigger-175 { font-size: 175% !important; }
56 .bigger-225 { font-size: 225% !important; }
57 .bigger-275 { font-size: 275% !important; }
58
59 .smallerX (@index) when (@index > 10) {
60     .smaller-@{index} { font-size: unit(@index,~"%") !important; }
61     .smallerX(@index - 10);
62 }
63 .smallerX(90);
64 .smaller-75 { font-size: 75% !important;}
65
66 .widthX (@index) when (@index < 105) {
67     .width-@{index} { width: unit(@index,~"%") !important; }
68     .widthX(@index + 5);
69 }
70 .widthX(20);
71 .width-75 { width: 75% !important;}
72 .width-25 { width: 25% !important;}
73 .width-auto { width: auto !important; }
74 .height-auto { height: auto !important; }
75
76 .no-padding { padding: 0 !important; }
77 .no-padding-bottom { padding-bottom: 0 !important; }
78 .no-padding-top { padding-top: 0 !important; }
79 .no-padding-left { padding-left: 0 !important; }
80 .no-padding-right { padding-right: 0 !important; }
81 .no-margin { margin: 0 !important; }
82 .no-margin-bottom { margin-bottom: 0 !important; }
83 .no-margin-top { margin-top: 0 !important; }
84 .no-margin-left { margin-left: 0 !important; }
85 .no-margin-right { margin-right: 0 !important; }
86
87 .no-border { border-width: 0; }
88 .no-border-bottom { border-bottom-width: 0; }
89 .no-border-top { border-top-width: 0; }
90 .no-border-left { border-left-width: 0; }
91 .no-border-right { border-right-width: 0; }
92
93 /**
94 .no-underline {
95  text-decoration: none !important;
96 }
97 .no-hover-underline:hover {
98  text-decoration: none !important;
99 }
100 .no-outline:focus {
101  outline: none !important;
102 }
103
104 .no-box-shadow {
105  .box-shadow(none) !important;
106 }
107
108 .overflow-auto {overflow: auto !important;}
109 .overflow-visible {overflow: visible !important;}
110 */
111
112 .overflow-hidden {overflow: hidden !important;}
113 .overflow-scroll {overflow-x: hidden !important; overflow-y: scroll !important;}
114
115 .no-radius {
116  .border-radius(0) !important;
117 }
118 .no-text-shadow {
119  text-shadow:none !important;
120 }
121
122 //<hr /> like spacing by using div, e.g <div class="hr hr-32"></div>
123 .hr {
124  display:block;
125  height: 0;
126  overflow: hidden;
127  font-size: 0;
128  border-width: 1px 0 0 0;
129  border-top: 1px solid #E3E3E3;
130  margin: 12px 0;
131  border-top-color: rgba(0,0,0,0.11);
132 }
133 .hr-double {
134  height: 3px;
135  border-top: 1px solid #E3E3E3;
136  border-bottom: 1px solid #E3E3E3;
137  
138  border-top-color: rgba(0,0,0,0.11);
139  border-bottom-color: rgba(0,0,0,0.11);
140 }
141 .hr.dotted, .hr-dotted { border-style: dotted;}
142
143 .hrX (@index) when (@index > 0) {
144     .hr-@{index}, .hr@{index} { margin:unit(@index,px) 0; }
145     .hrX(@index - 2);
146 }
147 .hrX(32);
148
149
150 //some spacing classes, use like <div class="space-24"></div>
151 .space() {
152     max-height: 1px;
153     min-height: 1px;
154     overflow: hidden;
155 }
156 .space { .space(); margin: 12px 0; }
157 [class*="vspace-"] { display: none;} //visible only on smaller devices where columns are stacked on top of each other
158
159 .spaceX (@index) when (@index > 0) {
160     .space-@{index} { .space(); margin: unit(@index,px) 0 unit(@index - 1,px); }
161     [class*="vspace-@{index}"]
162     {
163         .space();
164         margin:unit(@index,px) 0 unit(@index - 1,px) 0;
165     }
166     .spaceX(@index - 2);
167 }
168 .spaceX(32);//produce spaces
169 .space-0 , [class*="vspace-0"] { .space(); margin: 0; }
170
171 @media only screen and (max-width: @screen-tiny-max) {
172     [class*="vspace-"][class*="-xs"] {
173         display: block;
174     }
175 }
176 @media only screen and (max-width: @screen-xs-max) {
177     [class*="vspace-"][class*="-sm"] {
178          display: block;
179     }
180 }
181 @media only screen and (max-width: @screen-sm-max) {
182     [class*="vspace-"][class*="-md"] {
183          display: block;
184     }
185 }
186 @media only screen and (max-width: @screen-md-max) {
187     [class*="vspace-"][class*="-lg"] {
188          display: block;
189     }
190 }
191
192
193
194
195 //headers
196 .header {
197  line-height: 28px;
198  margin-bottom: 16px;
199  margin-top: 18px;
200  padding-bottom: 4px;
201  border-bottom: 1px solid #CCC;
202  
203  &.less-margin {
204     margin-top: 10px;
205     margin-bottom: 10px;
206  }
207  
208  &.blue {
209     border-bottom-color: desaturate(lighten(@ace-blue, 35%), 10%);
210  }
211  &.green {
212     border-bottom-color: desaturate(lighten(@ace-green, 35%), 6%);
213  }
214  &.purple {
215     border-bottom-color: desaturate(lighten(@ace-purple, 28%), 5%);
216  }
217  &.orange {
218     border-bottom-color: desaturate(lighten(@ace-orange, 25%), 5%);
219  }
220  &.orange2 {
221     border-bottom-color: desaturate(lighten(@ace-orange2, 20%), 5%);
222  }
223  &.red {
224     border-bottom-color: desaturate(lighten(@ace-red, 30%), 5%);
225  }
226  &.grey {
227     border-bottom-color: desaturate(lighten(@ace-grey, 30%), 5%);
228  }
229  &.pink {
230     border-bottom-color: desaturate(lighten(@ace-pink, 32%), 5%);
231  }
232  &.pink2 {
233     border-bottom-color: desaturate(lighten(@ace-pink2, 20%), 5%);
234  }
235  &.light-blue {
236     border-bottom-color: desaturate(lighten(@ace-light-blue, 15%), 5%);
237  }
238  &.light-red {
239     border-bottom-color: desaturate(lighten(@ace-light-red, 15%), 5%);
240  }
241  &.light-green {
242     border-bottom-color: desaturate(lighten(@ace-light-green, 15%), 5%);
243  }
244  &.brown {
245     border-bottom-color: desaturate(lighten(@ace-brown, 32%), 5%);
246  }
247
248   > .@{icon} {
249     margin-right: 2px;
250   }
251 }
252
253
254
255
256 .action-buttons a {
257   margin: 0 3px;
258   display: inline-block;
259   opacity: 0.85;
260    .transition(~"all 0.1s");
261
262   &:hover {
263     text-decoration: none;
264     opacity: 1;
265     .transform(~"scale(1.2)");
266   }
267 }
268
269