Skip to content
72 changes: 62 additions & 10 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down Expand Up @@ -44,28 +57,65 @@ 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;
}
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;
}
Expand All @@ -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;
}
Expand All @@ -94,7 +144,7 @@ h2 a:link {
.logo {
border: none;
position: absolute;
background: #73c936;
background: var(--standard);
width: 45px;
height: 45px;
left: -70px;
Expand All @@ -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);
}
61 changes: 16 additions & 45 deletions reset.css
Original file line number Diff line number Diff line change
@@ -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;
}