179 lines
3.6 KiB
CSS
179 lines
3.6 KiB
CSS
:root {
|
|
--color-main-bg: rgb(38, 40, 43);
|
|
|
|
--color-navbar-bg: rgb(52, 52, 56);
|
|
--color-navbar-button: rgb(50, 50, 53);
|
|
--color-navbar-button-hover: rgb(43, 43, 46);
|
|
--color-navbar-button-focus: rgb(44, 44, 48);
|
|
--color-navbar-border-bottom: rgb(41, 41, 44);
|
|
|
|
--color-content-bg: rgb(44, 44, 48);
|
|
--color-content-fg: rgb(164, 161, 172);
|
|
|
|
--navbar-height: 3.5vw;
|
|
--navbar-width: 60%;
|
|
--navbar-padding-size: 0.5em;
|
|
--navbar-text-size: 24px;
|
|
|
|
--content-width: 50%;
|
|
--content-text-size: 1.2em;
|
|
--content-top-padding: 2em;
|
|
--content-side-padding: 2em;
|
|
|
|
--highlight-color: rgb(230, 134, 217);
|
|
}
|
|
|
|
body, html {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: Roboto, Helvetica, sans-serif;
|
|
background-color: var(--color-main-bg);
|
|
}
|
|
|
|
#text {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Navbar styles */
|
|
|
|
nav {
|
|
width: 100%;
|
|
height: var(--navbar-height);
|
|
background-color: var(--color-navbar-bg);
|
|
border-bottom: solid 4px var(--color-navbar-border-bottom);
|
|
}
|
|
|
|
nav ul {
|
|
height: 100%;
|
|
font-size: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style-type: none;
|
|
width: var(--navbar-width);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
nav li {
|
|
height: 100%;
|
|
font-size: var(--navbar-text-size);
|
|
display: inline-block;
|
|
margin: 0;
|
|
}
|
|
|
|
nav li a {
|
|
display: block;
|
|
height: 100%;
|
|
background-color: var(--color-navbar-button);
|
|
color: var(--highlight-color);
|
|
text-decoration: none;
|
|
padding-left: var(--navbar-padding-size);
|
|
padding-right: var(--navbar-padding-size);
|
|
transition: 0.15s;
|
|
border-left: solid 3px var(--color-navbar-button-hover);
|
|
position: relative;
|
|
}
|
|
nav li:not(.image) a {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
nav li:first-child a {
|
|
border-left: solid 3px var(--color-navbar-button-hover);
|
|
}
|
|
|
|
nav li:last-child a {
|
|
border-right: solid 3px var(--color-navbar-button-hover);
|
|
}
|
|
|
|
nav ul a:hover {
|
|
background-color: var(--color-navbar-button-hover);
|
|
}
|
|
|
|
nav ul a:focus {
|
|
outline: none;
|
|
background-color: var(--color-navbar-button-focus);
|
|
}
|
|
|
|
/* Navbar images */
|
|
|
|
nav img {
|
|
height: var(--navbar-height);
|
|
vertical-align: top;
|
|
border: 50%;
|
|
}
|
|
|
|
nav li.image {
|
|
position: relative;
|
|
bottom: calc(var(--navbar-height) / 4);
|
|
padding: 0;
|
|
}
|
|
|
|
nav li.image a {
|
|
height: auto;
|
|
}
|
|
|
|
/* Article styles */
|
|
|
|
article {
|
|
width: var(--content-width);
|
|
min-height: calc(100% - var(--navbar-height) - var(--content-top-padding) - 4px);
|
|
margin: auto;
|
|
padding-top: var(--content-top-padding);
|
|
padding-left: var(--content-side-padding);
|
|
padding-right: var(--content-side-padding);
|
|
background-color: var(--color-content-bg);
|
|
color: var(--color-content-fg);
|
|
font-size: var(--content-text-size);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
:root {
|
|
--content-side-padding: 5%;
|
|
--content-width: 90%;
|
|
--navbar-text-size: 30px;
|
|
--content-text-size: 1.5em;
|
|
--navbar-width: 100%;
|
|
}
|
|
|
|
nav {
|
|
height: auto;
|
|
}
|
|
|
|
nav li {
|
|
display: block;
|
|
}
|
|
|
|
nav li a {
|
|
text-align: center;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
border: solid 3px var(--color-navbar-button-hover);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1500px) and (min-width: 900px) {
|
|
:root {
|
|
--content-width: 70% !important;
|
|
--navbar-text-size: 30px;
|
|
--navbar-height: 5vw;
|
|
}
|
|
}
|
|
|
|
|
|
article > * {
|
|
margin: 0;
|
|
}
|
|
|
|
article a {
|
|
color: var(--highlight-color);
|
|
}
|
|
|
|
article img {
|
|
max-width: calc(100% - var(--content-side-padding));
|
|
} |