inputs.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. @import "_variables";
  2. @import "_mixins";
  3. button {
  4. @include input-colors;
  5. background-color: var(--bg_elements);
  6. color: var(--fg_color);
  7. border: 1px solid var(--accent_border);
  8. padding: 3px 6px;
  9. font-size: 14px;
  10. cursor: pointer;
  11. float: right;
  12. }
  13. input[type="text"],
  14. input[type="date"],
  15. input[type="number"],
  16. select {
  17. @include input-colors;
  18. background-color: var(--bg_elements);
  19. padding: 1px 4px;
  20. color: var(--fg_color);
  21. border: 1px solid var(--accent_border);
  22. border-radius: 0;
  23. font-size: 14px;
  24. }
  25. input[type="number"] {
  26. -moz-appearance: textfield;
  27. }
  28. input[type="text"],
  29. input[type="number"] {
  30. height: 16px;
  31. }
  32. select {
  33. height: 20px;
  34. padding: 0 2px;
  35. line-height: 1;
  36. }
  37. input[type="date"]::-webkit-inner-spin-button {
  38. display: none;
  39. }
  40. input[type="number"] {
  41. -moz-appearance: textfield;
  42. }
  43. input[type="number"]::-webkit-inner-spin-button,
  44. input[type="number"]::-webkit-outer-spin-button {
  45. display: none;
  46. -webkit-appearance: none;
  47. margin: 0;
  48. }
  49. input[type="date"]::-webkit-clear-button {
  50. margin-left: 17px;
  51. filter: grayscale(100%);
  52. filter: hue-rotate(120deg);
  53. }
  54. input::-webkit-calendar-picker-indicator {
  55. opacity: 0;
  56. }
  57. input::-webkit-datetime-edit-day-field:focus,
  58. input::-webkit-datetime-edit-month-field:focus,
  59. input::-webkit-datetime-edit-year-field:focus {
  60. background-color: var(--accent);
  61. color: var(--fg_color);
  62. outline: none;
  63. }
  64. .date-range {
  65. .date-input {
  66. display: inline-block;
  67. position: relative;
  68. }
  69. .icon-container {
  70. pointer-events: none;
  71. position: absolute;
  72. top: 2px;
  73. right: 5px;
  74. }
  75. .search-title {
  76. margin: 0 2px;
  77. }
  78. }
  79. .icon-button button {
  80. color: var(--accent);
  81. text-decoration: none;
  82. background: none;
  83. border: none;
  84. float: none;
  85. padding: unset;
  86. padding-left: 4px;
  87. &:hover {
  88. color: var(--accent_light);
  89. }
  90. }
  91. .checkbox {
  92. position: absolute;
  93. top: 1px;
  94. right: 0;
  95. height: 17px;
  96. width: 17px;
  97. background-color: var(--bg_elements);
  98. border: 1px solid var(--accent_border);
  99. &:after {
  100. content: "";
  101. position: absolute;
  102. display: none;
  103. }
  104. }
  105. .checkbox-container {
  106. display: block;
  107. position: relative;
  108. margin-bottom: 5px;
  109. cursor: pointer;
  110. user-select: none;
  111. padding-right: 22px;
  112. input {
  113. position: absolute;
  114. opacity: 0;
  115. cursor: pointer;
  116. height: 0;
  117. width: 0;
  118. &:checked ~ .checkbox:after {
  119. display: block;
  120. }
  121. }
  122. &:hover input ~ .checkbox {
  123. border-color: var(--accent);
  124. }
  125. &:active input ~ .checkbox {
  126. border-color: var(--accent_light);
  127. }
  128. .checkbox:after {
  129. left: 2px;
  130. bottom: 0;
  131. font-size: 13px;
  132. font-family: $font_1;
  133. content: "\e811";
  134. }
  135. }
  136. .pref-group {
  137. display: inline;
  138. }
  139. .preferences {
  140. button {
  141. margin: 6px 0 3px 0;
  142. }
  143. label {
  144. padding-right: 150px;
  145. }
  146. select {
  147. position: absolute;
  148. top: 0;
  149. right: 0;
  150. display: block;
  151. -moz-appearance: none;
  152. -webkit-appearance: none;
  153. appearance: none;
  154. }
  155. input[type="text"],
  156. input[type="number"] {
  157. position: absolute;
  158. right: 0;
  159. max-width: 140px;
  160. }
  161. .pref-group {
  162. display: block;
  163. }
  164. .pref-input {
  165. position: relative;
  166. margin-bottom: 6px;
  167. }
  168. .pref-reset {
  169. float: left;
  170. }
  171. .prefs-code {
  172. background-color: var(--bg_elements);
  173. border: 1px solid var(--accent_border);
  174. color: var(--fg_color);
  175. font-size: 12px;
  176. padding: 6px 8px;
  177. margin: 4px 0;
  178. word-break: break-all;
  179. white-space: pre-wrap;
  180. user-select: all;
  181. }
  182. }