builder.sass 11 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
@import "selectors"
@import "mixins"
@import "colors"

+keyframes(um-ajax-spinning)
  0%
    -webkit-transform: rotate(0deg)
    transform: rotate(0deg)
  100%
    -webkit-transform: rotate(360deg)
    transform: rotate(360deg)

.#{$prefix}admin-row-loading
  position: absolute
  width: 100%
  height: calc( 100% + 30px )
  top: -30px
  left: 0
  background: rgba(241, 241, 241, 0.6)
  z-index: 999
  display: none
  & > span
    display: block
    -webkit-transition: 0.1s opacity
    -moz-transition: 0.1s opacity
    -ms-transition: 0.1s opacity
    -o-transition: 0.1s opacity
    transition: 0.1s opacity
    color: #c6c6c6 !important
    -webkit-animation: um-ajax-spinning 1.1s infinite linear
    animation: um-ajax-spinning 1.1s infinite linear
    border-top: 0.2em solid rgba(0, 0, 0, 1)
    border-right: 0.2em solid rgba(0, 0, 0, 1)
    border-bottom: 0.2em solid rgba(0, 0, 0, 1)
    border-left: 0.2em solid #c6c6c6
    font-size: 1.75em
    filter: alpha(opacity=0)
    -ms-transform: translateZ(0)
    transform: translateZ(0)
    border-radius: 50%
    width: 40px
    height: 40px
    margin: -20px 0 0 -20px
    outline: 0
    padding: 0
    vertical-align: baseline
    position: absolute
    left: 50%
    top: 50%

.#{$prefix}admin-boxed-links
  width: 100%
  text-align: center
  a
    width: 33.3%
    float: left
    border-left: 1px solid #fff
    border-right: 1px solid #fff
    padding: 30px 25px !important
    background: #f8f8f8
    text-align: center
    display: inline-block !important
    font-size: 14px
    transition: all .2s linear
    text-decoration: none
    color: #666
    margin: 0 !important
    box-sizing: border-box !important
    border-radius: 2px
    font-weight: 600
    &:hover
      background: #eee
    &.#{$prefix}admin-activebg
      background: #{$um-base}
      color: #fff
      &:hover
        background: #{$um-base}
        color: #fff
  i
    font-size: 28px
    vertical-align: middle
    margin: 0 10px 0 0

// Form columns inside the Modal
.#{$prefix}admin-half
  float: left
  width: 48%
  select
    box-sizing: border-box
  &.#{$prefix}admin-right
    float: right
  p:first-child
    margin-top: 0
  .um
    opacity: 1
    margin-bottom: 0 !important
.#{$prefix}admin-tri
  float: left
  width: 33%
  position: relative


.#{$prefix}admin-error-block,
.#{$prefix}admin-success-block
  display: none
  width: 100%
  background: #{$admin-warning}
  border-radius: 3px
  color: #fff
  box-sizing: border-box
  position: relative
  padding: 12px
  font-size: 13px
  line-height: 1em !important
  margin: 0 0 16px 0

.#{$prefix}admin-success-block
  background: #{$admin-ok}

.#{$prefix}admin-cur-condition-template
  display: none

.dynamic-mce-content
  display: none

.#{$prefix}admin-btns
  line-height: 1.5em
  margin: 0 0 5px 0
  +flex( row, flex-start, baseline, wrap )
  .#{$prefix}no-custom-fields
    margin: 0
  a
    margin: 0 3px 8px 0 !important
    font-size: 12px !important
    +flex( row, flex-start, center, nowrap )
    display: flex !important
    &.with-icon
      span
        color: #aaa
        font-size: 15px !important
        padding-left: 5px
        height: auto
        width: auto
      &:hover
        span
          color: #cb3838

// Field modal on the form builder

.#{$prefix}admin-btn-toggle
  padding: 10px 0
  p
    margin: 0 5px 0 0 !important
    &.#{$prefix}admin-reset-conditions
      a
        margin-bottom: 5px
  a
    text-decoration: none
    color: #999
    &.#{$prefix}admin-new-condition
      margin-bottom: 5px
    &.active
      color: #0085ba
      &:hover
        color: #0085ba

  i
    margin: 0 5px 0 0 !important
    height: 100%
    color: #666
    position: relative
    top: 1px

