_input.custom.scss 716 字节
Newer Older
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
/**
Icon input
 */
.input-icon {
  position: relative;

  .form-control:not(:last-child) {
    padding-right: 2.5rem;
  }

  .form-control:not(:first-child) {
    padding-left: 2.5rem;
  }
}

.input-icon-addon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  color: $text-muted;
  pointer-events: none;

  svg {
    width: 1rem;
    height: 1rem;
  }

  &:last-child {
    right: 0;
    left: auto;
  }
}
C
codecalm 已提交
38 39 40 41 42 43 44 45 46 47

/**
Bootstrap color input
 */

.form-control-color {
  &::-webkit-color-swatch {
    border: none;
  }
}
C
codecalm 已提交
48 49 50 51 52

.form-check-input {
  background: $white;
  transition: .3s background-position, .3s background-color;
}