_forms.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @import "variables";
  2. .clr-form-control {
  3. margin-top: 0;
  4. }
  5. .form, form {
  6. padding-top: .5rem;
  7. }
  8. .form-group {
  9. display: flex;
  10. flex-wrap: wrap;
  11. position: relative;
  12. padding-left: 9.5rem;
  13. margin-bottom: .5rem;
  14. font-size: .541667rem;
  15. letter-spacing: normal;
  16. line-height: 1rem;
  17. label:first-child {
  18. position: absolute;
  19. width: 8.5rem;
  20. left: 0;
  21. top: .25rem;
  22. margin: 0;
  23. }
  24. }
  25. .form .form-block, form .form-block {
  26. margin: .5rem 0 1.5rem;
  27. }
  28. input, select {
  29. border-radius: 3px !important;
  30. border: 1px solid $color-grey-300 !important;
  31. padding: 5px !important;
  32. height: initial !important;
  33. transition: background-color 0.2s, box-shadow 0.2s !important;
  34. &:not([readonly]) {
  35. background: white !important;
  36. }
  37. &:focus {
  38. border-color: $color-primary-500 !important;
  39. box-shadow: 0 0 1px 1px $color-primary-100;
  40. }
  41. }
  42. .clr-input {
  43. max-height: none !important;
  44. }
  45. .tooltip.tooltip-validation::before {
  46. top: 10px !important;
  47. }
  48. select {
  49. padding-right: 24px !important;
  50. }
  51. .select::after, .clr-select-wrapper::after {
  52. z-index: 10;
  53. top: 13px;
  54. }
  55. .ng-select .ng-select-container .ng-value-container {
  56. padding-top: 0;
  57. .ng-value {
  58. margin: 0 6px 0 0;
  59. }
  60. .ng-input {
  61. margin: 0;
  62. }
  63. input {
  64. border: none !important;
  65. padding: 0;
  66. background: none !important;
  67. }
  68. }
  69. .ng-select.ng-select-single>.ng-select-container{
  70. padding-top: 9px;
  71. }
  72. .ng-select.ng-select-focused>.ng-select-container {
  73. border-color: $color-primary-500 !important;
  74. box-shadow: 0 0 1px 1px $color-primary-100;
  75. border-radius: 3px;
  76. }
  77. .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {
  78. background-color: $color-grey-200;
  79. }