123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- .mobile-container {
- position: absolute;
- //width: 100%;
- //height: 100%;
- top: 40%;
- left: 0;
- margin: 0 auto;
- z-index: 2;
- }
- .mobile-logo {
- svg {
- max-width: 150px;
- margin-top: 1rem;
- margin-left: 1.4rem;
- path {
- fill: $light-color;
- }
- }
- }
- // Hamburger Menu
- .mobile-menu {
- display: none;
- top: 0;
- right: 0;
- z-index: 3;
- .header-fixed & {
- position: fixed;
- }
- @include breakpoint(md) {
- display: block;
- }
- .button_container {
- position: absolute;
- top: 1rem;
- right: $horiz-padding;
- height: $mobile-button-height;
- width: $mobile-button-width;
- cursor: pointer;
- z-index: 100;
- transition: opacity .25s ease, top 0.5s ease;
- &:hover {
- opacity: .7;
- }
- &.active {
- position: fixed;
- .top {
- transform: translateY(11px) translateX(0) rotate(45deg);
- background: $mobile-color-active;
- }
- .middle {
- opacity: 0;
- background: $mobile-color-active;
- }
- .bottom {
- transform: translateY(-11px) translateX(0) rotate(-45deg);
- background: $mobile-color-active;
- }
- }
- span {
- background: $mobile-color-main;
- border: none;
- height: 5px;
- width: 100%;
- position: absolute;
- top: 0;
- left: 0;
- transition: all .35s ease;
- cursor: pointer;
- &:nth-of-type(2) {
- top: 11px;
- }
- &:nth-of-type(3) {
- top: 22px;
- }
- }
- }
- }
- .overlay {
- position: fixed;
- background: #000;
- top: 0;
- left: 0;
- width: 100%;
- height: 0%;
- opacity: 0;
- visibility: hidden;
- transition: opacity .35s, visibility .35s, height .35s;
- &.open {
- opacity: .95;
- visibility: visible;
- height: 100%;
- }
- nav {
- position: relative;
- margin: 0 auto;
- text-align: center;
- }
- }
- .overlay-menu {
- height: calc(100% - 90px);
- overflow-y: scroll;
- & > .tree {
- text-align: left;
- }
- }
- .treemenu {
- &.treemenu-root {
- margin: 1rem;
- }
- li {
- list-style: none;
- margin: 0 0 1px;
- padding: 5px 0;
- line-height: 1.2rem;
- background: rgba($gray-color-dark,0.1);
- a {
- display: block;
- margin-left: 1.2rem;
- font-size: 1rem;
- &:hover, &:focus, &.active {
- color: $primary-color-light !important;
- text-decoration: none;
- }
- }
- }
- ul {
- margin: 0 0 0 1rem;
- }
- .toggler {
- cursor: pointer;
- vertical-align: top;
- font-size: 1.1rem;
- line-height: 1rem;
- padding-left: 5px;
- float: left;
- &:before {
- display: inline-block; margin-right: 2pt;
- }
- }
- li.tree-empty > .toggler {
- opacity: 0.3; cursor: default;
- &:before {
- content: "\2022";
- }
- }
- li.tree-closed > .toggler:before {
- content: "+";
- }
- li.tree-opened > .toggler:before {
- content: "\2212";
- }
- }
- .mobile-nav-open {
- overflow-y: hidden;
- }
|