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.html 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Always Kill Sticky - Options</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  6. <style>
  7. html {
  8. box-sizing: border-box;
  9. font-size: 16px;
  10. }
  11. *, *::before, *::after {
  12. box-sizing: inherit;
  13. }
  14. body {
  15. margin: 0 auto;
  16. display: flex;
  17. flex-flow: column;
  18. max-width: 640px;
  19. min-height: 100vh;
  20. padding: 10px;
  21. font-size: 1rem;
  22. }
  23. body > div {
  24. border: 1px solid #ddd;
  25. padding: 30px 15px 15px 15px;
  26. position: relative;
  27. }
  28. body > div + div {
  29. margin: 2.5em 0 0 0;
  30. }
  31. h1 {
  32. border-bottom: 1px solid #ddd;
  33. }
  34. h2 {
  35. margin: 0;
  36. background-color: #fff;
  37. padding: 10px 15px;
  38. position: absolute;
  39. top: calc(-1 * (0.625em + 10px));
  40. left: 10px;
  41. border: inherit;
  42. }
  43. textarea {
  44. border: 1px solid #aaa;
  45. font-family: Inconsolata, Courier, monospace;
  46. font-size: 1.125rem;
  47. width: 100%;
  48. }
  49. #matchingPatterns textarea {
  50. min-height: 300px;
  51. }
  52. #exclusionPatterns textarea {
  53. min-height: 150px;
  54. }
  55. form {
  56. text-align: right;
  57. margin: 0 0 1em 0;
  58. display: flex;
  59. justify-content: flex-end;
  60. align-items: center;
  61. }
  62. button {
  63. -webkit-appearance: none;
  64. -moz-appearance: none;
  65. border: 1px solid #bbb;
  66. color: #fff;
  67. padding: 10px 16px;
  68. cursor: default;
  69. margin: 0 0 0 0.5em;
  70. }
  71. button.save-button {
  72. background-color: #16e;
  73. font-size: 1.5rem;
  74. }
  75. button.reset-button {
  76. background-color: #d3453d;
  77. font-size: 1rem;
  78. }
  79. button:active {
  80. transform: scale(0.95);
  81. }
  82. button:focus:active {
  83. outline: none;
  84. }
  85. button:disabled {
  86. background-color: #777;
  87. opacity: 0.5;
  88. }
  89. body > p {
  90. padding: 0 15px;
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <h1>Always Kill Sticky</h1>
  96. <form>
  97. <button disabled type='button' class='reset-button'>Reset</button>
  98. <button disabled type='button' class='save-button'>Save</button>
  99. </form>
  100. <div id='matchingPatterns'>
  101. <h2>Matching patterns</h2>
  102. <p>Kill stickies on web page URLs matching the following <a href='https://regexr.com/' rel='nofollow'>regular expressions</a> (one per line):</p>
  103. <textarea spellcheck="false"></textarea>
  104. </div>
  105. <div id='exclusionPatterns'>
  106. <h2>Exclusion patterns</h2>
  107. <p>Do <strong>not</strong> kill stickies on web page URLs matching the following <a href='https://regexr.com/' rel='nofollow'>regular expressions</a> (one per line):</p>
  108. <textarea spellcheck="false"></textarea>
  109. </div>
  110. <p>NOTE: Exclusion patterns override matching patterns; if a page is <em>both</em> matched <em>and</em> excluded, stickies will <strong>not</strong> be killed on that page.</p>
  111. </body>
  112. <script src="options.js"></script>
  113. </html>