103 lines
1.5 KiB
CSS
103 lines
1.5 KiB
CSS
*{
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
body{
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.menu {
|
|
overflow: hidden;
|
|
background-color: #333;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
background-image: url(./bilder/bg2.jpg);
|
|
}
|
|
|
|
.menu a {
|
|
float: left;
|
|
display: block;
|
|
color: #f2f2f2;
|
|
text-align: center;
|
|
padding: 25px 16px;
|
|
text-decoration: none;
|
|
transition: ease 0.3s;
|
|
}
|
|
|
|
.menu p{
|
|
position: fixed;
|
|
top: 25px;
|
|
right: 100px;
|
|
color: #f2f2f2;
|
|
}
|
|
|
|
.menu a:hover {
|
|
background: #ddd;
|
|
color: black;
|
|
}
|
|
|
|
.seite {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 80px 20px;
|
|
transition: .4s ease;
|
|
}
|
|
|
|
.seite h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
.seite p {
|
|
padding: 30px 0;
|
|
}
|
|
|
|
|
|
#dark_mode {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
appearance: none;
|
|
-webkit-appearance : none;
|
|
-moz-appearance : none;
|
|
-o-appearance : none;
|
|
width: 70px;
|
|
height: 35px;
|
|
background: black;
|
|
border-radius: 22px;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
#dark_mode::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 35px;
|
|
height: 30px;
|
|
background-color:white;
|
|
border-radius: 35px;
|
|
top: 2px;
|
|
left: 2px;
|
|
cursor: pointer;
|
|
transition: .3s linear;
|
|
}
|
|
|
|
#dark_mode:checked + .seite {
|
|
background-color: #1e1e1e;
|
|
color: white;
|
|
}
|
|
|
|
|
|
#dark_mode:checked::before {
|
|
left: 30px;
|
|
}
|
|
|
|
#dark_mode:checked {
|
|
background: rgb(12, 177, 81);
|
|
} |