diff --git a/index.html b/index.html index b87db3e..91a545a 100644 --- a/index.html +++ b/index.html @@ -3,42 +3,34 @@ + @@ -140,6 +136,7 @@ #clock { display: block; + margin-top: -.06em; font-size: 6rem; letter-spacing: .05em; } @@ -147,12 +144,18 @@ #search-form { padding: 1em; background: #111; + transition: background-color .5s; box-sizing: border-box; z-index: 2; } + #search-form>div { + width: 100%; + } + #search-input, #search-input:focus { + width: 100%; margin-bottom: 20px; font-size: 1.5em; font-weight: 900; @@ -177,18 +180,33 @@ cursor: pointer; } - .search-suggestion:focus, .search-suggestion.highlight { background-color: #fff; color: #222; } .search-suggestion b { + position: relative; font-weight: 400; - text-decoration: line-through; + } + + .search-suggestion b::after { + content: ' '; + position: absolute; + top: 51%; + right: 0; + left: 0; + height: 3px; + background-color: #fff; + opacity: .8; + } + + .search-suggestion.highlight b::after { + opacity: 0; } #help { + display: block; padding: 8vw; background: #fff; font-size: 1.3rem; @@ -196,7 +214,7 @@ } .category { - margin: 1.5em 0; + margin-bottom: 2rem; } .category:last-of-type { @@ -204,7 +222,7 @@ } .category-name { - margin: 0 0 2em; + margin: 0 0 2rem; font-size: .7em; letter-spacing: .2em; text-transform: uppercase; @@ -213,12 +231,16 @@ .command a { display: block; position: relative; - padding: .5em 0; + margin: 1em 0; font-size: .9em; line-height: 2em; text-decoration: none; } + .command:last-of-type a { + margin-bottom: 0; + } + .command-key { display: block; float: left; @@ -263,48 +285,32 @@ box-sizing: border-box; width: 100%; height: 100%; - transition: opacity .1s; visibility: hidden; - opacity: 0; } body.help #help.overlay, body.form #search-form.overlay { visibility: visible; - opacity: 1; } - .middle { - position: absolute; - top: 50%; - right: 0; - left: 0; - transform: translateY(-50%); - text-align: center; + .center { + display: flex; + justify-content: center; + align-items: center; + width: 100%; + height: 100%; + box-sizing: border-box; } - @media (min-width: 800px) { - #help { - display: flex; - justify-content: center; - align-items: center; - padding: 2em; + @media (min-width: 500px) { + .categories { + display: grid; + grid-template-columns: 250px 175px; + justify-content: space-around; } - #help>ul { - display: flex; - flex-wrap: wrap; - justify-content: center; - width: 100%; - max-width: 1300px; - } - - .category { - min-width: calc(100% / 3); - } - - .category:nth-child(3n+3) { - min-width: 190px; + .category:nth-last-child(2) { + margin-bottom: 0; } #search-input, @@ -312,28 +318,52 @@ font-size: 3em; } } + + @media (min-width: 1000px) { + #help { + display: flex; + padding: 0; + } + + .category { + margin: 2rem 0; + } + + .categories { + grid-template-columns: repeat(2, 300px) 175px; + } + } + + @media (min-width: 1700px) { + .categories { + grid-template-columns: repeat(5, 250px) 175px; + } + } -
+
-
-
+ +
    - +