Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
1.8 KiB

1 year ago
@use "sass:color";
$bg: #FFFDF3;
$bg0: #{color.adjust($bg, $lightness: -5%, $hue: -2%, $saturation: -50%)};
$fg: #011627;
:root {
--bg: #{$bg};
--fg: #{$fg};
}
body {
1 year ago
font-family: 'Nunito', 'K Gothic', sans-serif;
margin: 0;
display: flex;
width: 100%;
height: 100vh;
box-sizing: border-box;
padding: 2em;
background: $bg0;
color: var(--fg);
font-size: 1.25em;
}
#content {
width: 100%;
background: var(--bg);
border-radius: 4px;
overflow: hidden;
box-shadow: 0 0 16px rgba(0, 0, 0, 0.125);
& > div {
padding: 1em;
}
nav {
--bg: #{$fg};
--fg: #{$bg};
background: var(--bg);
color: var(--fg);
box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.125);
display: flex;
.dropdown {
position: relative;
display: flex;
padding: 0;
.dropdown-content {
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
width: 100%;
}
&:not(:hover) .dropdown-content {
display: none !important;
}
}
& > *, .dropdown > a {
1 year ago
padding: 0.45em;
& > * {
vertical-align: middle;
}
}
a {
1 year ago
color: var(--fg);
font-weight: bold;
}
& > .right {
1 year ago
margin-left: auto;
}
img {
height: 32px;
border-radius: 100%;
}
}
}
.dropdown:hover > a, nav > a:hover {
border: none;
--fg: #{$fg};
--bg: #{$bg};
background: var(--bg);
cursor: pointer;
}
1 year ago
.svg-inline {
height: 1em;
vertical-align: -0.125em;
}
a {
text-decoration: none;
&:hover {
border-bottom: 2px solid;
}
&.noun {
color: #a6e3a1;
}
&.adjective {
color: #f38ba8;
}
&.verb {
color: #87b0f9;
}
&.adverb {
color: #94e2d5;
}
&.particle {
color: #f9e2af;
}
&.phrase {
color: #fab387;
}
}