quartz/assets/styles/header.scss
2022-05-05 01:03:27 -04:00

74 lines
1.7 KiB
SCSS

.header {
overflow: hidden;
width: 100%;
}
/* Style the header links */
.header a {
float: left;
text-align: center;
padding: 12px;
text-decoration: none;
font-size: 14px;
line-height: 25px;
border-radius: 4px;
}
/* Style the logo link (notice that we set the same value of line-height and font-size to prevent the header to increase when the font gets bigger */
.header a.logo {
font-size: 2em;
font-weight: bold;
padding-left: 0px;
padding-right: 0px;
// padding: 0px;
}
/* Change the background color on mouse-over */
.header a:hover {
background-color: #ddd;
color: black;
}
/* Style the active/current link*/
.header a.active {
background-color: dodgerblue;
color: white;
}
/* Float the link section to the right */
.header-right {
float: right;
}
/* Hide the link that should open and close the topnav on small screens */
.header .menu {
display: none;
font-size: 1.5em;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.header-right a {display: none;}
.header a.menu {
float: left;
display: block;
}
}
/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 600px) {
.header.responsive {position: relative;}
.header.responsive a.menu {
position: absolute;
left: 0;
top: 0;
}
.header.responsive a {
float: none;
display: block;
text-align: center;
}
.header-right.responsive {
float: none;
}
}