You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

options.css 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. html {
  2. box-sizing: border-box;
  3. font-size: 16px;
  4. }
  5. *, *::before, *::after {
  6. box-sizing: inherit;
  7. }
  8. body {
  9. margin: 0 auto;
  10. display: flex;
  11. flex-flow: column;
  12. max-width: 640px;
  13. min-height: 100vh;
  14. padding: 10px;
  15. font-size: 1rem;
  16. }
  17. body > div {
  18. border: 1px solid #ddd;
  19. padding: 30px 15px 15px 15px;
  20. position: relative;
  21. }
  22. body > div + div {
  23. margin: 2.5em 0 0 0;
  24. }
  25. h1 {
  26. border-bottom: 1px solid #ddd;
  27. margin: 0.5em 0;
  28. }
  29. h2 {
  30. margin: 0;
  31. background-color: #fff;
  32. padding: 10px 15px;
  33. position: absolute;
  34. top: calc(-1 * (0.625em + 10px));
  35. left: 10px;
  36. border: inherit;
  37. }
  38. textarea {
  39. border: 1px solid #aaa;
  40. font-family: Inconsolata, Courier, monospace;
  41. font-size: 1.125rem;
  42. width: 100%;
  43. display: block;
  44. }
  45. #matchingPatterns textarea {
  46. min-height: 300px;
  47. }
  48. #exclusionPatterns textarea {
  49. min-height: 150px;
  50. }
  51. form {
  52. text-align: right;
  53. margin: 0 0 2.5em 0;
  54. display: flex;
  55. align-items: center;
  56. }
  57. form .buttons {
  58. display: flex;
  59. align-items: center;
  60. justify-content: flex-end;
  61. flex: 1 1 0;
  62. }
  63. button {
  64. -webkit-appearance: none;
  65. -moz-appearance: none;
  66. border: 1px solid #bbb;
  67. color: #fff;
  68. padding: 10px 16px;
  69. cursor: default;
  70. margin: 0 0 0 0.5em;
  71. }
  72. button.save-button {
  73. background-color: #16e;
  74. font-size: 1.5rem;
  75. }
  76. button.reset-button {
  77. background-color: #d3453d;
  78. font-size: 1rem;
  79. }
  80. button:active {
  81. transform: scale(0.95);
  82. }
  83. button:focus:active {
  84. outline: none;
  85. }
  86. button:disabled {
  87. background-color: #777;
  88. opacity: 0.3;
  89. }
  90. input#whitelist-mode {
  91. display: block;
  92. -webkit-appearance: none;
  93. -moz-appearance: none;
  94. border: 1px solid #000;
  95. font-size: 1rem;
  96. height: 2em;
  97. width: 4em;
  98. margin: 0 6px;
  99. background-color: #000;
  100. box-shadow:
  101. -2em 0 0 1px #fff inset,
  102. 0 0 0 3px #fff inset;
  103. }
  104. input#whitelist-mode:checked {
  105. border: 1px solid #fff;
  106. background-color: #fff;
  107. box-shadow:
  108. 2em 0 0 1px #000 inset,
  109. 0 0 0 3px #000 inset;
  110. }
  111. input#whitelist-mode,
  112. .mode-select-container span {
  113. cursor: pointer;
  114. }
  115. .mode-select-container {
  116. white-space: nowrap;
  117. display: flex;
  118. align-items: center;
  119. align-self: flex-start;
  120. border: 1px solid #ddd;
  121. padding: 8px 10px;
  122. cursor: default;
  123. background-color: #fff;
  124. }
  125. .mode-select-container.whitelist {
  126. background-color: #000;
  127. color: #fff;
  128. }
  129. .mode-select-container:not(.whitelist) .blacklist-mode-label,
  130. .mode-select-container.whitelist .whitelist-mode-label {
  131. border-bottom: 1px dotted currentColor;
  132. }
  133. .mode-select-container span::selection {
  134. background-color: transparent;
  135. }
  136. .mode-select-container span.disabled {
  137. pointer-events: none;
  138. }
  139. .mode-select-container span:not(.disabled):hover {
  140. border-bottom: 1px solid currentColor;
  141. }
  142. form button:not(:disabled):hover {
  143. text-shadow:
  144. 0 0 1px #fff,
  145. 0 0 3px #fff,
  146. 0 0 5px #fff;
  147. cursor: pointer;
  148. }
  149. #matchingPatterns.disabled h2 {
  150. color: rgba(0,0,0,0.15);
  151. }
  152. #matchingPatterns.disabled p {
  153. opacity: 0.2;
  154. }
  155. #matchingPatterns.disabled .textarea-container {
  156. position: relative;
  157. }
  158. #matchingPatterns.disabled .textarea-container::before {
  159. content: ".*";
  160. display: flex;
  161. position: absolute;
  162. background-color: rgba(232,232,232,0.9);
  163. width: 100%;
  164. height: 100%;
  165. z-index: 1;
  166. justify-content: center;
  167. align-items: center;
  168. font-family: Inconsolata, Courier, monospace;
  169. font-size: 4em;
  170. }
  171. body > p {
  172. padding: 0 15px;
  173. }