diff --git a/src/assets/main.css b/src/assets/main.css index 7778768..5145431 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,28 +1,102 @@ :root { - --bg-color: #1e1e2e; - --text-color: #cdd6f4; - --link-color: #94e2d5; + --base: #1e1e2e; + --mantle: #181825; + --text: #cdd6f4; + --link: #94e2d5; + --surface: #313244; + --pink: #f5c2e7; } body { font-family: Hack, monospace; - background-color: var(--bg-color); - color: var(--text-color); + background-color: var(--mantle); + color: var(--text); padding: 5em; margin: 0; } -a { - color: var(--link-color); - text-decoration: underline var(--bg-color) auto; - transition: all .5s; -} - -a:hover { - text-decoration: underline var(--link-color) auto; -} - img { padding: 1em; } +.navbar { + /* Positioning */ + top: 0; + margin-top: 0; + right: 0; + position: fixed; + + /* Size */ + height: 100vh; + width: 5em; + padding: 0; + + /* Markers */ + list-style-type: none; + + background-color: var(--surface); + + display: flex; + flex-direction: column; + + align-items: center; +} + +.navbar > li { + width: 4em; + height: 4em; + margin: 1em; + + display: flex; + align-items: center; + justify-content: center; + + background-color: var(--mantle); + text-align: center; + + border-radius: 100%; + outline: var(--pink) 0.2rem solid; + transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); +} + +.navbar > li:hover { + border-radius: 30%; + background-color: var(--link); + outline: var(--pink) 0 solid; +} + +.navbar > li:hover > a { + color: var(--base); +} + +.navbar > li > a > i { + font-size: 2.5em; +} + +.navbar > li > a > .popup { + position: absolute; + right: 6em; + scale: 0; + background-color: var(--base); + color: var(--link); + padding: .5em; + white-space: nowrap; + font-weight: bold; + border-radius: 0.75rem; + outline: var(--pink) 0.2rem solid; + transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); +} + +.navbar > li:hover > a > .popup { + scale: 100%; +} + +a { + color: var(--link); + text-decoration: underline var(--mantle) auto; + transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); +} + +a:hover { + text-decoration: underline var(--link) auto; +} diff --git a/src/index.html b/src/index.html index fa470ce..2f45d39 100644 --- a/src/index.html +++ b/src/index.html @@ -4,6 +4,9 @@
Software dev, OSS enthusiast, server admin and 13 year old
Maybe script kiddie idk
-