]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-includes/css/buttons-rtl.css
WordPress 4.3
[autoinstalls/wordpress.git] / wp-includes / css / buttons-rtl.css
1 /* ----------------------------------------------------------------------------
2
3 NOTE: If you edit this file, you should make sure that the CSS rules for
4 buttons in the following files are updated.
5
6 * jquery-ui-dialog.css
7 * editor.css
8
9 WordPress-style Buttons
10 =======================
11 Create a button by adding the `.button` class to an element. For backwards
12 compatibility, we support several other classes (such as `.button-secondary`),
13 but these will *not* work with the stackable classes described below.
14
15 Button Styles
16 -------------
17 To display a primary button style, add the `.button-primary` class to a button.
18
19 Button Sizes
20 ------------
21 Adjust a button's size by adding the `.button-large` or `.button-small` class.
22
23 Button States
24 -------------
25 Lock the state of a button by adding the name of the pseudoclass as
26 an actual class (e.g. `.hover` for `:hover`).
27
28
29 TABLE OF CONTENTS:
30 ------------------
31  1.0 - Button Layouts
32  2.0 - Default Button Style
33  3.0 - Primary Button Style
34  4.0 - Button Groups
35  5.0 - Responsive Button Styles
36
37 ---------------------------------------------------------------------------- */
38
39 /* ----------------------------------------------------------------------------
40   1.0 - Button Layouts
41 ---------------------------------------------------------------------------- */
42
43 .wp-core-ui .button,
44 .wp-core-ui .button-primary,
45 .wp-core-ui .button-secondary {
46         display: inline-block;
47         text-decoration: none;
48         font-size: 13px;
49         line-height: 26px;
50         height: 28px;
51         margin: 0;
52         padding: 0 10px 1px;
53         cursor: pointer;
54         border-width: 1px;
55         border-style: solid;
56         -webkit-appearance: none;
57         -webkit-border-radius: 3px;
58         border-radius: 3px;
59         white-space: nowrap;
60         -webkit-box-sizing: border-box;
61         -moz-box-sizing: border-box;
62         box-sizing: border-box;
63 }
64
65 /* Remove the dotted border on :focus and the extra padding in Firefox */
66 .wp-core-ui button::-moz-focus-inner,
67 .wp-core-ui input[type="reset"]::-moz-focus-inner,
68 .wp-core-ui input[type="button"]::-moz-focus-inner,
69 .wp-core-ui input[type="submit"]::-moz-focus-inner {
70         border-width: 0;
71         border-style: none;
72         padding: 0;
73 }
74
75 .wp-core-ui .button.button-large,
76 .wp-core-ui .button-group.button-large .button {
77         height: 30px;
78     line-height: 28px;
79     padding: 0 12px 2px;
80 }
81
82 .wp-core-ui .button.button-small,
83 .wp-core-ui .button-group.button-small .button {
84         height: 24px;
85         line-height: 22px;
86         padding: 0 8px 1px;
87         font-size: 11px;
88 }
89
90 .wp-core-ui .button.button-hero,
91 .wp-core-ui .button-group.button-hero .button {
92         font-size: 14px;
93         height: 46px;
94         line-height: 44px;
95         padding: 0 36px;
96 }
97
98 .wp-core-ui .button:active,
99 .wp-core-ui .button:focus {
100         outline: none;
101 }
102
103 .ie8 .wp-core-ui .button-link:focus {
104         outline: #5b9dd9 solid 1px;
105 }
106
107 .wp-core-ui .button.hidden {
108         display: none;
109 }
110
111 /* Style Reset buttons as simple text links */
112
113 .wp-core-ui input[type="reset"],
114 .wp-core-ui input[type="reset"]:hover,
115 .wp-core-ui input[type="reset"]:active,
116 .wp-core-ui input[type="reset"]:focus {
117         background: none;
118         border: none;
119         -webkit-box-shadow: none;
120         box-shadow: none;
121         padding: 0 2px 1px;
122         width: auto;
123 }
124
125 /* ----------------------------------------------------------------------------
126   2.0 - Default Button Style
127 ---------------------------------------------------------------------------- */
128
129 .wp-core-ui .button,
130 .wp-core-ui .button-secondary {
131         color: #555;
132         border-color: #cccccc;
133         background: #f7f7f7;
134         -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 );
135         box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba( 0, 0, 0, 0.08 );
136         vertical-align: top;
137 }
138
139 .wp-core-ui p .button {
140         vertical-align: baseline;
141 }
142
143 .wp-core-ui .button-link {
144         border: 0;
145         background: none;
146         outline: none;
147         cursor: pointer;
148 }
149
150 .wp-core-ui .button.hover,
151 .wp-core-ui .button:hover,
152 .wp-core-ui .button-secondary:hover,
153 .wp-core-ui .button.focus,
154 .wp-core-ui .button:focus,
155 .wp-core-ui .button-secondary:focus {
156         background: #fafafa;
157         border-color: #999;
158         color: #23282d;
159 }
160
161 .wp-core-ui .button.focus,
162 .wp-core-ui .button:focus,
163 .wp-core-ui .button-secondary:focus,
164 .wp-core-ui .button-link:focus {
165         -webkit-box-shadow:
166                 0 0 0 1px #5b9dd9,
167                 0 0 2px 1px rgba(30, 140, 190, .8);
168         box-shadow:
169                 0 0 0 1px #5b9dd9,
170                 0 0 2px 1px rgba(30, 140, 190, .8);
171 }
172
173 .wp-core-ui .button.active,
174 .wp-core-ui .button.active:hover,
175 .wp-core-ui .button:active,
176 .wp-core-ui .button-secondary:active {
177         background: #eee;
178         border-color: #999;
179         color: #32373c;
180         -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
181         box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
182 }
183
184 .wp-core-ui .button.active:focus {
185         -webkit-box-shadow:
186                 inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
187                 0 0 0 1px #5b9dd9,
188                 0 0 2px 1px rgba(30, 140, 190, .8);
189         box-shadow:
190                 inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
191                 0 0 0 1px #5b9dd9,
192                 0 0 2px 1px rgba(30, 140, 190, .8);
193 }
194
195 .wp-core-ui .button[disabled],
196 .wp-core-ui .button:disabled,
197 .wp-core-ui .button.disabled,
198 .wp-core-ui .button-secondary[disabled],
199 .wp-core-ui .button-secondary:disabled,
200 .wp-core-ui .button-secondary.disabled,
201 .wp-core-ui .button-disabled {
202         color: #a0a5aa !important;
203         border-color: #ddd !important;
204         background: #f7f7f7 !important;
205         -webkit-box-shadow: none !important;
206         box-shadow: none !important;
207         text-shadow: 0 1px 0 #fff !important;
208         cursor: default;
209 }
210
211 /* ----------------------------------------------------------------------------
212   3.0 - Primary Button Style
213 ---------------------------------------------------------------------------- */
214
215 .wp-core-ui .button-primary {
216         background: #00a0d2;
217         border-color: #0073aa;
218         -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5), 0 1px 0 rgba( 0, 0, 0, 0.15 );
219         box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 ), 0 1px 0 rgba( 0, 0, 0, 0.15 );
220         color: #fff;
221         text-decoration: none;
222 }
223
224 .wp-core-ui .button-primary.hover,
225 .wp-core-ui .button-primary:hover,
226 .wp-core-ui .button-primary.focus,
227 .wp-core-ui .button-primary:focus {
228         background: #0091cd;
229         border-color: #0073aa;
230         -webkit-box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 );
231         box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.6 );
232         color: #fff;
233 }
234
235 .wp-core-ui .button-primary.focus,
236 .wp-core-ui .button-primary:focus {
237         border-color: #0e3950;
238         -webkit-box-shadow:
239                 inset 0 1px 0 rgba( 120, 200, 230, 0.6 ),
240                 0 0 0 1px #5b9dd9,
241                 0 0 2px 1px rgba(30, 140, 190, .8);
242         box-shadow:
243                 inset 0 1px 0 rgba( 120, 200, 230, 0.6 ),
244                 0 0 0 1px #5b9dd9,
245                 0 0 2px 1px rgba(30, 140, 190, .8);
246 }
247
248 .wp-core-ui .button-primary.active,
249 .wp-core-ui .button-primary.active:hover,
250 .wp-core-ui .button-primary.active:focus,
251 .wp-core-ui .button-primary:active {
252         background: #0073aa;
253         border-color: #005082;
254         color: rgba( 255, 255, 255, 0.95 );
255         -webkit-box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 );
256         box-shadow: inset 0 1px 0 rgba( 0, 0, 0, 0.1 );
257         vertical-align: top;
258 }
259
260 .wp-core-ui .button-primary[disabled],
261 .wp-core-ui .button-primary:disabled,
262 .wp-core-ui .button-primary-disabled,
263 .wp-core-ui .button-primary.disabled {
264         color: #94cde7 !important;
265         background: #298cba !important;
266         border-color: #1b607f !important;
267         -webkit-box-shadow: none !important;
268         box-shadow: none !important;
269         text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
270         cursor: default;
271 }
272
273 /* ----------------------------------------------------------------------------
274   4.0 - Button Groups
275 ---------------------------------------------------------------------------- */
276
277 .wp-core-ui .button-group {
278         position: relative;
279         display: inline-block;
280         white-space: nowrap;
281         font-size: 0;
282         vertical-align: middle;
283 }
284
285 .wp-core-ui .button-group > .button {
286         display: inline-block;
287         -webkit-border-radius: 0;
288         border-radius: 0;
289         margin-left: -1px;
290         z-index: 10;
291 }
292
293 .wp-core-ui .button-group > .button-primary {
294         z-index: 100;
295 }
296
297 .wp-core-ui .button-group > .button:hover {
298         z-index: 20;
299 }
300
301 .wp-core-ui .button-group > .button:first-child {
302         -webkit-border-radius: 0 3px 3px 0;
303         border-radius: 0 3px 3px 0;
304 }
305
306 .wp-core-ui .button-group > .button:last-child {
307         -webkit-border-radius: 3px 0 0 3px;
308         border-radius: 3px 0 0 3px;
309 }
310
311 .wp-core-ui .button-group > .button:focus {
312         position: relative;
313         z-index: 1;
314 }
315
316 /* ----------------------------------------------------------------------------
317   5.0 - Responsive Button Styles
318 ---------------------------------------------------------------------------- */
319
320 @media screen and ( max-width: 782px ) {
321
322         .wp-core-ui .button,
323         .wp-core-ui .button.button-large,
324         .wp-core-ui .button.button-small,
325         input#publish,
326         input#save-post,
327         a.preview {
328                 padding: 6px 14px;
329                 line-height: normal;
330                 font-size: 14px;
331                 vertical-align: middle;
332                 height: auto;
333                 margin-bottom: 4px;
334         }
335
336         #media-upload.wp-core-ui .button {
337                 padding: 0 10px 1px;
338                 height: 24px;
339                 line-height: 22px;
340                 font-size: 13px;
341         }
342
343         .media-frame.mode-grid .bulk-select .button {
344                 margin-bottom: 0;
345         }
346
347         /* Publish Metabox Options */
348         .wp-core-ui .save-post-status.button {
349                 position: relative;
350                 margin: 0 10px 0 14px; /* 14px right margin to match all other buttons */
351         }
352
353         /* Reset responsive styles in Press This, Customizer */
354
355         .wp-core-ui.wp-customizer .button {
356                 padding: 0 10px 1px;
357                 font-size: 13px;
358                 line-height: 26px;
359                 height: 28px;
360                 margin: 0;
361                 vertical-align: inherit;
362         }
363
364         /* Reset responsive styles on Log in button on iframed login form */
365
366         .interim-login .button.button-large {
367                 height: 30px;
368                 line-height: 28px;
369                 padding: 0 12px 2px;
370         }
371
372 }