diff --git a/css/base.css b/css/base.css index bf3e5cdf..ad91cf41 100644 --- a/css/base.css +++ b/css/base.css @@ -35,6 +35,12 @@ --font-bold: "Open Sans Bold", sans-serif; --font-light: "Open Sans Light", sans-serif; --font-fjalla: "Fjalla One Regular", sans-serif; + /* breakpoint reference */ + /* can not be used in @media as of yet */ + --breakpoint-sm: 550px; + --breakpoint-md: 700px; + --breakpoint-lg: 900px; + --breakpoint-xl: 1300px; } @media (min-width: 700px) { diff --git a/css/button.css b/css/button.css index 8ab0ba82..840be84c 100644 --- a/css/button.css +++ b/css/button.css @@ -12,8 +12,8 @@ input[type="submit"] { min-height: 2.5em; line-height: 1; border: 0; - border-top-width: 2px; - border-bottom-width: 2px; + border-top-width: 3px; + border-bottom-width: 3px; border-style: solid; border-color: transparent; border-radius: var(--radius); @@ -29,10 +29,44 @@ input[type="submit"] { align-items: center; } -.button.active { - border-top-width: 3px; - border-bottom-width: 3px; +button:hover, +button:focus, +.button:hover, +.button:focus, +input[type="button"]:hover, +input[type="button"]:focus, +input[type="reset"]:hover, +input[type="reset"]:focus, +input[type="submit"]:hover, +input[type="submit"]:focus { + background-color: var(--gray-03); border-bottom-color: rgb(var(--accent)); + color: var(--white); + outline: 0; +} + +button:active, +.button:active, +input[type="button"]:active, +input[type="reset"]:active, +input[type="submit"]:active { + background-color: var(--gray-04); + color: var(--white); + transition: none; +} + +button[disabled], +.button[disabled], +button[disabled]:hover, +.button[disabled]:hover, +button[disabled]:focus, +.button[disabled]:focus, +button[disabled]:active, +.button[disabled]:active { + background-color: var(--gray-02); + border-color: transparent; + color: var(--gray-04); + cursor: default; } button [class^="icon-"], @@ -43,6 +77,10 @@ button [class*=" icon-"], line-height: 1; } +.button.active { + border-bottom-color: rgb(var(--accent)); +} + .button-small { font-size: 0.8em; } @@ -70,32 +108,6 @@ button [class*=" icon-"], border-radius: 0 var(--radius) var(--radius) 0; } -button:hover, -button:focus, -.button:hover, -.button:focus, -input[type="button"]:hover, -input[type="button"]:focus, -input[type="reset"]:hover, -input[type="reset"]:focus, -input[type="submit"]:hover, -input[type="submit"]:focus { - background-color: var(--gray-03); - border-bottom-color: rgb(var(--accent)); - color: var(--white); - outline: 0; -} - -button:active, -.button:active, -input[type="button"]:active, -input[type="reset"]:active, -input[type="submit"]:active { - background-color: var(--gray-04); - color: var(--white); - transition: none; -} - button [class^="button-"], button [class*=" button-"], .button [class^="button-"], diff --git a/css/clock.css b/css/clock.css index d00d283e..24a2bf73 100644 --- a/css/clock.css +++ b/css/clock.css @@ -1,11 +1,14 @@ .clock { margin: 0; padding: 0; - min-width: 6em; + width: 100%; font-family: var(--font-fjalla); font-size: 1.5em; color: var(--white); text-align: center; + display: flex; + flex-direction: row; + justify-content: center; transition: all var(--animation-speed-medium) ease-in-out; } @@ -13,6 +16,13 @@ color: rgb(var(--accent)); } +.clock-hour, +.clock-minutes, +.clock-seconds { + min-width: 1.75em; + display: block; +} + .clock-hour { color: var(--white); } diff --git a/css/form.css b/css/form.css index 4af0f68a..20b3b367 100644 --- a/css/form.css +++ b/css/form.css @@ -4,7 +4,7 @@ input[type="password"], input[type="search"], input[type="tel"], input[type="text"] { - background-color: var(--gray-16); + background-color: var(--gray-14); padding: 0 0.5em; margin: 0 0 1em 0; color: var(--black); diff --git a/css/head.css b/css/head.css index a80c70f8..17820032 100644 --- a/css/head.css +++ b/css/head.css @@ -1,32 +1,22 @@ .head { - margin: 0; + --gutter: 0.5em; + margin: 0 calc(var(--gutter) * -1); display: flex; flex-direction: row; - flex-wrap: nowrap; - justify-content: center; + flex-wrap: wrap; + justify-content: flex-start; + align-items: stretch; } .head-item { - margin-left: 0.5em; - margin-right: 0.5em; + margin-left: var(--gutter); + margin-right: var(--gutter); display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; } -.head-item:first-child { - margin-left: 0; -} - -.head-item:last-child { - margin-right: 0; -} - -.head-item-shrink { - flex-shrink: 0; -} - -.head-item-grow { +.head-search { flex-grow: 1; } diff --git a/css/links.css b/css/links.css index 73f75286..79c21a31 100644 --- a/css/links.css +++ b/css/links.css @@ -71,7 +71,6 @@ bottom: 0; left: 0.25em; z-index: -1; - transition: all var(--animation-speed-medium) ease-in-out; } .link-control { @@ -152,7 +151,6 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - transition: all var(--animation-speed-medium) ease-in-out; } .link-item:hover .link-letter, @@ -170,7 +168,6 @@ overflow: hidden; opacity: 1; text-overflow: ellipsis; - transition: all var(--animation-speed-medium) ease-in-out; } .link-item:hover .link-name, diff --git a/css/utilities.css b/css/utilities.css index 1c01343b..276482eb 100644 --- a/css/utilities.css +++ b/css/utilities.css @@ -1,19 +1,3 @@ -.margin-top-0 { - margin-top: 0 !important; -} - -.margin-right-0 { - margin-right: 0 !important; -} - -.margin-bottom-0 { - margin-bottom: 0 !important; -} - -.margin-left-0 { - margin-left: 0 !important; -} - .is-hidden { display: none !important; } diff --git a/index.html b/index.html index 0b2f7064..de69da45 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,14 @@