portfolio-static-files/style.css

135 lines
1.7 KiB
CSS

/* RESET */
html {
box-sizing: border-box;
font-size: 16px;
}
*, *:before, *:after {
box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
padding: 0;
font-weight: normal;
}
ol, ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
}
a, a:visited, a:focus, a:active {
color: blue;
}
/* FONTS */
@font-face {
font-family: 'Aeonik';
src: url('./fonts/AeonikPro-Regular.woff') format('woff')
}
/* CASCADE */
body {
font-family: 'Aeonik', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
margin-top: 10vh;
margin-bottom: 10vh;
background-color: #eee;
padding: 0 2rem;
}
h2 {
font-size: 2.8rem;
}
body > div:first-of-type {
margin-bottom: 6vh;
}
body > div:first-of-type p {
margin-bottom: 2vh;
}
body > div:first-of-type p:first-of-type {
margin-top: 4vh;
}
h3 {
font-size: 1.7rem;
text-align: center;
}
h4 {
margin-bottom: 0.3rem;
}
h5 {
font-size: 1.4rem;
}
video {
margin-top: 2.5vh;
margin-bottom: 2.5vh;
width: 100%;
}
body > div:last-of-type {
width: 100%;
}
ul {
width: 100%;
}
ul {
display: flex;
flex-direction: column;
}
li {
margin-top: 8vh;
}
li > div {
margin-top: 0.3rem;
text-align: right;
}
li > div > a {
display: block;
}
body > div:last-of-type {
margin-top: 12vh;
display: flex;
width: 100%;
justify-content: space-between;
}
@media screen and (min-width: 960px) {
body {
margin-left: 25vw;
width: 50vw;
}
div:first-of-type p {
width: 60%;
}
li:nth-child(even) {
align-self: flex-end;
}
li {
width: 60%;
}
}