.#{$prefix}admin-btn-content
  display: none
  padding: 5px 0 0 0

  p
    float: left
    margin-right: 10px !important
    padding: 0 !important

    &.#{$prefix}admin-conditions-notice
      width: 100%
      margin: 0 0 9px 0 !important

  .#{$prefix}admin-cur-condition:not(:last-child)
    margin: 0 0 5px 0

.#{$prefix}admin-builder
  i
    font-size: 15px !important
    height: 100% !important
    line-height: 100% !important
    margin: 0 5px 0 0 !important

  .#{$prefix}admin-drag
    margin-top: 40px


.#{$prefix}admin-drag-add-field
  display: block
  width: 100%
  height: 30px
  line-height: 30px
  text-align: center
  color: #aaa
  text-decoration: none
  &:hover
    color: #{$um-base}
  i
    font-size: 23px !important
    margin: 0 !important


.#{$prefix}admin-drag-ctrls
  position: absolute
  top: -30px
  left: 0
  &.#{$prefix}admin-drag-ctrls-demo
    position: absolute
    right: 7px
    top: -30px
    left: auto

  a
    float: left
    margin: 0 5px 0 0
    height: 30px
    line-height: 30px
    background: #eee
    color: #888
    padding: 0 8px
    text-decoration: none
    border-radius: 2px 2px 0 0

    &:hover
      background-color: #e5e5e5

    &.active,
    &.active:hover
      background-color: #{$um-base}
      color: #fff

  &.columns
    a
      width: 30px !important
      background-image: url(../../img/builder/1-column.gif)
      background-repeat: no-repeat
      background-position: center
      &:nth-child(2)
        background-image: url(../../img/builder/2-columns.gif)
      &:last-child
        background-image: url(../../img/builder/3-columns.gif)

      &.active
        background-image: url(../../img/builder/1-column-active.gif)
        &:nth-child(2)
          background-image: url(../../img/builder/2-columns-active.gif)
        &:last-child
          background-image: url(../../img/builder/3-columns-active.gif)

.#{$prefix}admin-drag
  width: 100%
  background: #{$wp-background}
  +border-box
  position: relative
  padding: 60px 20px 20px 20px

.#{$prefix}admin-drag-row
  width: 100%
  background: #fefefe
  +border-box
  position: relative
  padding: 60px 20px 20px 20px
  margin: 0 0 60px 0
  &:last-child
    margin-bottom: 0

.#{$prefix}admin-drag-row-icons
  position: absolute
  right: 0
  top: -30px
  height: 30px
  a
    text-decoration: none
    color: #fff
    width: 40px
    height: 30px
    line-height: 30px
    text-align: center
    display: block !important
    float: left
    background: #{$um-base}
    padding: 0 4px
    transition: all .2s linear
    border-left: 1px solid #379dd5
    &:hover
      background: #{$um-base-hover}
  span
    cursor: move !important
    text-decoration: none
    color: #fff
    width: 40px
    height: 30px
    line-height: 30px
    text-align: center
    display: block !important
    float: left
    background: #{$um-base}
    padding: 0 4px
    transition: all .2s linear
    border-left: 1px solid #379dd5
    &:hover
      background: #{$um-base-hover}
  i
    font-size: 18px !important
    margin: 0 !important
    top: 2px
    position: relative

.#{$prefix}admin-drag-rowsub
  position: relative
  +border-box
  background: #{$wp-background}
  padding: 20px
  margin: 0 0 60px 0
  &:last-child
    margin-bottom: 0

.#{$prefix}admin-drag-rowsub-icons
  position: absolute
  right: 0
  top: -30px
  height: 30px
  a
    text-decoration: none
    color: #fff
    width: 40px
    height: 30px
    line-height: 30px
    text-align: center
    display: block !important
    float: left
    background: #{$um-base}
    padding: 0 4px
    transition: all .2s linear
    border-left: 1px solid #379dd5
    &:hover
      background: #{$um-base-hover}
  span
    cursor: move !important
    text-decoration: none
    color: #fff
    width: 40px
    height: 30px
    line-height: 30px
    text-align: center
    display: block !important
    float: left
    background: #{$um-base}
    padding: 0 4px
    transition: all .2s linear
    border-left: 1px solid #379dd5
    &:hover
      background: #{$um-base-hover}
  i
    font-size: 18px !important
    margin: 0 !important
    top: 2px
    position: relative


