You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

254 lines
3.9 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;1,400&display=swap');
:root {
--color-1: #2a555e;
--color-2: #70abaf;
--color-2-1: #bbdce2;
--color-3: #eff6ff;
--color-4: #c10001;
--color-5: #710002;
--fg-light: #f7d9da;
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
height: 100%;
}
body {
background: var(--color-2-1);
color: var(--color-1);
display: flex;
flex-direction: column;
position: relative;
overflow-y: scroll;
}
main {
max-width: 100%;
width: calc(80ch + 4rem);
margin: 0 auto;
padding: 2rem;
margin-bottom: 5rem;
background: var(--color-3);
/* height: 100%; */
flex-grow: 1;
flex-basis: 100%;
}
#wallpaper {
z-index: -1;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: auto;
}
header {
max-width: 100%;
width: calc(80ch + 4rem);
margin: 0 auto;
display: flex;
flex-direction: column;
background: #ffffff88;
height: 15rem;
padding: 0 1rem 0 2rem;
justify-content: space-between;
backdrop-filter: blur(4px);
}
header h1 {
color: var(--color-1);
font-size: 2.5rem;
font-weight: 600;
padding-bottom: 1rem;
}
nav {
width: 100%;
display: flex;
flex-direction: row;
align-items: start;
justify-content: flex-end;
}
nav .nav-item {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
padding: 1rem;
display: flex;
align-items: start;
justify-content: center;
/* background: linear-gradient(to right, var(--color-4), var(--color-5)); */
background: var(--color-4);
color: var(--fg-light);
box-sizing: content-box;
transition: padding-bottom 150ms ease-in-out;
}
nav .nav-item:not(:first-child) {
border-left: 1px solid var(--color-5);
}
nav .nav-item.current {
padding-bottom: 2rem;
}
nav .nav-item a, nav .nav-item a:visited {
color: var(--fg-light);
text-decoration: none;
}
nav .nav-item:hover {
padding-bottom: 2rem;
}
.news {
float: right;
max-width: 30ch;
padding: 0 1rem;
margin: 0 1rem 1rem;
/* border-left: 2px solid var(--color-5);
border-bottom: 2px solid var(--color-5); */
background: #ffd772;
border-radius: 3px;
box-shadow: 0 0 8px #00000066;
transform: rotate(3deg);
}
footer {
height: 5rem;
width: 100%;
background: var(--color-2);
color: var(--color-1);
padding: 0 1rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
/* Block Elements */
a, a:visited {
color: var(--color-5);
text-decoration: none;
}
a:hover, a:focus {
text-decoration: underline;
}
/* Typography */
body {
font-family: 'Poppins', sans-serif;
font-size: 16px;
font-weight: 400;
}
b, strong {
font-weight: 600;
}
p {
margin: 1rem 0 0;
}
h1, h2, h3, h4 {
color: var(--color-5);
font-weight: 400;
}
/* Mobile */
/* Only Desktop */
@media screen and (min-width: 513px) {
#mobile-nav-menu {
display: none;
}
}
/* Only Mobile */
@media screen and (max-width: 512px) {
header {
padding: 0;
height: unset;
}
header h1 {
padding-left: 1rem;
}
nav {
display: flex;
flex-direction: column;
/* position: absolute;
top: 0; */
z-index: 1;
background: var(--color-4);
}
nav .nav-item, nav .nav-item.current {
padding: 1rem !important;
border-radius: 0;
width: 100%;
box-sizing: border-box;
}
#mobile-nav-menu {
display: flex;
justify-content: flex-start;
}
#mobile-nav-menu:not(.openned) ~ .nav-item {
display: none;
}
.news {
float: none;
width: 100%;
max-width: unset;
margin: 0 auto 1rem;
padding: 0.1px 1rem;
}
}