inputs.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. select {
  16. @include input-colors;
  17. background-color: var(--bg_elements);
  18. padding: 1px 4px;
  19. color: var(--fg_color);
  20. border: 1px solid var(--accent_border);
  21. border-radius: 0;
  22. font-size: 14px;
  23. }
  24. input[type="date"]::-webkit-inner-spin-button {
  25. display: none;
  26. }
  27. input[type="date"]::-webkit-clear-button {
  28. margin-left: 17px;
  29. filter: grayscale(100%);
  30. filter: hue-rotate(120deg);
  31. }
  32. input::-webkit-calendar-picker-indicator {
  33. opacity: 0;
  34. }
  35. input::-webkit-datetime-edit-day-field:focus,
  36. input::-webkit-datetime-edit-month-field:focus,
  37. input::-webkit-datetime-edit-year-field:focus {
  38. background-color: var(--accent);
  39. color: var(--fg_color);
  40. outline: none;
  41. }
  42. .date-range {
  43. .date-input {
  44. display: inline-block;
  45. position: relative;
  46. }
  47. .icon-container {
  48. pointer-events: none;
  49. position: absolute;
  50. top: 2px;
  51. right: 5px;
  52. }
  53. .search-title {
  54. margin: 0 2px;
  55. }
  56. }
  57. .icon-button button {
  58. color: var(--accent);
  59. text-decoration: none;
  60. background: none;
  61. border: none;
  62. float: none;
  63. padding: unset;
  64. padding-left: 4px;
  65. &:hover {
  66. color: var(--accent_light);
  67. }
  68. }
  69. .checkbox {
  70. position: absolute;
  71. top: 1px;
  72. right: 0;
  73. height: 17px;
  74. width: 17px;
  75. background-color: var(--bg_elements);
  76. border: 1px solid var(--accent_border);
  77. &:after {
  78. content: "";
  79. position: absolute;
  80. display: none;
  81. }
  82. }
  83. .checkbox-container {
  84. display: block;
  85. position: relative;
  86. margin-bottom: 5px;
  87. cursor: pointer;
  88. user-select: none;
  89. padding-right: 22px;
  90. input {
  91. position: absolute;
  92. opacity: 0;
  93. cursor: pointer;
  94. height: 0;
  95. width: 0;
  96. &:checked ~ .checkbox:after {
  97. display: block;
  98. }
  99. }
  100. &:hover input ~ .checkbox {
  101. border-color: var(--accent);
  102. }
  103. &:active input ~ .checkbox {
  104. border-color: var(--accent_light);
  105. }
  106. .checkbox:after {
  107. left: 2px;
  108. bottom: 0;
  109. font-size: 13px;
  110. font-family: $font_4;
  111. content: '\e803';
  112. }
  113. }
  114. .pref-group {
  115. display: inline;
  116. }
  117. .preferences {
  118. button {
  119. margin: 6px 0 3px 0;
  120. }
  121. label {
  122. padding-right: 135px;
  123. }
  124. select {
  125. position: absolute;
  126. top: 0;
  127. right: 0;
  128. display: block;
  129. -moz-appearance: none;
  130. -webkit-appearance: none;
  131. appearance: none;
  132. }
  133. input[type="text"] {
  134. position: absolute;
  135. right: 0;
  136. max-width: 120px;
  137. }
  138. .pref-group {
  139. display: block;
  140. }
  141. .pref-input {
  142. position: relative;
  143. margin-bottom: 6px;
  144. }
  145. .pref-reset {
  146. float: left;
  147. }
  148. }