暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

fields.scss 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // Generic field styling
  2. div.DTE_Field {
  3. input,
  4. textarea {
  5. box-sizing: border-box;
  6. background-color: white;
  7. -webkit-transition: background-color ease-in-out .15s;
  8. transition: background-color ease-in-out .15s;
  9. }
  10. input:focus,
  11. textarea:focus {
  12. background-color: #ffffee;
  13. }
  14. input[type="color"],
  15. input[type="date"],
  16. input[type="datetime"],
  17. input[type="datetime-local"],
  18. input[type="email"],
  19. input[type="month"],
  20. input[type="number"],
  21. input[type="password"],
  22. input[type="search"],
  23. input[type="tel"],
  24. input[type="text"],
  25. input[type="time"],
  26. input[type="url"],
  27. input[type="week"] {
  28. padding: 5px 4px;
  29. width: 100%;
  30. }
  31. label div.DTE_Label_Info {
  32. font-size: 0.85em;
  33. margin-top: 0.25em;
  34. &:empty {
  35. margin-top: 0;
  36. }
  37. }
  38. div.DTE_Field_Info,
  39. div.DTE_Field_Message,
  40. div.DTE_Field_Error {
  41. font-size: 11px;
  42. line-height: 1em;
  43. margin-top: 5px;
  44. &:empty {
  45. margin-top: 0;
  46. }
  47. }
  48. div.DTE_Field_Error {
  49. display: none;
  50. color: #b11f1f;
  51. }
  52. div.multi-value {
  53. display: none;
  54. border: 1px dotted #666;
  55. border-radius: 3px;
  56. padding: 5px;
  57. background-color: #fafafa;
  58. cursor: pointer;
  59. span {
  60. font-size: 0.8em;
  61. line-height: 1.25em;
  62. display: block;
  63. color: #666;
  64. }
  65. &.multi-noEdit {
  66. border: 1px solid #ccc;
  67. cursor: auto;
  68. background-color: #fcfcfc;
  69. &:hover {
  70. background-color: #fcfcfc;
  71. }
  72. }
  73. &:hover {
  74. background-color: #f1f1f1;
  75. }
  76. }
  77. &.disabled {
  78. color: grey;
  79. div.multi-value {
  80. cursor: default;
  81. border: 1px dotted #aaa;
  82. background-color: transparent;
  83. }
  84. }
  85. div.multi-restore {
  86. display: none;
  87. margin-top: 0.5em;
  88. font-size: 0.8em;
  89. line-height: 1.25em;
  90. color: #3879d9;
  91. &:hover {
  92. text-decoration: underline;
  93. cursor: pointer;
  94. }
  95. }
  96. }
  97. // Specific field type styling
  98. div.DTE_Field_Type_textarea {
  99. textarea {
  100. padding: 3px;
  101. width: 100%;
  102. height: 80px;
  103. }
  104. }
  105. div.DTE_Field.DTE_Field_Type_date {
  106. img {
  107. vertical-align: middle;
  108. cursor: pointer;
  109. }
  110. }
  111. div.DTE_Field_Type_checkbox,
  112. div.DTE_Field_Type_radio {
  113. div.DTE_Field_Input > div > div {
  114. margin-bottom: 0.25em;
  115. &:last-child {
  116. margin-bottom: 0;
  117. }
  118. input {
  119. }
  120. label {
  121. margin-left: 0.75em;
  122. vertical-align: middle;
  123. }
  124. }
  125. }
  126. div.DTE_Field_Type_select div.DTE_Field_Input {
  127. padding-top: 4px;
  128. }