ponozky/assets/style.css
2024-06-09 17:19:00 +02:00

206 lines
3.3 KiB
CSS

:root {
--pico-primary: #cccccc;
--pico-background-color: #324032;
}
body, html {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
align-items: center;
width: 100%;
}
header #top {
background-image: url(/assets/bambus.jpg);
background-repeat: repeat !important;
color: #fff;
text-shadow: #363636 5px 4px;
padding: 20px;
text-align: center;
}
header {
padding: 0 !important;
flex-direction: column;
}
header > * {
width: 100%;
}
header nav {
display: flex;
align-items: center;
flex-grow: 1;
background-color: #444444b7;
padding: 0;
margin: 0;
text-align: center;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
header nav > * {
display: flex;
align-items: center;
flex-direction: row;
list-style: none;
padding: 0;
justify-content: center;
width: 100%;
margin: 0 10px;
}
header nav > *, header nav > .dropdown > *, header nav > .dropdown > .dropdown-content > * {
color: #dfd07a !important;
text-decoration: none;
white-space: nowrap;
width: fit-content;
}
header nav p, header nav a {
text-decoration: none;
}
nav a:hover {
color: rgb(189, 189, 42);
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #585a59;
min-width: 100px;
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-content a {
color: #fff;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #363636;
}
section {
padding: 20px;
}
footer {
background-color: #333333c7;
color: #fff;
text-align: center;
padding: 10px 0;
position: fixed;
width: 100%;
bottom: 0;
}
footer, header {
text-align: center;
padding: 10px 0;
display: flex;
align-items: center;
width: 100%;
}
footer > * {
display: inline;
flex: 1;
}
header {
padding-top: 0;
}
main {
display: flex;
flex-grow: 1;
align-items: center;
flex-direction: column;
width: 60%;
}
h1, h2, h3, h4, h5, h6 {
text-align: center;
}
#dropdown_menu {
top: 0;
width: fit-content;
display: flex;
left: auto;
gap: 2rem;
}
#dropdown_menu li {
padding: 0.7rem;
display: flex;
align-items: center;
justify-content: center;
}
#dropdown_menu .action_btn {
width: 100%;
display: flex;
justify-content: center;
}
#toggle_btn {
display: none;
color: #fff;
font-size: 1.5rem;
cursor: pointer;
}
/* RESPONSIVE DESIGN */
@media(max-width: 500px) {
#toggle_btn {
display: block;
z-index: 200;
}
.dropdown-content {
display: block;
position: relative;
}
#dropdown_menu {
gap: unset;
position: fixed;
height: 0;
left: 0;
top: 0;
width: 100%;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(15px);
border-radius: 10px;
overflow: hidden;
flex-direction: column;
transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
z-index: 100;
margin: 0;
}
#dropdown_menu.open {
height: 280px;
}
}