Repository navigation
Expand file tree
/
Copy pathbutton.css
More file actions
166 lines (130 loc) · 5.1 KB
/
Copy pathbutton.css
File metadata and controls
166 lines (130 loc) · 5.1 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/**
* 1. Needed when used with an <a> element
*/
.digit-Button {
display: inline-block; /* 1 */
-moz-box-sizing: border-box;
box-sizing: border-box;
height: 2.5em;
min-width: 2.5em; /* Don't shrink below the height. Makes a perfect circle. */
margin: 0 2px;
padding: .625em 1em;
border-radius: 1.25em;
vertical-align: middle;
font-size: 100%; /* Override UA style. */
color: inherit; /* 1 */
border: 1px solid;
background-color: transparent;
outline: none;
cursor: pointer;
text-decoration: none; /* 1 */
-webkit-tap-highlight-color: transparent;
}
/* States --------------------- */
.digit-Button.montage--active {
background-color: hsla(0,0%,0%,.06);
}
.digit-Button:focus {
box-shadow: inset 0 0 0 1px;
}
/* Wireframe ---------------------------------------------------------- */
[data-montage-skin="wireframe"] .digit-Button {
color: #4D4D4D;
border-color: #b3b3b3;
background-color: #f2f2f2;
}
[data-montage-skin="wireframe"] .digit-Button.montage--active {
background-color: #e5e5e5;
}
[data-montage-skin="wireframe"] .digit-Button:focus {
border-color: #4D4D4D;
box-shadow: none;
}
/* Light ---------------------------------------------------------- */
[data-montage-skin="light"] .digit-Button {
color: hsla(0,0%,0%,.7);
text-shadow: 0 1px 0 hsla(0,0%,100%,.5);
border-color: hsl(0,0%,80%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
box-shadow: inset 0 1px 1px hsla(0,0%,100%,.8), inset 0 -1px 1px hsla(0,0%,0%,.04), 0 1px 0 hsla(0,0%,100%,.6);
-webkit-transform: translate3d(0px,0px,0px);
-moz-transform: translate3d(0px,0px,0px);
-ms-transform: translate3d(0px,0px,0px);
transform: translate3d(0px,0px,0px);
}
[data-montage-skin="light"] .digit-Button.montage--active {
border-color: hsla(0,0%,70%,1);
background-image: -webkit-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
box-shadow: inset 0 1px 3px hsla(0,0%,0%,.2), 0 1px 0 hsla(0,0%,100%,.6);
}
[data-montage-skin="light"] .digit-Button:focus {
border-color: hsl(0,0%,50%);
}
/* Dark ---------------------------------------------------------- */
[data-montage-skin="dark"] .digit-Button {
color: hsl(0,0%,80%);
text-shadow: 0 1px 0 hsla(0,0%,0%,.2);
border-color: hsl(0,0%,15%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
box-shadow: inset 0 1px 1px hsla(0,0%,100%,.1), inset 0 -1px 1px hsla(0,0%,0%,.06), 0 1px 0 hsla(0,0%,100%,.1);
}
[data-montage-skin="dark"] .digit-Button.montage--active {
color: hsl(0,0%,60%);
border-color: hsl(0,0%,15%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,24%), hsl(0,0%,18%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,24%), hsl(0,0%,18%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,24%), hsl(0,0%,18%) );
background-image: linear-gradient(top, hsl(0,0%,24%), hsl(0,0%,18%) );
box-shadow: inset 0 1px 3px hsla(0,0%,0%,.3), 0 1px 0 hsla(0,0%,100%,.1);
}
[data-montage-skin="dark"] .digit-Button:focus {
border-color: hsl(0,0%,50%);
}
/* Variations ---------------------------------------------------------- */
.digit-Button--glass,
.digit-Button--glass.montage--active,
[data-montage-skin="wireframe"] .digit-Button--glass,
[data-montage-skin="wireframe"] .digit-Button--glass.montage--active,
[data-montage-skin="light"] .digit-Button--glass,
[data-montage-skin="light"] .digit-Button--glass.montage--active,
[data-montage-skin="dark"] .digit-Button--glass,
[data-montage-skin="dark"] .digit-Button--glass.montage--active {
margin: 0;
border-radius: 0;
border: none;
background: transparent;
box-shadow: none;
}
[data-montage-skin="dark"] .digit-Button--glass.montage--active {
color: hsla(0,0%,100%,.5);
}
/* ButtonGroup ---------------------------------------------------------- */
.digit-ButtonGroup {
display: inline-block;
vertical-align: middle;
padding-left: 1px; /* Add the negative margin back */
border-radius: 1.25em;
}
.digit-ButtonGroup > .digit-Button {
float: left;
margin: 0;
margin-left: -1px; /* Single border */
border-radius: 0;
}
.digit-ButtonGroup > .digit-Button:first-child {
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
}
.digit-ButtonGroup > .digit-Button:last-child {
border-top-right-radius: inherit;
border-bottom-right-radius: inherit;
}