diff --git a/main.css b/main.css index 591efd0..0c6dd73 100644 --- a/main.css +++ b/main.css @@ -2,9 +2,14 @@ font-family: Alegreya; src: url(fonts/Alegreya-Regular.ttf); } +:root { + --standard: #73c936; + --danger: #f43841; +} body { - width: 480px; + width: 1000%; margin: auto; + max-width: 480px; position: relative; background: #181818; color: #EEE; @@ -14,6 +19,14 @@ body { margin-top: 35px; margin-bottom: 35px; } + +html { + display: flex; + min-height: 100vh; + flex-direction: column; + justify-content: center; +} + small { font-size: 16px; } @@ -44,20 +57,57 @@ li::before { position: absolute; width: 10px; height: 10px; - background-color: #73c936; + background-color: var(--standard); top: 0.5rem; left: -21px; transition: all 0.2s; } li { + width: fit-content; position: relative; margin-bottom: 4px; + transform-origin: left; + transition: all .3s cubic-bezier(.41,1.94,0,1); +} + +body li:hover { + transform: scale(1.3); +} + +body:has(li:hover) li { + opacity: .4; + filter: grayscale(1) blur(3px); +} + +li:hover, +li:hover a { + opacity: 1 !important; + filter: none !important; +} + +li:hover a { + text-decoration-color: var(--standard); +} + +li:active a { + text-decoration-color: var(--danger); +} + +body:has(#title:hover) .logo { + border-radius: 50%; } + +body:has(#title:active) .logo { + border-radius: 0%; + transform: rotate(45deg); + background: var(--danger); +} + a:link { color: #EEE; text-decoration: underline; text-decoration-thickness: 2px; - text-decoration-color: #73c936; + text-decoration-color: var(--standard); transition: text-decoration-color 0.2s; text-underline-offset: 2px; } @@ -65,7 +115,7 @@ a:visited { color: #EEE; text-decoration: underline; text-decoration-thickness: 2px; - text-decoration-color: #73c936; + text-decoration-color: var(--standard); transition: text-decoration-color 0.2s; text-underline-offset: 2px; } @@ -81,7 +131,7 @@ a:active { color: #EEE; text-decoration: underline; text-decoration-thickness: 2px; - text-decoration-color: #f43841; + text-decoration-color: var(--danger); transition: text-decoration-color 0.2s; text-underline-offset: 2px; } @@ -94,7 +144,7 @@ h2 a:link { .logo { border: none; position: absolute; - background: #73c936; + background: var(--standard); width: 45px; height: 45px; left: -70px; @@ -105,19 +155,21 @@ h2 a:link { li:has(a:hover)::before, .logo:hover, -body:has(.logo:hover) li::before { +body:has(.logo:hover) li::before, +li:hover::before { border-radius: 50%; } li:has(a:active)::before, .logo:active, -body:has(.logo:active) li::before { - background: #f43841; +body:has(.logo:active) li::before, +li:active::before { + background: var(--danger); border-radius: 0%; transform: rotate(45deg); } body:has(.logo:active) a:link, body:has(.logo:active) a:visited { - text-decoration-color: #f43841; + text-decoration-color: var(--danger); } diff --git a/reset.css b/reset.css index e29c0f5..56b3cc8 100644 --- a/reset.css +++ b/reset.css @@ -1,48 +1,19 @@ -/* http://meyerweb.com/eric/tools/css/reset/ - v2.0 | 20110126 - License: none (public domain) -*/ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; +html, body, +h1, h2, p, a, +ul, li, +small { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; } + body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; + line-height: 1; } + +ul { + list-style: none; +} \ No newline at end of file