diff --git a/options.css b/options.css index 7832d6c..c512834 100644 --- a/options.css +++ b/options.css @@ -1,3 +1,7 @@ +/***********/ +/* GENERAL */ +/***********/ + html { box-sizing: border-box; font-size: 16px; @@ -5,6 +9,7 @@ html { *, *::before, *::after { box-sizing: inherit; } + body { margin: 0 auto; display: flex; @@ -13,12 +18,21 @@ body { padding: 10px 20px; font-size: 1rem; } +body.noscroll { + overflow: hidden; +} + body > div { position: relative; } body > div + div { margin: 2.5em 0 1em 0; } + +/************/ +/* HEADINGS */ +/************/ + h1 { border-bottom: 1px solid #ddd; margin: 0.5em 0; @@ -26,11 +40,21 @@ h1 { } h2 { margin: 0; - background-color: #fff; border-bottom: 1px solid #ddd; font-size: 1.625rem; padding: 0 0 2px 0; } +h3 { + font-size: 1.3125rem; + color: #666; + border-bottom: 1px dotted #eee; + margin: 1em 0 0.5em 0; +} + +/*************/ +/* TEXTAREAS */ +/*************/ + textarea { border: 1px solid #aaa; font-family: Inconsolata, Courier, monospace; @@ -45,14 +69,20 @@ textarea { #exclusionPatterns textarea { min-height: 150px; } -form { + +/******************/ +/* OTHER CONTROLS */ +/******************/ + +.top-controls { text-align: right; margin: 0 0 2.5em 0; display: flex; + flex-flow: row wrap; align-items: center; max-width: 640px; } -form .buttons { +.top-controls .buttons { display: flex; align-items: center; justify-content: flex-end; @@ -61,19 +91,8 @@ form .buttons { button { -webkit-appearance: none; -moz-appearance: none; - border: 1px solid #bbb; - color: #fff; - padding: 10px 16px; - cursor: default; - margin: 0 0 0 0.5em; -} -button.save-button { - background-color: #16e; - font-size: 1.5rem; -} -button.reset-button { - background-color: #d3453d; - font-size: 1rem; + border: none; + background-color: transparent; } button:active { transform: scale(0.95); @@ -81,7 +100,23 @@ button:active { button:focus:active { outline: none; } -button:disabled { +.top-controls button { + border: 1px solid #bbb; + color: #fff; + padding: 10px 16px; + cursor: default; + margin: 0 0 0 0.5em; + background-color: #fff; +} +.top-controls button.save-button { + background-color: #16e; + font-size: 1.5rem; +} +.top-controls button.reset-button { + background-color: #d3453d; + font-size: 1rem; +} +.top-controls button:disabled { background-color: #777; opacity: 0.3; } @@ -137,13 +172,21 @@ input#whitelist-mode, .mode-select-container span:not(.disabled):hover { border-bottom: 1px solid currentColor; } -form button:not(:disabled):hover { +.top-controls button:not(:disabled):hover { text-shadow: 0 0 1px #fff, 0 0 3px #fff, 0 0 5px #fff; cursor: pointer; } +p.note { + font-size: 0.875em; +} + +/******************/ +/* WHITELIST MODE */ +/******************/ + #matchingPatterns.disabled h2 { color: rgba(0,0,0,0.15); } @@ -166,9 +209,11 @@ form button:not(:disabled):hover { font-family: Inconsolata, Courier, monospace; font-size: 4em; } -p.note { - font-size: 0.875em; -} + +/***************/ +/* BOTTOM INFO */ +/***************/ + .bottom-info { font-size: 0.875rem; color: #aaa; @@ -178,4 +223,120 @@ p.note { } .bottom-info p { margin: 0; -} \ No newline at end of file +} + +/****************/ +/* HELP OVERLAY */ +/****************/ + +.open-help-button-container { + position: absolute; + top: 0; + right: 0; +} + +.help-overlay { + position: fixed; + background-color: #ffe; + top: 10px; + left: 10px; + margin: 0; + border: 1px solid #777; + box-shadow: + 1px 1px 4px 0 #aaa; + width: calc(100% - 20px); + height: calc(100% - 20px); + line-height: 1.4; + padding: 36px 0 6px 0; +} +#help { + visibility: hidden; +} +#help:target { + visibility: visible; +} +.help-container { + height: 100%; + padding: 0 16px; + overflow-y: scroll; +} +.help-container::-webkit-scrollbar { + background-color: transparent; + width: 15px; +} +.help-container::-webkit-scrollbar-thumb { + background-color: #c1c1c1; + box-shadow: 0 0 0 3px #ffe inset; +} +.help-container::-webkit-scrollbar-thumb:hover { + background-color: #888; +} + +.help-overlay h1 { + margin: 0 0 0.5em 0; + line-height: 1; + padding: 0 0 4px 0; +} + +.help-overlay .close-button, +.open-help-button-container .open-help-button { + display: block; + cursor: pointer; + color: #999; + white-space: nowrap; +} +.help-overlay .close-button:hover, +.open-help-button-container .open-help-button:hover { + color: #000; +} +.help-overlay .close-button::before, +.open-help-button-container .open-help-button::before { + font-family: Font Awesome; + padding: 4px; + display: inline-block; +} + +.help-overlay .close-button { + font-size: 0.875rem; + position: absolute; + top: 0; + right: 0; + padding: 6px 12px; +} +.help-overlay .close-button::before { + content: "\F00D"; + font-weight: 300; + font-size: 1rem; + position: relative; + top: 1px; +} + +.open-help-button-container .open-help-button { + font-size: 1.125rem; + padding: 8px 12px 10px 10px; +} +.open-help-button-container .open-help-button::before { + content: "\F059"; + font-weight: 900; + font-size: 1rem; +} + +/********/ +/* MISC */ +/********/ + +code { + font-family: Inconsolata, monospace; +} +.fa { + font-family: Font Awesome; +} +.fa-light { + font-weight: 300; +} +.fa-normal { + font-weight: 400; +} +.fa-heavy { + font-weight: 900; +} diff --git a/options.html b/options.html index 979c3b9..191b79b 100644 --- a/options.html +++ b/options.html @@ -1,15 +1,16 @@
-