website/assets/styles/site.css

143 lines
2.9 KiB
CSS

@import url('../fonts/fantastique-sans/stylesheet.css');
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GENERAL *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
html {
box-sizing: border-box;
font-family: 'Fantasque Sans Mono', monospace;
text-transform: lowercase;
}
*, *:before, *:after {
box-sizing: inherit;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* PAGE *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
body {
width: 100%;
}
main {
width: 100%;
margin: 2rem 1rem;
}
@media (min-width: 426px) {
main {
width: 30vw;
margin: 2rem auto;
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* TEXT *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
h1 {
margin: 0;
font-size: 4rem;
}
p, li {
font-size: 1.3rem;
}
a {
text-decoration: none;
color: inherit;
}
a:hover {
font-weight: bold;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* HEADER *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
header {
width: 100%;
margin: 2rem auto 2rem auto;
text-align: center;
}
header > img,
header > h1 {
display: inline-block;
vertical-align: middle;
}
header > img {
width: 4rem;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* NAVBAR *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
nav {
margin-bottom: 2rem;
}
nav > ul {
display: block;
margin: 0;
padding: 0;
list-style: none;
}
nav > ul > li {
display: inline-block;
margin-right: 0.8rem;
color: #378ab4;
}
nav > ul > li:before {
content: "+";
margin-right: 0.3rem;
color: #000000;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* SECTION *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
section {
margin-bottom: 2rem;
}
section:last-child {
margin-bottom: 0;
}
section > p {
margin: 0;
}
section > p > span {
padding: 0.1rem 0;
background: #000000;
box-shadow: 0 0 0 #000000, 0 0 0 #000000;
color: #ffffff;
}
section > p:first-child > span {
background: #378ab4;
box-shadow: 0 0 0 #378ab4, 0 0 0 #378ab4;
}
section > img {
width: 100%;
height: auto;
}