Files
barefaced/www/css/barefaced_header.css
T
2026-09-17 21:30:39 +02:00

75 lines
1.9 KiB
CSS

/** Header and included nav styles */
/* Style für Header, Navigation */
header {
display: flex;
justify-content: flex-start;
flex-direction: row;
@media (max-width: 768px) {
flex-direction: column;
justify-content: center;
align-items: center;
}
align-items: center;
height: var(--header-height);
background-image: url('../images/header.png');
background-size: auto;
background-position: left;
border: 1px solid var(--secondary-color);
border-radius: var(--box-border-radius);
color: var(--primary-color);
margin: 16px;
}
header img {
height: calc(var(--header-height) - 5px); /* Adjust the image height to fit within the header */
margin-left: 10px; /* Space between the image and the header text */
padding-right: 16px; /* Space between the image and the header text */
}
header h1 {
font-weight: 800;
font-size: 3em; /* Adjust the font size as needed */
margin-left: 5px;
padding: 16px;
@media (max-width: 768px) {
font-size: 2em; /* Adjust the font size for smaller screens */
padding: 0px; /* Adjust the padding for smaller screens */
}
}
header p {
font-weight: 100;
margin-left: 16px;
padding-right: 16px;
}
nav {
margin: 16px;
@media (max-width: 768px) {
margin: 0px;
}
padding: 5px;
}
nav ul {
padding-top: 15px; /* Entfernt die Standard-Padding der Liste */
list-style-type: none; /* Entfernt die Standard-Aufzählungszeichen */
display: flex; /* Macht die Liste horizontal */
gap: 20px; /* Abstand zwischen den Listenelementen */
}
nav ul li a {
text-decoration: none; /* Entfernt die Unterstreichung */
color: var(--secondary-font-color); /* Setzt die Schriftfarbe */
}
nav ul li a:hover {
text-decoration: underline; /* Unterstreichung beim Überfahren mit der Maus */
font-weight: bold; /* Macht den Text fett */
}