Show More
@@ -1,523 +1,525 b'' | |||
|
1 | 1 | |
|
2 | 2 | |
|
3 | 3 | //BUTTONS |
|
4 | 4 | button, |
|
5 | 5 | .btn, |
|
6 | 6 | input[type="button"] { |
|
7 | 7 | -webkit-appearance: none; |
|
8 | 8 | display: inline-block; |
|
9 | 9 | margin: 0 @padding/3 0 0; |
|
10 | 10 | padding: @button-padding; |
|
11 | 11 | text-align: center; |
|
12 | 12 | font-size: @basefontsize; |
|
13 | 13 | line-height: 1em; |
|
14 | 14 | font-family: @text-light; |
|
15 | 15 | text-decoration: none; |
|
16 | 16 | text-shadow: none; |
|
17 | 17 | color: @grey2; |
|
18 | 18 | background-color: white; |
|
19 | 19 | background-image: none; |
|
20 | 20 | border: none; |
|
21 | 21 | .border ( @border-thickness-buttons, @grey5 ); |
|
22 | 22 | .border-radius (@border-radius); |
|
23 | 23 | cursor: pointer; |
|
24 | 24 | white-space: nowrap; |
|
25 | 25 | -webkit-transition: background .3s,color .3s; |
|
26 | 26 | -moz-transition: background .3s,color .3s; |
|
27 | 27 | -o-transition: background .3s,color .3s; |
|
28 | 28 | transition: background .3s,color .3s; |
|
29 | 29 | box-shadow: @button-shadow; |
|
30 | 30 | -webkit-box-shadow: @button-shadow; |
|
31 | 31 | |
|
32 | 32 | |
|
33 | 33 | |
|
34 | 34 | a { |
|
35 | 35 | display: block; |
|
36 | 36 | margin: 0; |
|
37 | 37 | padding: 0; |
|
38 | 38 | color: inherit; |
|
39 | 39 | text-decoration: none; |
|
40 | 40 | |
|
41 | 41 | &:hover { |
|
42 | 42 | text-decoration: none; |
|
43 | 43 | } |
|
44 | 44 | } |
|
45 | 45 | |
|
46 | 46 | &:focus, |
|
47 | 47 | &:active { |
|
48 | 48 | outline:none; |
|
49 | 49 | } |
|
50 | ||
|
50 | 51 | &:hover { |
|
51 | 52 | color: @rcdarkblue; |
|
52 |
background-color: @ |
|
|
53 | .border ( @border-thickness, @grey4 ); | |
|
53 | background-color: @grey6; | |
|
54 | ||
|
55 | } | |
|
56 | ||
|
57 | &.btn-active { | |
|
58 | color: @rcdarkblue; | |
|
59 | background-color: @grey6; | |
|
54 | 60 | } |
|
55 | 61 | |
|
56 | 62 | .icon-remove { |
|
57 | 63 | display: none; |
|
58 | 64 | } |
|
59 | 65 | |
|
60 | 66 | //disabled buttons |
|
61 | 67 | //last; overrides any other styles |
|
62 | 68 | &:disabled { |
|
63 | 69 | opacity: .7; |
|
64 | 70 | cursor: auto; |
|
65 | 71 | background-color: white; |
|
66 | 72 | color: @grey4; |
|
67 | 73 | text-shadow: none; |
|
68 | 74 | } |
|
69 | 75 | |
|
70 | 76 | &.no-margin { |
|
71 | 77 | margin: 0 0 0 0; |
|
72 | 78 | } |
|
73 | 79 | |
|
74 | &.btn-active { | |
|
75 | color: @rcdarkblue; | |
|
76 | background-color: @white; | |
|
77 | .border ( @border-thickness, @rcdarkblue ); | |
|
78 | } | |
|
80 | ||
|
79 | 81 | |
|
80 | 82 | } |
|
81 | 83 | |
|
82 | 84 | |
|
83 | 85 | .btn-default { |
|
84 | 86 | border: @border-thickness solid @grey5; |
|
85 | 87 | background-image: none; |
|
86 | 88 | color: @grey2; |
|
87 | 89 | |
|
88 | 90 | a { |
|
89 | 91 | color: @grey2; |
|
90 | 92 | } |
|
91 | 93 | |
|
92 | 94 | &:hover, |
|
93 | 95 | &.active { |
|
94 | 96 | color: @rcdarkblue; |
|
95 | 97 | background-color: @white; |
|
96 | 98 | .border ( @border-thickness, @grey4 ); |
|
97 | 99 | |
|
98 | 100 | a { |
|
99 | 101 | color: @grey2; |
|
100 | 102 | } |
|
101 | 103 | } |
|
102 | 104 | &:disabled { |
|
103 | 105 | .border ( @border-thickness-buttons, @grey5 ); |
|
104 | 106 | background-color: transparent; |
|
105 | 107 | } |
|
106 | 108 | &.btn-active { |
|
107 | 109 | color: @rcdarkblue; |
|
108 | 110 | background-color: @white; |
|
109 | 111 | .border ( @border-thickness, @rcdarkblue ); |
|
110 | 112 | } |
|
111 | 113 | } |
|
112 | 114 | |
|
113 | 115 | .btn-primary, |
|
114 | 116 | .btn-small, /* TODO: anderson: remove .btn-small to not mix with the new btn-sm */ |
|
115 | 117 | .btn-success { |
|
116 | 118 | .border ( @border-thickness, @rcblue ); |
|
117 | 119 | background-color: @rcblue; |
|
118 | 120 | color: white; |
|
119 | 121 | |
|
120 | 122 | a { |
|
121 | 123 | color: white; |
|
122 | 124 | } |
|
123 | 125 | |
|
124 | 126 | &:hover, |
|
125 | 127 | &.active { |
|
126 | 128 | .border ( @border-thickness, @rcdarkblue ); |
|
127 | 129 | color: white; |
|
128 | 130 | background-color: @rcdarkblue; |
|
129 | 131 | |
|
130 | 132 | a { |
|
131 | 133 | color: white; |
|
132 | 134 | } |
|
133 | 135 | } |
|
134 | 136 | &:disabled { |
|
135 | 137 | background-color: @rcblue; |
|
136 | 138 | } |
|
137 | 139 | } |
|
138 | 140 | |
|
139 | 141 | .btn-secondary { |
|
140 | 142 | &:extend(.btn-default); |
|
141 | 143 | |
|
142 | 144 | background-color: white; |
|
143 | 145 | |
|
144 | 146 | &:focus { |
|
145 | 147 | outline: 0; |
|
146 | 148 | } |
|
147 | 149 | |
|
148 | 150 | &:hover { |
|
149 | 151 | &:extend(.btn-default:hover); |
|
150 | 152 | } |
|
151 | 153 | |
|
152 | 154 | &.btn-link { |
|
153 | 155 | &:extend(.btn-link); |
|
154 | 156 | color: @rcblue; |
|
155 | 157 | } |
|
156 | 158 | |
|
157 | 159 | &:disabled { |
|
158 | 160 | color: @rcblue; |
|
159 | 161 | background-color: white; |
|
160 | 162 | } |
|
161 | 163 | } |
|
162 | 164 | |
|
163 | 165 | .btn-warning, |
|
164 | 166 | .btn-danger, |
|
165 | 167 | .revoke_perm, |
|
166 | 168 | .btn-x, |
|
167 | 169 | .form .action_button.btn-x { |
|
168 | 170 | .border ( @border-thickness, @alert2 ); |
|
169 | 171 | background-color: white; |
|
170 | 172 | color: @alert2; |
|
171 | 173 | |
|
172 | 174 | a { |
|
173 | 175 | color: @alert2; |
|
174 | 176 | } |
|
175 | 177 | |
|
176 | 178 | &:hover, |
|
177 | 179 | &.active { |
|
178 | 180 | .border ( @border-thickness, @alert2 ); |
|
179 | 181 | color: white; |
|
180 | 182 | background-color: @alert2; |
|
181 | 183 | |
|
182 | 184 | a { |
|
183 | 185 | color: white; |
|
184 | 186 | } |
|
185 | 187 | } |
|
186 | 188 | |
|
187 | 189 | i { |
|
188 | 190 | display:none; |
|
189 | 191 | } |
|
190 | 192 | |
|
191 | 193 | &:disabled { |
|
192 | 194 | background-color: white; |
|
193 | 195 | color: @alert2; |
|
194 | 196 | } |
|
195 | 197 | } |
|
196 | 198 | |
|
197 | 199 | .btn-approved-status { |
|
198 | 200 | .border ( @border-thickness, @alert1 ); |
|
199 | 201 | background-color: white; |
|
200 | 202 | color: @alert1; |
|
201 | 203 | |
|
202 | 204 | } |
|
203 | 205 | |
|
204 | 206 | .btn-rejected-status { |
|
205 | 207 | .border ( @border-thickness, @alert2 ); |
|
206 | 208 | background-color: white; |
|
207 | 209 | color: @alert2; |
|
208 | 210 | } |
|
209 | 211 | |
|
210 | 212 | .btn-sm, |
|
211 | 213 | .btn-mini, |
|
212 | 214 | .field-sm .btn { |
|
213 | 215 | padding: @padding/3; |
|
214 | 216 | } |
|
215 | 217 | |
|
216 | 218 | .btn-xs { |
|
217 | 219 | padding: @padding/4; |
|
218 | 220 | } |
|
219 | 221 | |
|
220 | 222 | .btn-lg { |
|
221 | 223 | padding: @padding * 1.2; |
|
222 | 224 | } |
|
223 | 225 | |
|
224 | 226 | .btn-group { |
|
225 | 227 | display: inline-block; |
|
226 | 228 | .btn { |
|
227 | 229 | float: left; |
|
228 | 230 | margin: 0 0 0 0; |
|
229 | 231 | // first item |
|
230 | 232 | &:first-of-type:not(:last-of-type) { |
|
231 | 233 | border-radius: @border-radius 0 0 @border-radius; |
|
232 | 234 | |
|
233 | 235 | } |
|
234 | 236 | // middle elements |
|
235 | 237 | &:not(:first-of-type):not(:last-of-type) { |
|
236 | 238 | border-radius: 0; |
|
237 | 239 | border-left-width: 0; |
|
238 | 240 | border-right-width: 0; |
|
239 | 241 | } |
|
240 | 242 | // last item |
|
241 | 243 | &:last-of-type:not(:first-of-type) { |
|
242 | 244 | border-radius: 0 @border-radius @border-radius 0; |
|
243 | 245 | } |
|
244 | 246 | |
|
245 | 247 | &:only-child { |
|
246 | 248 | border-radius: @border-radius; |
|
247 | 249 | } |
|
248 | 250 | } |
|
249 | 251 | |
|
250 | 252 | } |
|
251 | 253 | |
|
252 | 254 | |
|
253 | 255 | .btn-group-actions { |
|
254 | 256 | position: relative; |
|
255 | 257 | z-index: 100; |
|
256 | 258 | |
|
257 | 259 | &:not(.open) .btn-action-switcher-container { |
|
258 | 260 | display: none; |
|
259 | 261 | } |
|
260 | 262 | } |
|
261 | 263 | |
|
262 | 264 | |
|
263 | 265 | .btn-action-switcher-container{ |
|
264 | 266 | position: absolute; |
|
265 | 267 | top: 30px; |
|
266 | 268 | left: 0px; |
|
267 | 269 | } |
|
268 | 270 | |
|
269 | 271 | .btn-action-switcher { |
|
270 | 272 | display: block; |
|
271 | 273 | position: relative; |
|
272 | 274 | z-index: 300; |
|
273 | 275 | min-width: 240px; |
|
274 | 276 | max-width: 500px; |
|
275 | 277 | margin-top: 4px; |
|
276 | 278 | margin-bottom: 24px; |
|
277 | 279 | font-size: 14px; |
|
278 | 280 | font-weight: 400; |
|
279 | 281 | padding: 8px 0; |
|
280 | 282 | background-color: #fff; |
|
281 | 283 | border: 1px solid @grey4; |
|
282 | 284 | border-radius: 3px; |
|
283 | 285 | box-shadow: @dropdown-shadow; |
|
284 | 286 | |
|
285 | 287 | li { |
|
286 | 288 | display: block; |
|
287 | 289 | text-align: left; |
|
288 | 290 | list-style: none; |
|
289 | 291 | padding: 5px 10px; |
|
290 | 292 | } |
|
291 | 293 | |
|
292 | 294 | li .action-help-block { |
|
293 | 295 | font-size: 10px; |
|
294 | 296 | line-height: normal; |
|
295 | 297 | color: @grey4; |
|
296 | 298 | } |
|
297 | 299 | |
|
298 | 300 | } |
|
299 | 301 | |
|
300 | 302 | .btn-link { |
|
301 | 303 | background: transparent; |
|
302 | 304 | border: none; |
|
303 | 305 | padding: 0; |
|
304 | 306 | color: @rcblue; |
|
305 | 307 | |
|
306 | 308 | &:hover { |
|
307 | 309 | background: transparent; |
|
308 | 310 | border: none; |
|
309 | 311 | color: @rcdarkblue; |
|
310 | 312 | } |
|
311 | 313 | |
|
312 | 314 | //disabled buttons |
|
313 | 315 | //last; overrides any other styles |
|
314 | 316 | &:disabled { |
|
315 | 317 | opacity: .7; |
|
316 | 318 | cursor: auto; |
|
317 | 319 | background-color: white; |
|
318 | 320 | color: @grey4; |
|
319 | 321 | text-shadow: none; |
|
320 | 322 | } |
|
321 | 323 | |
|
322 | 324 | // TODO: johbo: Check if we can avoid this, indicates that the structure |
|
323 | 325 | // is not yet good. |
|
324 | 326 | // lisa: The button CSS reflects the button HTML; both need a cleanup. |
|
325 | 327 | &.btn-danger { |
|
326 | 328 | color: @alert2; |
|
327 | 329 | |
|
328 | 330 | &:hover { |
|
329 | 331 | color: darken(@alert2,30%); |
|
330 | 332 | } |
|
331 | 333 | |
|
332 | 334 | &:disabled { |
|
333 | 335 | color: @alert2; |
|
334 | 336 | } |
|
335 | 337 | } |
|
336 | 338 | } |
|
337 | 339 | |
|
338 | 340 | .btn-social { |
|
339 | 341 | &:extend(.btn-default); |
|
340 | 342 | margin: 5px 5px 5px 0px; |
|
341 | 343 | min-width: 160px; |
|
342 | 344 | } |
|
343 | 345 | |
|
344 | 346 | // TODO: johbo: check these exceptions |
|
345 | 347 | |
|
346 | 348 | .links { |
|
347 | 349 | |
|
348 | 350 | .btn + .btn { |
|
349 | 351 | margin-top: @padding; |
|
350 | 352 | } |
|
351 | 353 | } |
|
352 | 354 | |
|
353 | 355 | |
|
354 | 356 | .action_button { |
|
355 | 357 | display:inline; |
|
356 | 358 | margin: 0; |
|
357 | 359 | padding: 0 1em 0 0; |
|
358 | 360 | font-size: inherit; |
|
359 | 361 | color: @rcblue; |
|
360 | 362 | border: none; |
|
361 | 363 | border-radius: 0; |
|
362 | 364 | background-color: transparent; |
|
363 | 365 | |
|
364 | 366 | &.last-item { |
|
365 | 367 | border: none; |
|
366 | 368 | padding: 0 0 0 0; |
|
367 | 369 | } |
|
368 | 370 | |
|
369 | 371 | &:last-child { |
|
370 | 372 | border: none; |
|
371 | 373 | padding: 0 0 0 0; |
|
372 | 374 | } |
|
373 | 375 | |
|
374 | 376 | &:hover { |
|
375 | 377 | color: @rcdarkblue; |
|
376 | 378 | background-color: transparent; |
|
377 | 379 | border: none; |
|
378 | 380 | } |
|
379 | 381 | } |
|
380 | 382 | .grid_delete { |
|
381 | 383 | .action_button { |
|
382 | 384 | border: none; |
|
383 | 385 | } |
|
384 | 386 | } |
|
385 | 387 | |
|
386 | 388 | |
|
387 | 389 | // TODO: johbo: Form button tweaks, check if we can use the classes instead |
|
388 | 390 | input[type="submit"] { |
|
389 | 391 | &:extend(.btn-primary); |
|
390 | 392 | |
|
391 | 393 | &:focus { |
|
392 | 394 | outline: 0; |
|
393 | 395 | } |
|
394 | 396 | |
|
395 | 397 | &:hover { |
|
396 | 398 | &:extend(.btn-primary:hover); |
|
397 | 399 | } |
|
398 | 400 | |
|
399 | 401 | &.btn-link { |
|
400 | 402 | &:extend(.btn-link); |
|
401 | 403 | color: @rcblue; |
|
402 | 404 | |
|
403 | 405 | &:disabled { |
|
404 | 406 | color: @rcblue; |
|
405 | 407 | background-color: transparent; |
|
406 | 408 | } |
|
407 | 409 | } |
|
408 | 410 | |
|
409 | 411 | &:disabled { |
|
410 | 412 | .border ( @border-thickness-buttons, @rcblue ); |
|
411 | 413 | background-color: @rcblue; |
|
412 | 414 | color: white; |
|
413 | 415 | opacity: 0.5; |
|
414 | 416 | } |
|
415 | 417 | } |
|
416 | 418 | |
|
417 | 419 | input[type="reset"] { |
|
418 | 420 | &:extend(.btn-default); |
|
419 | 421 | |
|
420 | 422 | // TODO: johbo: Check if this tweak can be avoided. |
|
421 | 423 | background: transparent; |
|
422 | 424 | |
|
423 | 425 | &:focus { |
|
424 | 426 | outline: 0; |
|
425 | 427 | } |
|
426 | 428 | |
|
427 | 429 | &:hover { |
|
428 | 430 | &:extend(.btn-default:hover); |
|
429 | 431 | } |
|
430 | 432 | |
|
431 | 433 | &.btn-link { |
|
432 | 434 | &:extend(.btn-link); |
|
433 | 435 | color: @rcblue; |
|
434 | 436 | |
|
435 | 437 | &:disabled { |
|
436 | 438 | border: none; |
|
437 | 439 | } |
|
438 | 440 | } |
|
439 | 441 | |
|
440 | 442 | &:disabled { |
|
441 | 443 | .border ( @border-thickness-buttons, @rcblue ); |
|
442 | 444 | background-color: white; |
|
443 | 445 | color: @rcblue; |
|
444 | 446 | } |
|
445 | 447 | } |
|
446 | 448 | |
|
447 | 449 | input[type="submit"], |
|
448 | 450 | input[type="reset"] { |
|
449 | 451 | &.btn-danger { |
|
450 | 452 | &:extend(.btn-danger); |
|
451 | 453 | |
|
452 | 454 | &:focus { |
|
453 | 455 | outline: 0; |
|
454 | 456 | } |
|
455 | 457 | |
|
456 | 458 | &:hover { |
|
457 | 459 | &:extend(.btn-danger:hover); |
|
458 | 460 | } |
|
459 | 461 | |
|
460 | 462 | &.btn-link { |
|
461 | 463 | &:extend(.btn-link); |
|
462 | 464 | color: @alert2; |
|
463 | 465 | |
|
464 | 466 | &:hover { |
|
465 | 467 | color: darken(@alert2,30%); |
|
466 | 468 | } |
|
467 | 469 | } |
|
468 | 470 | |
|
469 | 471 | &:disabled { |
|
470 | 472 | color: @alert2; |
|
471 | 473 | background-color: white; |
|
472 | 474 | } |
|
473 | 475 | } |
|
474 | 476 | &.btn-danger-action { |
|
475 | 477 | .border ( @border-thickness, @alert2 ); |
|
476 | 478 | background-color: @alert2; |
|
477 | 479 | color: white; |
|
478 | 480 | |
|
479 | 481 | a { |
|
480 | 482 | color: white; |
|
481 | 483 | } |
|
482 | 484 | |
|
483 | 485 | &:hover { |
|
484 | 486 | background-color: darken(@alert2,20%); |
|
485 | 487 | } |
|
486 | 488 | |
|
487 | 489 | &.active { |
|
488 | 490 | .border ( @border-thickness, @alert2 ); |
|
489 | 491 | color: white; |
|
490 | 492 | background-color: @alert2; |
|
491 | 493 | |
|
492 | 494 | a { |
|
493 | 495 | color: white; |
|
494 | 496 | } |
|
495 | 497 | } |
|
496 | 498 | |
|
497 | 499 | &:disabled { |
|
498 | 500 | background-color: white; |
|
499 | 501 | color: @alert2; |
|
500 | 502 | } |
|
501 | 503 | } |
|
502 | 504 | } |
|
503 | 505 | |
|
504 | 506 | |
|
505 | 507 | .button-links { |
|
506 | 508 | float: left; |
|
507 | 509 | display: inline; |
|
508 | 510 | margin: 0; |
|
509 | 511 | padding-left: 0; |
|
510 | 512 | list-style: none; |
|
511 | 513 | text-align: right; |
|
512 | 514 | |
|
513 | 515 | li { |
|
514 | 516 | |
|
515 | 517 | |
|
516 | 518 | } |
|
517 | 519 | |
|
518 | 520 | li.active { |
|
519 | 521 | background-color: @grey6; |
|
520 | 522 | .border ( @border-thickness, @grey4 ); |
|
521 | 523 | } |
|
522 | 524 | |
|
523 | 525 | } |
General Comments 0
You need to be logged in to leave comments.
Login now