138 lines
2.5 KiB
CSS
138 lines
2.5 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--color-background);
|
|
color: var(--color-text);
|
|
font-family: "Roboto", sans-serif;
|
|
margin: 0;
|
|
}
|
|
|
|
.nav-bar ul {
|
|
list-style-type: none;
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: space-evenly;
|
|
align-items: center;
|
|
padding: 0;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.nav-bar a,
|
|
.nav-bar button {
|
|
color: inherit;
|
|
font: inherit;
|
|
background: none;
|
|
border: none;
|
|
text-decoration: none;
|
|
padding: 5px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.nav-bar svg {
|
|
width: 1em;
|
|
height: 1em;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-bar button:hover,
|
|
.nav-bar a:hover {
|
|
color: var(--color-link-hover);
|
|
}
|
|
|
|
nav {
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
main {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.project-card {
|
|
padding: 0 10px;
|
|
margin: 5px 0;
|
|
border: 2px solid var(--color-border);
|
|
border-radius: 10px;
|
|
background-color: var(--color-card);
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding-top: 5px;
|
|
background-color: cornflowerblue;
|
|
color: black;
|
|
}
|
|
|
|
:root {
|
|
color-scheme: dark light;
|
|
|
|
--color-background: light-dark(#eeeeee, #222222);
|
|
--color-text: light-dark(#222222, #eeeeee);
|
|
--color-link-hover: light-dark(#676767, #bababa);
|
|
--color-border: light-dark(#888888, #888888);
|
|
--color-card: light-dark(#dadada, #313131);
|
|
}
|
|
|
|
:root[data-theme="light"] {
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Fredoka';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('assets/fonts/fredoka-v17-latin_latin-ext-regular.woff2') format('woff2');
|
|
}
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Fredoka';
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
src: url('assets/fonts/fredoka-v17-latin_latin-ext-500.woff2') format('woff2');
|
|
}
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Fredoka';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url('assets/fonts/fredoka-v17-latin_latin-ext-700.woff2') format('woff2');
|
|
}
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('assets/fonts/roboto-regular.woff2') format('woff2');
|
|
}
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
src: url('assets/fonts/roboto-500.woff2') format('woff2');
|
|
}
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url('assets/fonts/roboto-700.woff2') format('woff2');
|
|
}
|