forms.less 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. All form elements including input, select, textarea etc.
  3. -----------------------------------------------------------------
  4. */
  5. &.form-control {
  6. .border-radius(@input-radius)!important;
  7. box-shadow: none;
  8. &:focus {
  9. border-color: @light-blue !important;
  10. box-shadow: none;
  11. }
  12. }
  13. .form-group {
  14. &.has-success {
  15. label {
  16. color: @green;
  17. }
  18. .form-control {
  19. border-color: @green !important;
  20. box-shadow: none;
  21. }
  22. }
  23. &.has-warning {
  24. label {
  25. color: @yellow;
  26. }
  27. .form-control {
  28. border-color: @yellow !important;
  29. box-shadow: none;
  30. }
  31. }
  32. &.has-error {
  33. label {
  34. color: @red;
  35. }
  36. .form-control {
  37. border-color: @red !important;
  38. box-shadow: none;
  39. }
  40. }
  41. }
  42. /* Input group */
  43. .input-group {
  44. > .input-group-btn > .btn {
  45. }
  46. .input-group-addon {
  47. border-radius: 0;
  48. background-color: #f4f4f4;
  49. }
  50. }
  51. /* button groups */
  52. .btn-group-vertical {
  53. .btn {
  54. &.btn-flat:first-of-type, &.btn-flat:last-of-type {
  55. border-radius: 0;
  56. }
  57. }
  58. }
  59. /* Checkbox and radio inputs */
  60. .checkbox, .radio {
  61. padding-left: 0;
  62. }