agreugreu/agreugreu.css

174 lines
2.7 KiB
CSS
Raw Normal View History

2023-05-25 12:57:03 +02:00
main {
margin-left: 20px;
}
2023-05-10 16:06:56 +02:00
:root{
--white: #f9f9f9;
--black: #36383F;
--gray: #85888C;
} /* variables*/
/* Reset */
*{
box-sizing: border-box;
}
a{
text-decoration: none;
}
2023-05-10 16:06:56 +02:00
nav ul{
list-style: none;
}
2023-05-10 16:06:56 +02:00
/* Header */
.header{
background-color: var(--black);
box-shadow: 1px 1px 5px 0px var(--gray);
2023-05-11 10:48:45 +02:00
position: fixed;
2023-05-10 16:06:56 +02:00
width: 100%;
2023-05-11 10:48:45 +02:00
top: 0px;
2023-05-10 16:06:56 +02:00
}
/* Logo */
.logo{
display: inline-block;
color: #8ae717;
font-size: 60px;
margin-left: 10px;
padding-bottom: 10px;
}
2023-05-10 16:06:56 +02:00
/* Nav menu */
.nav{
width: 100%;
height: 100%;
background-color: var(black);
overflow: hidden;
2023-05-11 10:48:45 +02:00
font-family: verdana;
position: sticky;
position:-webkit-sticky;
2023-05-10 16:06:56 +02:00
}
.menu a{
display: block;
2023-05-10 16:06:56 +02:00
padding: 15px;
margin-right: 30px;
text-align: center;
color: powderblue;
}
2023-05-10 16:06:56 +02:00
.menu a:hover{
background-color: var(--gray);
}
.nav{
max-height: 0;
transition: max-height .5s ease-out;
}
/* Menu Icon */
.hamb{
cursor: pointer;
float: right;
padding: 40px 20px;
}/* Style label tag */
.hamb-line {
background: var(--white);
display: block;
height: 2px;
position: relative;
width: 24px;
2023-05-10 16:06:56 +02:00
} /* Style span tag */
.hamb-line::before, .hamb-line::after{
background: var(--white);
content: '';
display: block;
height: 100%;
position: absolute;
transition: all .2s ease-out;
width: 100%;
}
.hamb-line::before{
top: 5px;
}
.hamb-line::after{
top: -5px;
}
.side-menu {
display: none;
} /* Hide checkbox */
/* Toggle menu icon */
.side-menu:checked ~ nav{
max-height: 100%;
background-color: var(--black);
}
.side-menu:checked ~ .hamb .hamb-line {
background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
transform: rotate(-45deg);
top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
transform: rotate(45deg);
top:0;
}
2023-05-10 16:06:56 +02:00
/* Responsiveness */
@media (min-width: 1190px) {
.nav{
max-height: none;
top: 0;
position: relative;
float: right;
width: fit-content;
background-color: transparent;
transition: 0.6s;
}
.menu li{
float: left;
}
.menu a:hover{
background-color: transparent;
color: var(--gray);
}
.hamb{
display: none;
}
}
2023-05-10 16:06:56 +02:00
body {
background-color: #1c1e20;
color: #cdcdcd;
font-family: arial;
}
h2,h3 {
margin: 30px;
color: #ffc38a;
}
.code {
background-color: #4D4D4D
}
2023-05-25 12:57:03 +02:00
p {
font-size: 18px;
}
a.external {
color: #8ae717
}
footer {
2023-05-25 12:57:03 +02:00
display: flex;
justify-content: center;
align-items: center;
margin-top: 70px;
2023-05-26 17:44:53 +02:00
height: 40px;
color: skyblue;
2023-05-25 12:57:03 +02:00
font-size: 16px;
background-color: #52575e;
}