PluginProbe
MaxButtons – Create buttons / 7.13.2
MaxButtons – Create buttons v7.13.2
6.23 6.24 6.25 6.26 6.26.1 6.27 6.28 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.1.1 7.1.2 7.1.3 7.10 7.11 7.13 7.13.1 7.13.2 7.13.3 All 100 releases
maxbuttons / assets / scss / _elements.scss

_elements.scss in MaxButtons – Create buttons 7.13.2, at assets/scss/_elements.scss

491 lines 7.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 /* Here be elements for the editors.Standardized somehow */
3 select {
4 width: 150px;
5 &.small { width: auto; } // small as can be.
6 }
7
8 .input {
9 display: inline-block;
10 margin-right: 15px;
11 //margin-top: 3px;
12 min-height: 35px;
13 vertical-align: top;
14
15 img { vertical-align: middle; }
16 &.mbcolor { min-width: 50px; }
17 &.checkbox { //padding-top: 8px;
18 input { margin-top: 0; }
19 label {
20 line-height: 16px;
21 margin-top: 0 !important;
22 }
23 }
24 }
25
26 .maxajax-load-spinner {
27 width: 16px;
28 height: 16px;
29 background: url('/wp-admin/images/wpspin_light.gif') no-repeat;
30 opacity: 0.9s;
31 display: inline-block;
32 margin: 0 10px;
33 z-index: 10;
34 vertical-align: middle;
35 }
36
37
38 input {
39 // margin-top: 0;
40 // padding: 3px 4px;
41 }
42
43 input[type='text']='text'] {
44 width: 450px;
45 @include bp(780)
46 {
47 width: 350px;
48 }
49 &.tiny {
50 width: 35px;
51 vertical-align: middle;
52 }
53 &.small {
54 width: 50px;
55 }
56 &.medium {
57 width: 150px;
58 }
59 &.tiny-nopad {
60 width: 35px;
61 }
62 }
63
64 input[type='number']='number']
65 {
66 vertical-align: middle;
67
68 &.tiny, &.tiny-nopad {
69 width: 55px;
70 @include bp(780)
71 {
72 width: 60px;
73 }
74 }
75 &.small { width: 70px;
76 @include bp(780)
77 {
78 width: 75px;
79 }
80 }
81
82 }
83
84
85 textarea {
86 width: 450px;
87 height: 80px;
88 //white-space: nowrap;
89 //overflow: auto;
90 }
91
92
93
94 // finetuning
95 .option-container .inside .option {
96 label.mbcolor:nth-of-type(2) {
97 margin-left: 37px;
98
99 }
100 &.url { margin-bottom: 0; }
101 &.url_options { margin: 5px 0 10px; }
102 &.url_options .nofollow { margin-left: 35px; }
103 &.url_options, &.rel_options
104 {
105 label {
106 font-weight: 400;
107 }
108 // .input { float: left; }
109 }
110 &.font .checkbox {
111 margin-right: 2px;
112 }
113
114 &.font .radio { margin-right: 0; }
115 &.font .input.font { margin-right: 2px; }
116
117 &.font .input.font_size {
118 margin-right: 0;
119 &:after {
120 display: block;
121 }
122 }
123
124 @include bp(780)
125 {
126 &.font {
127 display: inline-block;
128 &:after {
129 clear: both;
130 }
131
132 > * { float: left; }
133 }
134 }
135
136 &.font .control-group.font_weight {
137 margin-left: 12px;
138 @include bp(780)
139 {
140
141 clear: left;
142 margin-left: 148px;
143 margin-top: 10px;
144 }
145 }
146 &.font .control-group.text_align {
147 margin-left: 18px;
148 @include bp(780)
149 {
150 margin-left: 20px;
151 margin-top: 10px;
152 }
153 }
154
155 &.padding_top .input, &.container_margin_top .input {
156 margin-right: 30px;
157 &:last-of-type { margin-right: 0; }
158 @include bp(780)
159 {
160 margin-right: 15px;
161 }
162
163 }
164 &.text_color label { margin-top: 0px; }
165 &.text_color label:nth-of-type(2) { margin-left: 68px; }
166 &.description label { padding-top: 35px; }
167
168 .radius-wrap {
169 position: relative;
170 margin-left: 45px;
171 display: inline-block;
172 }
173 &.radius {
174 .label:first-child { width: 100px; float:left; }
175 .bottom, .top {
176 position: relative;
177 .input { margin-right: 0; margin-left: 0;}
178 .dashicons:nth-child(3) { margin-right: 10px; }
179 }
180 .top { margin-bottom: 10px; }
181 label {
182 display:inline-block;
183 font-weight: 700;
184 width: 90px;
185 margin-left: 5px;
186 cursor: default;
187 }
188 .dashicons { font-size: 35px; height: 35px; width: 35px; color:#ccc; }
189 .top .dashicons { margin-top: -5px; }
190 .bottom .dashicons { margin-top: 5px; }
191 #radius_toggle {
192 position: absolute;
193 left:46%;
194 top:25px;
195 font-size: 30px;
196 cursor:pointer;
197 }
198
199 }
200 &.gradient_head .label:nth-child(even) { width: 120px; }
201 .gradient_end_color, .gradient_end_color_hover {
202 margin-left: 58px;
203 }
204
205
206 } // end
207
208 .default {
209 //float: left;
210 display: inline-block;
211 padding-left: 10px;
212 padding-top: 4px;
213 font-style: italic;
214 color: #808080;
215
216 .other {
217 padding-left: 40px;
218 padding-top: 8px;
219
220
221 }
222 }
223
224 .mb-button {
225 width: 38px;
226 height: 38px;
227 background-color: #eceded;
228 display: inline-block;
229 margin-right: 6px;
230 cursor: pointer;
231 display: none;
232
233 span {
234 text-align:center;
235 padding: 9px 0;
236 width: 100%;
237 line-height: 20px;
238 }
239 }
240
241 .check_button
242 {
243 display: none;
244 + label{
245 background-position: center center;
246 background-repeat: no-repeat;
247 background-color: #fff;
248 display: inline-block;
249 border: 1px solid #ddd;
250 font_weight: normal;
251 padding: 4px;
252 @include bp(780)
253 {
254 padding: 10px;
255 }
256 }
257 &.text + label {
258 padding: 5px;
259
260 }
261
262 &.icon + label i
263 {
264 width: 20px;
265 height: 20px;
266 color: #545454;
267 &:focus {
268 outline: none;
269 }
270 }
271
272 &:checked + label {
273 background: #ebebeb none repeat scroll 0 0;
274 border-color: #999999;
275 box-shadow: 0 2px 5px -3px rgba(0, 0, 0, 0.3) inset;
276 }
277
278 }
279
280 /** Slider / Range input **/
281 .option .input_label {
282 display: inline-block;
283 vertical-align: top;
284 &.left { margin-right: 10px; }
285 &.right { margin-left: 10px; }
286 }
287
288 .option .range_value
289 {
290 margin: 8px 0 0 15px;
291 float: right;
292 output {
293 clear: both;
294 font-size: 15px;
295 text-align: center;
296 width: 100%;
297 display: inline-block;
298 }
299 }
300
301
302 .option .switch_label {
303 //vertical-align: top;
304 //line-height: 35px;
305 padding-top: 2px !important;
306 margin: 0 !important;
307 /*display: inline-block;
308 padding: 5px;
309 font-size: 14px;
310 margin-right: 10px;
311 */
312 }
313
314 .switch_button
315 {
316 margin-left: -5px;
317
318 label{
319 padding: 8px 5px; // this padding to make clicking more flexible ( bigger hitbox )
320
321 &:focus {
322 outline: none;
323 }
324 }
325 input { display: none;
326 &:checked ~ .the_switch { background: #6fbeb5; }
327 &:checked ~ .the_switch:after {
328 left: 26px;
329 background: #179588;
330 }
331 &::disabled ~ .the_switch{
332 background: #d5d5d5;
333 pointer-events: none;
334 }
335 &:disabled ~ .the_switch:after { background: #bcbdbc; }
336 }
337 .the_switch{
338 position: relative;
339 display: inline-block;
340 height: 15px;
341 width: 50px;
342 background: #898989;
343 border-radius: 100px;
344 cursor: pointer;
345 transition: all 0.3s ease;
346 &:after {
347 position: absolute;
348 left: -2px;
349 top: -3px;
350 display: block;
351 width: 24px;
352 height: 24px;
353 border-radius: 100px;
354 background: #aaa;
355 box-shadow: 0px 3px 3px rgba(0,0,0,0.05);
356 content: '';
357 transition: all 0.2s ease;
358 }
359 &:active:after { transform: scale(0.9, 0.85); }
360 &:focus {
361 outline: none;
362 }
363 }
364
365 }
366
367
368
369 /** COLORPICKER **/
370 .input.mbcolor {
371 margin-top: 5px;
372 position: relative;
373
374 .wp-picker-clear { display: none; } // can't control behavior -- xxit.
375 input[type="text"]="text""] { width: 75px; line-height: 22px; }
376 .wp-color-picker {
377 width: inherit;
378 }
379 .wp-color-result {
380 @include box-shadow(-1px, 1px, 2px, #999);
381 height: 30px;
382 width: 30px;
383 border: 0;
384 position: relative;
385 //
386 &:before
387 {
388
389 }
390
391 &:after {
392 font-size: 12px;
393 line-height: 30px;
394 display: none;
395 }
396 &:focus {
397 border-color: #5b9dd9;
398 @include box-shadow(0, 0, 5px, rgba(30, 140, 190, 0.8) );
399 }
400 }
401
402 .mb_transparent_wrap {
403 //display: none;
404 background-image: url('../../images/transparent.png');
405 width: 30px;
406 height:30px;
407 border-radius: 3px;
408 display: inline-block;
409 margin-right: 8px;
410
411
412 }
413 .wp-picker-input-wrap {
414 padding: 0;
415 label
416 {
417 display: inline-block;
418 vertical-align: top;
419 }
420 }
421
422 .wp-picker-active .wp-picker-input-wrap
423 {
424 display: inline-block;
425 vertical-align: top;
426 }
427
428 .wp-picker-active {
429 & + .arrows {
430 display: inline-block;
431 }
432
433 }
434 .arrows {
435 position: absolute;
436 display: none;
437 top: 0;
438 margin-top: 40%;
439 &.right {
440 right: -45px;
441 }
442 &.left {
443 left: -35px;
444 }
445
446 .arrow-left, .arrow-right {
447 width: 0;
448 height: 0;
449 font-size: 0;
450 line-height: 0;
451 vertical-align: bottom;
452 cursor: pointer;
453 transition: .8s;
454
455 }
456 .arrow-left {
457 border-top: 30px solid transparent;
458 border-bottom: 30px solid transparent;
459 border-right:20px solid #ccc;
460 &:hover {
461 border-right-color: #33b3db;
462 }
463
464 }
465 .arrow-right {
466 border-top: 30px solid transparent;
467 border-bottom: 30px solid transparent;
468
469 border-left: 20px solid #ccc;
470 margin-top: 35px;
471 &:hover {
472 border-left-color: #33b3db;
473 }
474
475 }
476
477 .left, .right {
478 display: inline-block;
479 float: left;
480 clear: both;
481 width: 35px;
482 height: 45px;
483
484 }
485 .left {
486 margin-top: 15px;
487 }
488 }
489
490 }
491