]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-includes/css/buttons-rtl.css
WordPress 3.9.1
[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 %60.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: 1px 0;
71         border-style: solid none;
72         border-color: transparent;
73         padding: 0;
74 }
75
76 .wp-core-ui .button.button-large,
77 .wp-core-ui .button-group.button-large .button {
78         height: 30px;
79     line-height: 28px;
80     padding: 0 12px 2px;
81 }
82
83 .wp-core-ui .button.button-small,
84 .wp-core-ui .button-group.button-small .button {
85         height: 24px;
86         line-height: 22px;
87         padding: 0 8px 1px;
88         font-size: 11px;
89 }
90
91 .wp-core-ui .button.button-hero,
92 .wp-core-ui .button-group.button-hero .button {
93         font-size: 14px;
94         height: 46px;
95         line-height: 44px;
96         padding: 0 36px;
97 }
98
99 .wp-core-ui .button:active {
100         outline: none;
101 }
102
103 .wp-core-ui .button.hidden {
104         display: none;
105 }
106
107 /* Style Reset buttons as simple text links */
108
109 .wp-core-ui input[type="reset"],
110 .wp-core-ui input[type="reset"]:hover,
111 .wp-core-ui input[type="reset"]:active,
112 .wp-core-ui input[type="reset"]:focus {
113         background: none;
114         border: none;
115         -webkit-box-shadow: none;
116         box-shadow: none;
117         padding: 0 2px 1px;
118         width: auto;
119 }
120
121 /* ----------------------------------------------------------------------------
122   2.0 - Default Button Style
123 ---------------------------------------------------------------------------- */
124
125 .wp-core-ui .button,
126 .wp-core-ui .button-secondary {
127         color: #555;
128         border-color: #cccccc;
129         background: #f7f7f7;
130         -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
131         box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
132         vertical-align: top;
133 }
134
135 .wp-core-ui p .button {
136         vertical-align: baseline;
137 }
138
139 .wp-core-ui .button.hover,
140 .wp-core-ui .button:hover,
141 .wp-core-ui .button-secondary:hover,
142 .wp-core-ui .button.focus,
143 .wp-core-ui .button:focus,
144 .wp-core-ui .button-secondary:focus {
145         background: #fafafa;
146         border-color: #999;
147         color: #222;
148 }
149
150 .wp-core-ui .button.focus,
151 .wp-core-ui .button:focus,
152 .wp-core-ui .button-secondary:focus {
153         -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2);
154         box-shadow: 1px 1px 1px rgba(0,0,0,.2);
155 }
156
157 .wp-core-ui .button.active,
158 .wp-core-ui .button.active:hover,
159 .wp-core-ui .button.active:focus,
160 .wp-core-ui .button:active,
161 .wp-core-ui .button-secondary:active {
162         background: #eee;
163         border-color: #999;
164         color: #333;
165         -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
166         box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
167 }
168
169 .wp-core-ui .button[disabled],
170 .wp-core-ui .button:disabled,
171 .wp-core-ui .button.disabled,
172 .wp-core-ui .button-secondary[disabled],
173 .wp-core-ui .button-secondary:disabled,
174 .wp-core-ui .button-secondary.disabled,
175 .wp-core-ui .button-disabled {
176         color: #aaa !important;
177         border-color: #ddd !important;
178         background: #f7f7f7 !important;
179         -webkit-box-shadow: none !important;
180         box-shadow: none !important;
181         text-shadow: 0 1px 0 #fff !important;
182         cursor: default;
183 }
184
185 /* ----------------------------------------------------------------------------
186   3.0 - Primary Button Style
187 ---------------------------------------------------------------------------- */
188
189 .wp-core-ui .button-primary {
190         background: #2ea2cc;
191         border-color: #0074a2;
192         -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
193         box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
194         color: #fff;
195         text-decoration: none;
196 }
197
198 .wp-core-ui .button-primary.hover,
199 .wp-core-ui .button-primary:hover,
200 .wp-core-ui .button-primary.focus,
201 .wp-core-ui .button-primary:focus {
202         background: #1e8cbe;
203         border-color: #0074a2;
204         -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
205         box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
206         color: #fff;
207 }
208
209 .wp-core-ui .button-primary.focus,
210 .wp-core-ui .button-primary:focus {
211         border-color: #0e3950;
212         -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
213         box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,0.4);
214 }
215
216 .wp-core-ui .button-primary.active,
217 .wp-core-ui .button-primary.active:hover,
218 .wp-core-ui .button-primary.active:focus,
219 .wp-core-ui .button-primary:active {
220         background: #1b7aa6;
221         border-color: #005684;
222         color: rgba(255,255,255,0.95);
223         -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
224         box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
225         vertical-align: top;
226 }
227
228 .wp-core-ui .button-primary[disabled],
229 .wp-core-ui .button-primary:disabled,
230 .wp-core-ui .button-primary-disabled,
231 .wp-core-ui .button-primary.disabled {
232         color: #94cde7 !important;
233         background: #298cba !important;
234         border-color: #1b607f !important;
235         -webkit-box-shadow: none !important;
236         box-shadow: none !important;
237         text-shadow: 0 -1px 0 rgba(0,0,0,0.1) !important;
238         cursor: default;
239 }
240
241 /* ----------------------------------------------------------------------------
242   4.0 - Button Groups
243 ---------------------------------------------------------------------------- */
244
245 .wp-core-ui .button-group {
246         position: relative;
247         display: inline-block;
248         white-space: nowrap;
249         font-size: 0;
250         vertical-align: middle;
251 }
252
253 .wp-core-ui .button-group > .button {
254         display: inline-block;
255         -webkit-border-radius: 0;
256         border-radius: 0;
257         margin-left: -1px;
258         z-index: 10;
259 }
260
261 .wp-core-ui .button-group > .button-primary {
262         z-index: 100;
263 }
264
265 .wp-core-ui .button-group > .button:hover {
266         z-index: 20;
267 }
268
269 .wp-core-ui .button-group > .button:first-child {
270         -webkit-border-radius: 0 3px 3px 0;
271         border-radius: 0 3px 3px 0;
272 }
273
274 .wp-core-ui .button-group > .button:last-child {
275         -webkit-border-radius: 3px 0 0 3px;
276         border-radius: 3px 0 0 3px;
277 }
278
279 /* ----------------------------------------------------------------------------
280   5.0 - Responsive Button Styles
281 ---------------------------------------------------------------------------- */
282
283 @media screen and ( max-width: 782px ) {
284
285         .wp-core-ui .button,
286         .wp-core-ui .button.button-large,
287         .wp-core-ui .button.button-small,
288         input#publish,
289         input#save-post,
290         a.preview {
291                 padding: 6px 14px;
292                 line-height: normal;
293                 font-size: 14px;
294                 vertical-align: middle;
295                 height: auto;
296                 margin-bottom: 4px;
297         }
298
299         #media-upload.wp-core-ui .button {
300                 padding: 0 10px 1px;
301                 height: 24px;
302                 line-height: 22px;
303                 font-size: 13px;
304         }
305
306         /* Publish Metabox Options */
307         .wp-core-ui .save-post-status.button {
308                 position: relative;
309                 margin: 0 10px 0 14px; /* 14px right margin to match all other buttons */
310         }
311
312         /* Reset responsive styles in Press This, Customizer */
313
314         .wp-core-ui.wp-customizer .button,
315         .press-this.wp-core-ui .button,
316         .press-this input#publish,
317         .press-this input#save-post,
318         .press-this a.preview {
319                 padding: 0 10px 1px;
320                 font-size: 13px;
321                 line-height: 26px;
322                 height: 28px;
323                 margin: 0;
324                 vertical-align: inherit;
325         }
326
327         /* Reset responsive styles on Log in button on iframed login form */
328
329         .interim-login .button.button-large {
330                 height: 30px;
331                 line-height: 28px;
332                 padding: 0 12px 2px;
333         }
334
335 }