MyWebsite/style.css

247 lines
4.3 KiB
CSS
Raw Permalink Normal View History

2024-07-03 06:48:59 +00:00
@font-face {
font-family: "Cantarell var";
font-weight: 100 900;
font-display: swap;
font-style: normal;
font-named-instance: "Regular";
src: url("./Cantarell-VF.woff2") format("woff2"),
url("./Cantarell-VF.otf") format("opentype");
}
body {
padding: 0px;
margin: 0px;
padding-bottom: 120px;
background-color: #242424;
}
h1 {
font-family: "Cantarell var", sans-serif;
font-weight: 800;
font-variation-settings: "wght" 800;
}
h4 {
font-family: "Cantarell var", sans-serif;
font-weight: 700;
font-variation-settings: "wght" 700;
color: #FFFFFF;
}
h5 {
font-family: "Cantarell var", sans-serif;
font-weight: 400;
font-variation-settings: "wght" 400;
font-size: 14px;
color: #939393;
}
p {
font-family: "Cantarell var", sans-serif;
font-variation-settings: "wght" 350;
font-weight: 350;
}
a {
font-family: "Cantarell var", sans-serif;
font-weight: 600;
font-variation-settings: "wght" 600;
}
.about-title, .about-me {
color: #FFFFFF;
margin: 0 auto;
position: relative;
max-width: 950px;
top: 30px;
}
.nav {
list-style: none;
margin-top: 8px;
text-align: center;
}
.nav li {
display: inline;
}
.nav a {
display: inline-block;
text-decoration: none;
color: #FFFFFF;
border-radius: 8px;
padding: 8px 40px;
margin: -1px;
transition: background-color 0.3s;
}
.nav a:hover {
background-color: #3A3A3A;
}
.about-me a {
font-family: "Cantarell var", sans-serif;
font-variation-settings: "wght" 350;
font-weight: 350;
text-decoration: none;
color: #FFFFFF;
}
.description a {
font-family: "Cantarell var", sans-serif;
font-variation-settings: "wght" 350;
font-weight: 350;
text-decoration: none;
color: #929292;
}
.nav img {
margin-bottom: -1px;
margin-right: 1px;
}
.active {
background-color: #3A3A3A;
}
.title, .description {
margin: 0 auto;
position: relative;
max-width: 950px;
top: 38px;
}
.info {
margin: 0 auto;
position: relative;
max-width: 950px;
top: 35px;
font-size: 14px;
color: #FFFFFF;
}
.credits {
margin: 0 auto;
position: relative;
max-width: 950px;
top: 35px;
font-size: 14px;
color: #929292;
}
.box {
margin: 0 auto;
margin-top: 45px;
max-width: 950px;
}
.row {
background-color: #363636;
display: flex;
text-decoration: none;
color: #FFFFFF;
justify-content: space-between;
align-items: center;
padding: 16px;
transition: background-color 0.3s;
border-bottom: 1px solid #232323;
}
.row:first-child {
border-radius: 12px 12px 0 0;
}
.row:last-child {
border-radius: 0 0 12px 12px;
border-bottom: none;
}
.row:hover {
background-color: #3C3C3C;
}
.row p {
margin: 0;
}
.row img {
margin-right: 8px;
}
@media (max-width: 980px) {
.box {
max-width: 90%;
}
.about-title, .about-me, .title, .description, .info, .credits {
max-width: 90%;
padding: 0 15px;
}
}
@media (max-width: 768px) {
a {
font-family: "Cantarell var", sans-serif;
font-variation-settings: "wght" 600;
font-weight: 600;
font-size: 14px;
}
body {
padding-bottom: 120px;
margin: 0;
overflow-x: hidden;
}
.nav {
position: fixed;
bottom: -20px;
left: 0;
width: 100%;
text-align: center;
padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
z-index: 1050;
background-color: #242424;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.3);
box-sizing: border-box;
}
.nav li {
display: inline-block;
margin: 0;
}
.nav a {
display: flex;
flex-direction: column;
align-items: center;
padding: 4px;
width: 100px;
box-sizing: border-box;
margin-bottom: 5px;
}
.nav img {
width: 14px;
height: auto;
margin-bottom: 4px;
margin-right: 0;
}
.title, .description, .box, .about-me, .about-title, .info, .credits {
padding: 0 15px;
}
.row {
flex-direction: row;
align-items: flex-start;
padding: 18px;
}
.row, img {
margin-bottom: 0;
margin-right: 8px;
}
}