Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

options.css 3.1KB

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