Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/phui/button/phui-button.css
12241 views
1
/**
2
* @provides phui-button-css
3
*/
4
5
6
button,
7
a.button,
8
input[type="submit"] {
9
font: {$basefont};
10
-webkit-font-smoothing: antialiased;
11
-webkit-user-select: none;
12
-moz-user-select: none;
13
-ms-user-select: none;
14
user-select: none;
15
}
16
17
button.phabricator-action-view-item {
18
-webkit-font-smoothing: auto;
19
}
20
21
button::-moz-focus-inner,
22
input::-moz-focus-inner {
23
border: 0;
24
padding: 0;
25
}
26
27
button:focus,
28
a.button:focus {
29
outline: 0;
30
box-shadow: 0 0 2pt 2pt rgba(82, 168, 236, 0.7);
31
}
32
33
button,
34
a.button,
35
a.button:visited,
36
input[type="submit"] {
37
background-color: {$blue.button.color};
38
border: 1px solid {$blue.button.color};
39
background-image: {$blue.button.gradient};
40
color: white;
41
cursor: pointer;
42
font-weight: bold;
43
font-size: {$normalfontsize};
44
display: inline-block;
45
padding: 4px 14px 5px;
46
text-align: center;
47
white-space: nowrap;
48
border-radius: 3px;
49
}
50
51
button .phui-icon-view,
52
a.button .phui-icon-view,
53
button.button-green .phui-icon-view,
54
a.button.button-green .phui-icon-view,
55
button.button-red .phui-icon-view,
56
a.button.button-red .phui-icon-view {
57
color: white;
58
}
59
60
button.button-grey .phui-icon-view,
61
a.button.button-grey .phui-icon-view {
62
color: {$darkbluetext};
63
}
64
65
/* Buttons with images (full size only) */
66
button.icon,
67
a.icon,
68
a.icon:visited {
69
padding-left: 0;
70
position: relative;
71
text-indent: 29px;
72
}
73
74
button.button-green,
75
a.button-green.button,
76
a.button-green.button:visited,
77
input[type="submit"].button-green {
78
background-color: {$green.button.color};
79
border-color: {$green.button.color};
80
background-image: {$green.button.gradient};
81
}
82
83
button.button-red,
84
a.button-red.button,
85
a.button-red.button:visited,
86
input[type="submit"].button-red {
87
background-color: {$red.button.color};
88
border-color: {$red.button.color};
89
background-image: {$red.button.gradient};
90
}
91
92
button.button-grey,
93
a.button-grey,
94
a.button-grey:visited,
95
input[type="submit"].button-grey {
96
background-color: {$grey.button.color};
97
background-image: {$grey.button.gradient};
98
border: 1px solid rgba({$alphablue}, 0.3);
99
color: {$darkgreytext};
100
}
101
102
a.disabled,
103
button.disabled,
104
button[disabled] {
105
filter:alpha(opacity=50);
106
-moz-opacity: 0.5;
107
-khtml-opacity: 0.5;
108
opacity: 0.5;
109
}
110
111
button.button-grey.selected,
112
a.button.button-grey.selected,
113
button.button-grey.selected:hover,
114
a.button.button-grey.selected:hover {
115
border-color: {$sh-orangetext};
116
color: {$sh-orangetext};
117
}
118
119
button.button-grey.selected .phui-icon-view,
120
a.button-grey.selected .phui-icon-view {
121
color: {$sh-orangetext};
122
}
123
124
a.phuix-dropdown-open {
125
color: {$greytext};
126
}
127
128
a.button:hover,
129
button:hover {
130
text-decoration: none;
131
background-color: #2980b9;
132
background-image: {$blue.button.hover};
133
border-color: #115988;
134
transition: 0.1s;
135
}
136
137
a.button.button-grey:hover,
138
button.button-grey:hover {
139
background-image: {$grey.button.hover};
140
border-color: rgba({$alphablue}, 0.4);
141
transition: 0.1s;
142
}
143
144
a.button.button-green:hover,
145
button.button-green:hover {
146
border-color: #127336;
147
background-color: #0DAD48;
148
background-image: {$green.button.hover};
149
transition: 0.1s;
150
}
151
152
a.button.button-red:hover,
153
button.button-red:hover {
154
border-color: #79150b;
155
background-color: #0DAD48;
156
background-image: {$red.button.hover};
157
transition: 0.1s;
158
}
159
160
body a.button.disabled:hover,
161
body button.disabled:hover,
162
body a.button.disabled:active,
163
body button.disabled:active {
164
box-shadow: none;
165
}
166
167
button.small,
168
a.small,
169
a.small:visited {
170
padding: 2px 8px;
171
height: auto;
172
font-size: {$smallestfontsize};
173
line-height: 16px;
174
}
175
176
button.link {
177
display: inline;
178
border: none;
179
background: transparent;
180
background-image: none;
181
font-weight: normal;
182
padding: 0;
183
margin: 0;
184
font-size: inherit;
185
border-bottom: none;
186
text-decoration: none;
187
color: #19558D;
188
-webkit-box-shadow: none;
189
-moz-box-shadow: none;
190
box-shadow: none;
191
}
192
193
button.link:hover {
194
text-decoration: underline;
195
}
196
197
.phuix-dropdown-menu {
198
position: absolute;
199
width: 200px;
200
background: {$page.content};
201
margin-top: -1px;
202
padding: 12px;
203
box-shadow: {$dropshadow};
204
border: 1px solid {$lightgreyborder};
205
border-radius: 3px;
206
margin-bottom: 16px;
207
}
208
209
.phuix-dropdown-menu a:focus {
210
/* We automatically focus links in dropdown menus for assistive devices, but
211
this is distracting for visual user agents. */
212
outline: none;
213
}
214
215
a.policy-control {
216
width: 240px;
217
text-align: left;
218
}
219
220
a.policy-control .caret {
221
float: right;
222
}
223
224
a.policy-control .phui-button-text {
225
overflow: hidden;
226
text-overflow: ellipsis;
227
white-space: nowrap;
228
display: block;
229
}
230
231
.device-phone a.button.policy-control {
232
display: block;
233
float: none;
234
width: auto;
235
}
236
237
.caret {
238
display: inline-block;
239
width: 0;
240
height: 0;
241
vertical-align: top;
242
border-top: 5px solid {$page.content};
243
border-right: 5px solid transparent;
244
border-left: 5px solid transparent;
245
content: "";
246
}
247
248
.caret-right {
249
display: inline-block;
250
width: 0;
251
height: 0;
252
vertical-align: middle;
253
border-left: 7px solid {$greytext};
254
border-top: 5px solid transparent;
255
border-bottom: 5px solid transparent;
256
content: "";
257
margin-bottom: 4px;
258
}
259
260
.caret-left {
261
display: inline-block;
262
width: 0;
263
height: 0;
264
vertical-align: middle;
265
border-right: 7px solid {$greytext};
266
border-bottom: 5px solid transparent;
267
border-top: 5px solid transparent;
268
content: "";
269
margin-bottom: 4px;
270
}
271
272
.dropdown .caret {
273
margin-top: 7px;
274
margin-right: -4px;
275
}
276
277
.small.dropdown .caret {
278
margin-top: 6px;
279
}
280
281
.button-grey.dropdown .caret {
282
border-top-color: {$blacktext};
283
}
284
285
/* Icons */
286
.button.has-icon {
287
position: relative;
288
}
289
290
.button.has-icon.dropdown .phui-icon-view {
291
margin-right: 8px;
292
margin-left: -2px;
293
}
294
295
.button.has-text .phui-icon-view {
296
display: inline-block;
297
position: absolute;
298
top: 7px;
299
left: 12px;
300
margin: 0;
301
}
302
303
.button.icon-last .phui-icon-view {
304
left: auto;
305
right: 10px;
306
}
307
308
.phui-button-text {
309
display: inline-block;
310
}
311
312
.dropdown .phui-button-text {
313
margin-right: 8px;
314
}
315
316
.button.has-icon .phui-button-text {
317
margin-left: 16px;
318
}
319
320
.button.has-icon.icon-last .phui-button-text {
321
margin: 0 16px 0 0;
322
}
323
324
/* Login Buttons */
325
326
.button.big.has-icon {
327
padding: 4px 20px 4px 14px;
328
border-radius: 4px;
329
text-align: left;
330
}
331
332
.button.big.has-icon .phui-button-text {
333
margin-left: 30px;
334
display: block;
335
}
336
337
.button.big.has-icon .phui-button-subtext {
338
color: {$greytext};
339
font-size: {$smallerfontsize};
340
line-height: 15px;
341
font-weight: normal;
342
}
343
344
345