| 1 |
.border-box(){ |
| 2 |
-webkit-box-sizing: border-box; |
| 3 |
-moz-box-sizing: border-box; |
| 4 |
box-sizing: border-box; |
| 5 |
} |
| 6 |
|
| 7 |
.opacity(@op){ |
| 8 |
filter: ~"alpha(opacity=@{op})"; |
| 9 |
opacity:@op/100; |
| 10 |
} |
| 11 |
|
| 12 |
.transition-duration(@dur: 0s){ |
| 13 |
-webkit-transition-duration: @dur; |
| 14 |
-moz-transition-duration: @dur; |
| 15 |
transition-duration: @dur; |
| 16 |
} |
| 17 |
|
| 18 |
.select-none() { |
| 19 |
-moz-user-select: none; |
| 20 |
-webkit-user-select: none; |
| 21 |
khtml-user-select: none; |
| 22 |
user-select: none; |
| 23 |
} |
| 24 |
|
| 25 |
.glass-view(){ |
| 26 |
z-index: 2; |
| 27 |
background-color: #F00; |
| 28 |
.opacity(0); |
| 29 |
.select-none; |
| 30 |
} |
| 31 |
|
| 32 |
.rounded-corners (@radius: 5px) { |
| 33 |
border-radius: @radius; |
| 34 |
-webkit-border-radius: @radius; |
| 35 |
-moz-border-radius: @radius; |
| 36 |
} |
| 37 |
|
| 38 |
.top-rounded-corners (@radius: 5px) { |
| 39 |
border-top-left-radius: @radius; |
| 40 |
border-top-right-radius: @radius; |
| 41 |
-webkit-border-top-left-radius: @radius; |
| 42 |
-webkit-border-top-right-radius: @radius; |
| 43 |
-moz-border-top-right-radius: @radius; |
| 44 |
-moz-border-top-left-radius: @radius; |
| 45 |
} |
| 46 |
|
| 47 |
.top-left-right-border(@style){ |
| 48 |
border-top: @style; |
| 49 |
border-left: @style; |
| 50 |
border-right: @style; |
| 51 |
} |
| 52 |
|
| 53 |
.event-header{ |
| 54 |
font-weight: bold; |
| 55 |
.top-rounded-corners; |
| 56 |
white-space: nowrap; |
| 57 |
padding: 1px 2px 2px 1px; |
| 58 |
} |