Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.79 KB | None | 0 0
  1. .input-element {
  2.     margin-bottom: 10px;
  3.     padding: 5px 0;
  4.  
  5.     .input-label {
  6.         font-family: SFUIDisplayRegular, sans-serif;
  7.     }
  8.  
  9.     .input-field {
  10.         font-family: SFUIDisplayMedium, sans-serif;
  11.     }
  12.  
  13.     // inputBind
  14.     .input-bind-field {
  15.         @include display-flex();
  16.         @include flex-wrap(wrap);
  17.         width: 100%;
  18.  
  19.         .input-bind-value,
  20.         .input-bind-placeholder {
  21.             font-size: 14px;
  22.             font-family: SFUIDisplayMedium, sans-serif;
  23.             border: 1px solid $color-grey-light;
  24.             padding: 6px 16px;
  25.             border-radius: 5px;
  26.             flex: 1 1 auto;
  27.             min-height: 30px;
  28.  
  29.             &.disabled {
  30.                 border-color: transparent;
  31.                 background-color: $color-input-disabled;
  32.             }
  33.  
  34.             &:not(:first-child) {
  35.                 border-top-left-radius: 0;
  36.                 border-bottom-left-radius: 0;
  37.             }
  38.  
  39.             &:not(:last-child) {
  40.                 border-top-right-radius: 0;
  41.                 border-bottom-right-radius: 0;
  42.             }
  43.         }
  44.  
  45.         &.disabled .input-bind-value,
  46.         &.disabled .input-bind-placeholder {
  47.             border-color: transparent;
  48.             background-color: $color-input-disabled;
  49.         }
  50.  
  51.         &.error .input-bind-value,
  52.         &.error .input-bind-placeholder {
  53.             border-color: $color-red-lighten;
  54.         }
  55.  
  56.         .input-bind-icon {
  57.             @include display-flex();
  58.  
  59.             & > i {
  60.                 @include display-flex();
  61.                 @include align-items(center);
  62.                 @include justify-content(center);
  63.                 font-size: 20px;
  64.                 padding: 0 5px;
  65.                 background-color: #edf1f2;
  66.                 color: $color-grey-dark;
  67.  
  68.                 &:focus, &:hover {
  69.                     color: $color-blue;
  70.                     cursor: pointer;
  71.                 }
  72.             }
  73.  
  74.             &.prepend > i {
  75.                 border: 1px solid $color-grey-light;
  76.                 border-right: none;
  77.             }
  78.  
  79.             &.append > i {
  80.                 border: 1px solid $color-grey-light;
  81.                 border-left: none;
  82.                 font-size: 14px;
  83.  
  84.                 &.fa-bars {
  85.                     font-size: 13px;
  86.                 }
  87.                 &.icon-close {
  88.                     font-size: 10px;
  89.                 }
  90.             }
  91.  
  92.             &.prepend > i:first-child {
  93.                 border-top-left-radius: 5px;
  94.                 border-bottom-left-radius: 5px;
  95.             }
  96.  
  97.             &.append > i:last-child {
  98.                 border-top-right-radius: 5px;
  99.                 border-bottom-right-radius: 5px;
  100.             }
  101.         }
  102.     }
  103.  
  104.     .error-hint {
  105.         bottom: -41px;
  106.     }
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement