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