PluginProbe
MaxButtons – Create buttons / 6.23
MaxButtons – Create buttons v6.23
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 6.23, at assets/scss/_elements.scss

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