_forms.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * Component: Form
  3. * ---------------
  4. */
  5. .form-control {
  6. @include border-radius($input-radius);
  7. box-shadow: none;
  8. border-color: $gray;
  9. &:focus {
  10. border-color: $light-blue;
  11. box-shadow: none;
  12. }
  13. &::-moz-placeholder,
  14. &:-ms-input-placeholder,
  15. &::-webkit-input-placeholder {
  16. color: #bbb;
  17. opacity: 1;
  18. }
  19. &:not(select) {
  20. -webkit-appearance: none;
  21. -moz-appearance: none;
  22. appearance: none;
  23. }
  24. }
  25. .form-group {
  26. &.has-success {
  27. label {
  28. color: $green;
  29. }
  30. .form-control {
  31. border-color: $green;
  32. box-shadow: none;
  33. }
  34. }
  35. &.has-warning {
  36. label {
  37. color: $yellow;
  38. }
  39. .form-control {
  40. border-color: $yellow;
  41. box-shadow: none;
  42. }
  43. }
  44. &.has-error {
  45. label {
  46. color: $red;
  47. }
  48. .form-control {
  49. border-color: $red;
  50. box-shadow: none;
  51. }
  52. }
  53. }
  54. /* Input group */
  55. .input-group {
  56. .input-group-addon {
  57. @include border-radius($input-radius);
  58. border-color: $gray;
  59. background-color: #fff;
  60. }
  61. }
  62. /* button groups */
  63. .btn-group-vertical {
  64. .btn {
  65. &.btn-flat:first-of-type, &.btn-flat:last-of-type {
  66. @include border-radius(0);
  67. }
  68. }
  69. }
  70. .icheck > label {
  71. padding-left: 0;
  72. }
  73. /* support Font Awesome icons in form-control */
  74. .form-control-feedback.fa {
  75. line-height: $input-height;
  76. }
  77. .input-lg + .form-control-feedback.fa,
  78. .input-group-lg + .form-control-feedback.fa,
  79. .form-group-lg .form-control + .form-control-feedback.fa {
  80. line-height: $input-height-lg;
  81. }
  82. .input-sm + .form-control-feedback.fa,
  83. .input-group-sm + .form-control-feedback.fa,
  84. .form-group-sm .form-control + .form-control-feedback.fa {
  85. line-height: $input-height-sm;
  86. }