forms.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. @import url(../../../template/css/forms.css);
  2. /**
  3. * Overwrite default styles
  4. */
  5. .bx-form-element-wrapper.bx-def-margin-top-auto {
  6. margin-top: 2rem;
  7. }
  8. .bx-form-element-wrapper.bx-def-margin-top-auto:first-child {
  9. margin-top: 0;
  10. }
  11. .bx-form-value .bx-form-input-slider,
  12. .bx-form-value .bx-form-input-doublerange,
  13. .bx-form-value .bx-form-input-select_multiple,
  14. .bx-form-value .bx-form-input-select,
  15. .bx-form-value .bx-form-input-radio_set,
  16. .bx-form-value .bx-form-input-checkbox_set,
  17. .bx-form-value .bx-form-input-number,
  18. .bx-form-value .bx-form-input-time,
  19. .bx-form-value .bx-form-input-datepicker,
  20. .bx-form-value .bx-form-input-datetime,
  21. .bx-form-value .bx-form-input-textarea,
  22. .bx-form-value .bx-form-input-wrapper-password,
  23. .bx-form-value .bx-form-input-text,
  24. .bx-form-value .bx-form-input-price,
  25. .bx-form-value .bx-form-input-wrapper-price span {
  26. height: 2.5rem;
  27. padding: 0 0.75rem;
  28. box-sizing: border-box;
  29. border: 1px solid rgba(107, 114, 128, 0.2);
  30. border-radius: 0.5rem;
  31. line-height: 1.25rem;
  32. font-size: 1.0rem;
  33. }
  34. .bx-form-input-rgb-list{
  35. color:#fff;
  36. }
  37. .bx-form-value .bx-form-input-select_multiple,
  38. .bx-form-value .bx-form-input-radio_set,
  39. .bx-form-value .bx-form-input-checkbox_set {
  40. height: auto;
  41. padding: .5rem .75rem;
  42. }
  43. .bx-form-value .bx-form-input-textarea {
  44. height: 15rem;
  45. padding: 0.5rem;
  46. line-height:normal;
  47. }
  48. .bx-form-value .bx-form-input-textarea-small {
  49. height: 4.5rem;
  50. }
  51. .bx-form-value .bx-form-input-wrapper-textarea .CodeMirror {
  52. height: 30rem;
  53. }
  54. .bx-form-value .bx-form-input-slider:focus,
  55. .bx-form-value .bx-form-input-doublerange:focus,
  56. .bx-form-value .bx-form-input-number:focus,
  57. .bx-form-value .bx-form-input-time:focus,
  58. .bx-form-value .bx-form-input-datepicker:focus,
  59. .bx-form-value .bx-form-input-datetime:focus,
  60. .bx-form-value .bx-form-input-textarea:focus,
  61. .bx-form-value .bx-form-input-text:focus,
  62. .bx-form-value .bx-form-input-price:focus,
  63. .bx-form-value .bx-form-input-wrapper-password.bx-form-input-focus {
  64. outline: 2px solid rgba(59,130,246,.5);
  65. outline-offset: 2px;
  66. background-color: rgba(255, 255, 255, 1);
  67. transition-duration: .1s;
  68. }
  69. .bx-form-value .bx-form-input-select_multiple,
  70. .bx-form-value .bx-form-input-radio_set,
  71. .bx-form-value .bx-form-input-checkbox_set {
  72. height:auto;
  73. }
  74. .bx-form-value .bx-form-input-checkbox_set {
  75. line-height: 1.75rem;
  76. }
  77. .bx-form-caption-oneline.bx-def-margin-left {
  78. margin-left: 0.5rem;
  79. }
  80. /**
  81. * General
  82. */
  83. select.bx-form-field-type option {
  84. padding-left: 25px;
  85. background-repeat: no-repeat;
  86. background-position: 5px 0px;
  87. }
  88. /**
  89. * Image uploader with with manager
  90. */
  91. div.bx-form-input-preview {}
  92. div.bx-form-input-preview img {
  93. max-width: 768px;
  94. max-height: 256px;
  95. }
  96. div.bx-form-input-preview-empty {}
  97. /**
  98. * Translatable fields.
  99. */
  100. div.bx-form-input-wrapper-textarea {
  101. position: relative;
  102. }
  103. div.bx-form-input-translator {
  104. position: absolute;
  105. top: -22px;
  106. right: 0px;
  107. }
  108. div.bx-form-input-language,
  109. div.bx-form-input-language-current{
  110. position: relative;
  111. height: 17px;
  112. line-height: 17px;
  113. }
  114. div.bx-form-input-language {
  115. white-space: nowrap
  116. }
  117. div.bx-form-input-language-current {
  118. font-weight: bold;
  119. }
  120. /**
  121. * Forms in popup.
  122. */
  123. .bx-popup .bx-form-element .bx-form-input-wrapper-input_set {
  124. margin: 0 -1.5rem;
  125. padding: 1.5rem 1.5rem 0 1.5rem;
  126. border-top: 1px solid rgba(228, 228, 231, 1.0);
  127. }