This repository has been archived on 2021-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
squirrel-theme/css/header.css

145 lines
2.2 KiB
CSS
Raw Normal View History

2020-12-13 21:33:38 +00:00
.header {
margin: auto;
2021-02-17 18:56:58 +00:00
width: 100%;
padding: 1rem;
2020-12-13 21:33:38 +00:00
display: flex;
font-size: large;
2020-12-13 23:35:01 +00:00
overflow: hidden;
2021-02-17 18:56:58 +00:00
flex-shrink: 0;
background: white;
box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.2);
position: fixed;
z-index: 999;
top: 0;
2020-12-13 21:33:38 +00:00
}
2021-02-17 18:56:58 +00:00
.header-container {
width: 100%;
max-width: 1152px;
2020-12-13 21:33:38 +00:00
display: flex;
2021-02-17 18:56:58 +00:00
margin: auto;
}
.sticky {
position: fixed;
top: 0;
}
.logo {
2020-12-13 23:35:01 +00:00
height: 3.5rem;
2020-12-13 21:33:38 +00:00
}
2021-02-17 18:56:58 +00:00
.small-logo {
height: 2.5rem;
2020-12-13 21:33:38 +00:00
}
2021-02-17 18:56:58 +00:00
.menu-icon {
2020-12-13 23:35:01 +00:00
display: none;
font-size: larger;
}
2021-02-17 18:56:58 +00:00
.header-items {
margin: auto;
margin-left: 0px;
display: flex;
}
2020-12-13 21:33:38 +00:00
.header-item {
margin-left: 2.5rem
}
2020-12-13 23:35:01 +00:00
.dropdown {
overflow: hidden;
}
.dropdown .dropbtn {
border: none;
outline: none;
margin: 0;
}
2020-12-13 21:33:38 +00:00
.dropdown-content {
display: none;
2021-02-17 18:56:58 +00:00
position: fixed;
background-color: #ffffff;
2020-12-13 21:33:38 +00:00
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
2020-12-13 23:35:01 +00:00
.dropdown-content a {
2021-02-17 18:56:58 +00:00
padding: 0.5rem 1rem;
2020-12-13 23:35:01 +00:00
display: block;
}
.dropdown-content a:hover {
background-color: #ddd;
}
2020-12-13 21:33:38 +00:00
.dropdown:hover .dropdown-content {
display: block;
2020-12-13 23:35:01 +00:00
}
@media screen and (max-width: 600px) {
2021-02-17 18:56:58 +00:00
.header-container {
display: block;
2020-12-13 23:35:01 +00:00
}
2021-02-17 18:56:58 +00:00
.home {
width: 100vw;
2020-12-13 23:35:01 +00:00
}
2021-02-17 18:56:58 +00:00
.menu-icon {
display: block;
position: fixed;
top: 30px;
right: 30px;
2020-12-13 23:35:01 +00:00
}
2021-02-17 18:56:58 +00:00
.menu-icon .hide {
display: none;
2020-12-13 23:35:01 +00:00
}
2021-02-17 18:56:58 +00:00
.small-icon {
top: 20px;
2020-12-13 23:35:01 +00:00
}
2021-02-17 18:56:58 +00:00
.header-items {
display: none;
}
.header-items.responsive {
position: relative;
float: none;
display: block;
text-align: left;
margin-top: 0.5rem;
2020-12-13 23:35:01 +00:00
}
2021-02-17 18:56:58 +00:00
2020-12-13 23:35:01 +00:00
.header-items.responsive .header-item {
2021-02-17 18:56:58 +00:00
display: block;
margin-left: 0rem;
padding-bottom: 0.5rem;
padding-top: 0.5rem;
}
.header-items.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.header-items.responsive .dropdown {
float: none;
}
.header-items.responsive .dropdown-content {
position: relative;
box-shadow: none;
}
.header-items.responsive .dropdown .dropbtn {
2020-12-13 23:35:01 +00:00
display: block;
width: 100vw;
text-align: left;
}
2021-02-17 18:56:58 +00:00
2020-12-13 21:33:38 +00:00
}