forked from olton/Metro-UI-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolbars.less
113 lines (96 loc) · 1.46 KB
/
toolbars.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
@import (once) "variables";
@import (once) "buttons";
@import (once) "utils";
.toolbar {
position: relative;
.clear-float;
}
.toolbar-section {
position: relative;
padding-left: .5725rem;
margin: .125rem;
float: left;
width: auto;
&.no-divider {
&:before {
display: none;
}
}
&:before {
position: absolute;
content: "";
width: .325rem;
height: 100%;
left: 0;
background-color: @grayLighter;
cursor: move;
}
}
.toolbar {
.toolbar-button {
.square-button;
margin: 0;
}
}
.toolbar-group, .toolbar-section {
display: inline-block;
&.condensed {
.clear-float;
.button, .toolbar-button {
display: block;
float: left;
}
}
}
.toolbar-group {
&-check {
.toolbar-button {
&.checked {
background-color: @lightCyan;
color: @white;
border-color: @lightCyan;
}
}
}
&-radio {
.toolbar-button {
&.checked {
background-color: @lightCyan;
color: @white;
border-color: @lightCyan;
}
}
}
}
.toolbar {
&.rounded {
& > .toolbar-button, & > .toolbar-section .toolbar-button {
border-radius: .3125rem;
}
.toolbar-section {
&:before {
border-radius: .3125rem;
}
}
}
}
.v-toolbar {
.toolbar;
float: left;
.toolbar-section {
padding-left: 0;
padding-top: .5725rem;
&:before {
width: 100%;
top: 0;
height: .325rem;
}
}
.toolbar-button {
display: block;
margin-bottom: .25rem;
}
&.no-divider {
.toolbar-section:before {display: none}
}
}