.#{$prefix}admin-drag-col
  float: left
  width: 100%
  background: #fff
  border: 1px dashed #bbb
  box-sizing: border-box
  padding: 20px

  &.cols-3
    width: 32%
    &.cols-last
      width: 32%
    &.cols-middle
      width: 32%
      margin: 0 2%
    .#{$prefix}admin-drag-fld-title
      height: auto
      line-height: 18px
      margin: 10px
      margin-bottom: 0
    .#{$prefix}admin-drag-fld-type
      height: auto
      line-height: 18px
      margin: 0 0 10px 0
    .#{$prefix}admin-drag-fld-icons
      float: none
      position: absolute
      bottom: 0
      right: 0
      height: 30px
      display: none
      &.#{$prefix}field-type-group
        float: left
        position: relative
        bottom: auto
        right: auto
        height: 30px
        display: block
    .#{$prefix}admin-drag-fld:hover
      .#{$prefix}admin-drag-fld-icons
        display: block

  &.cols-1
    width: 100%
    &.cols-last
      width: 100%

  &.cols-2
    width: 49%
    margin: 0 1% 0 0
    &.cols-last
      width: 49%
      margin: 0 0 0 1%

  & > .#{$prefix}admin-drag-fld:last-of-type
    margin-bottom: 20px

.#{$prefix}admin-drag-addrow
  text-align: center
  font-size: 14px
  color: #888
  cursor: pointer
  border: 1px dashed #bbb
  padding: 10px 0
  margin: 20px 0 0 0

  i
    font-size: 23px !important
    margin: 0 !important
  &:hover
    color: #{$um-base}


.#{$prefix}admin-drag-fld
  display: block
  position: relative
  border: 1px solid #dddddd
  margin: 0 0 15px 0
  background: #f5f5f5
  cursor: move !important
  &.#{$prefix}field-type-group
    background: #555
    border: 0

.#{$prefix}admin-drag-fld-title
  float: left
  font-weight: bold
  font-size: 13px
  color: #666
  height: 30px
  line-height: 30px
  margin: 0 0 0 20px
  &.um-field-type-group
    color: #fff
  i
    width: 24px
    display: inline-block
    text-align: center

.#{$prefix}admin-drag-group
  background: #fcfcfc
  cursor: default
  padding: 20px
  border: 1px dashed #bbb

.#{$prefix}admin-drag-fld-type
  float: left
  font-size: 13px
  height: 30px
  line-height: 30px
  margin: 0 0 0 20px
  font-weight: 400
  color: #999
  &.um-field-type-group
    color: #fff


.#{$prefix}admin-drag-fld-icons
  float: right
  a
    text-decoration: none
    color: #fff
    width: 40px
    height: 30px
    line-height: 30px
    text-align: center
    display: block !important
    float: left
    background: #{$um-base}
    padding: 0 4px
    transition: all .2s linear
    border-left: 1px solid #379dd5
    &:hover
      background: #{$um-base-hover}
  i
    font-size: 18px !important
    margin: 0 !important
    top: 2px
    position: relative
  &.#{$prefix}field-type-group
    a.um_admin_duplicate_field
      display: none !important


.#{$prefix}row-placeholder
  width: 100%
  border: 2px dashed #aaa
  box-sizing: border-box

.#{$prefix}rowsub-placeholder
  width: 100%
  border: 2px dashed #ccc
  box-sizing: border-box
  display: block

.#{$prefix}fld-placeholder
  display: block
  border: 1px dashed #ddd
  background: #fff
  box-sizing: border-box
  width: 100%

.#{$prefix}admin-modal
  #UM_preview_form
    .#{$prefix}admin-modal-body
      position: relative
      .#{$prefix}admin-preview-overlay
        position: absolute
        top: 0
        bottom: 0
        left: 0
        right: 0
        background-color: rgba(255,255,255,0)
        z-index: 100