123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- header {
- padding: 0 !important;
- }
- header .top-nav {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- color: #000;
- height: 100px;
- padding: 1em;
- }
- header .menu {
- display: flex;
- flex-direction: row;
- list-style-type: none;
- margin: 0;
- padding: 0;
- }
- header .menu a {
- color: #000;
- text-decoration: none;
- }
- header .menu a:hover {
- text-decoration: underline;
- }
- header .menu > li {
- margin: 0 1rem;
- overflow: hidden;
- }
- header .menu-button-container {
- display: none;
- height: 100%;
- width: 30px;
- cursor: pointer;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- header #menu-toggle {
- display: none;
- }
- header .menu-button,
- header .menu-button::before,
- header .menu-button::after {
- display: block;
- background-color: #000;
- position: absolute;
- height: 4px;
- width: 30px;
- transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
- border-radius: 2px;
- }
- header .menu-button::before {
- content: "";
- margin-top: -8px;
- }
- header .menu-button::after {
- content: "";
- margin-top: 8px;
- }
- header #menu-toggle:checked + .menu-button-container .menu-button::before {
- margin-top: 0px;
- transform: rotate(405deg);
- }
- header #menu-toggle:checked + .menu-button-container .menu-button {
- background: rgba(255, 255, 255, 0);
- }
- header #menu-toggle:checked + .menu-button-container .menu-button::after {
- margin-top: 0px;
- transform: rotate(-405deg);
- }
- @media (max-width: 700px) {
- header .menu-button-container {
- display: flex;
- }
- header .menu {
- position: absolute;
- top: 50px;
- margin-top: 50px;
- left: 0;
- flex-direction: column;
- width: 100%;
- justify-content: center;
- align-items: center;
- }
- header .menu li {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- header .menu li a {
- color: #fff !important;
- }
- header #menu-toggle ~ .menu li {
- height: 0;
- margin: 0;
- padding: 0;
- border: 0;
- transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
- }
- header #menu-toggle:checked ~ .menu li {
- border: 1px solid #333;
- height: 2.5em;
- padding: 0.5em;
- transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
- }
- header .menu > li {
- display: flex;
- justify-content: center;
- margin: 0;
- padding: 0.5em 0;
- width: 100%;
- background-color: #222;
- }
- header .menu > li:not(:last-child) {
- border-bottom: 1px solid #444;
- }
- }/*# sourceMappingURL=header.css.map */
|