123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- /* Basic styles */
- #mobile-header {
- font-family: sans-serif;
- right: 0;
- }
- #mobile-header {
- position: absolute;
- font-family: sans-serif;
- }
- /* Toggle functionality */
- #toggle {
- position: absolute;
- left: -100%;
- top: -100%;
- }
- #toggle:focus ~ .toggle-container .button-toggle,
- #toggle:checked ~ .toggle-container .button-toggle {
- -webkit-box-shadow: 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1);
- box-shadow: 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1);
- }
- #toggle:checked ~ .toggle-container .button-toggle:hover,
- #toggle:checked:focus ~ .toggle-container .button-toggle {
- -webkit-box-shadow: 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1), 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1);
- box-shadow: 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1), 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1);
- }
- #toggle:checked ~ .toggle-container .button-toggle:before {
- -webkit-transform: translateY(-50%) rotate(45deg) scale(1);
- transform: translateY(-50%) rotate(45deg) scale(1);
- }
- #toggle:checked ~ .toggle-container .button-toggle:after {
- -webkit-transform: translateY(-50%) rotate(-45deg) scale(1);
- transform: translateY(-50%) rotate(-45deg) scale(1);
- }
- #toggle:checked ~ .nav {
- margin-bottom: 100px;
- pointer-events: auto;
- -webkit-transform: translate(0px, 50px);
- transform: translate(0px, 50px);
- }
- #toggle:checked ~ .nav .nav-item {
- font-family: 'akrobat-regular';
- color: black;
- letter-spacing: 0;
- height: 40px;
- line-height: 40px;
- float: none;
- text-align: right;
- margin: 0;
- opacity: 1;
- -webkit-transform: scaleY(1);
- transform: scaleY(1);
- -webkit-transition: .5s, opacity .1s;
- transition: .5s, opacity .1s;
- }
- #toggle:checked ~ .nav .nav-item:nth-child(1),
- #toggle:checked ~ .nav .nav-item:nth-child(1):before {
- -webkit-transition-delay: .15s;
- transition-delay: .15s;
- }
- #toggle:checked ~ .nav .nav-item:nth-child(2),
- #toggle:checked ~ .nav .nav-item:nth-child(2):before {
- -webkit-transition-delay: .01s;
- transition-delay: .01s;
- }
- #toggle:checked ~ .nav .nav-item:nth-child(3),
- #toggle:checked ~ .nav .nav-item:nth-child(3):before {
- -webkit-transition-delay: .05s;
- transition-delay: .05s;
- }
- #toggle:checked ~ .nav .nav-item:nth-child(4),
- #toggle:checked ~ .nav .nav-item:nth-child(4):before {
- -webkit-transition-delay: 0s;
- transition-delay: 0s;
- }
- #toggle:checked ~ .nav .nav-item:before {
- opacity: 0;
- }
- /* Toggle button */
- .button-toggle {
- position: absolute;
- display: inline-block;
- right: 0;
- width: 20px;
- height: 20px;
- margin: 25px 0;
- -webkit-box-shadow: 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1);
- box-shadow: 0 0 0 8px rgba(0, 0, 0, .1), inset 0 0 0 8px rgba(0, 0, 0, .1);
- border: none;
- cursor: pointer;
- border-radius: 100%;
- -webkit-transition: .6s;
- transition: .6s;
- }
- /* button X container (toggled) */
- .button-toggle:before, .button-toggle:after {
- position: absolute;
- content: '';
- top: 50%;
- /* left: 0; */
- right: 0;
- width: 100%;
- height: 2px;
- background-color: black;
- border-radius: 5px;
- -webkit-transition: .5s;
- transition: .5s;
- }
- /* button \ container */
- .button-toggle:before {
- -webkit-transform: translateY(-50%) rotate(45deg) scale(0);
- transform: translateY(-50%) rotate(45deg) scale(0);
- }
- /* button / container */
- .button-toggle:after {
- -webkit-transform: translateY(-50%) rotate(-45deg) scale(0);
- transform: translateY(-50%) rotate(-45deg) scale(0);
- }
- /* Menu */
- .nav {
- display: block;
- margin: 25px 0;
- pointer-events: none;
- -webkit-transition: .5s;
- transition: .5s;
- }
- .nav-item {
- position: relative;
- display: block;
- clear: both;
- color: transparent;
- font-size: 14px;
- letter-spacing: -6.2px;
- height: 7px;
- line-height: 7px;
- text-transform: uppercase;
- white-space: nowrap;
- -webkit-transform: scaleY(.2);
- transform: scaleY(.2);
- -webkit-transition: .5s, opacity .1s;
- transition: .5s, opacity .1s;
- }
- .nav-item:nth-child(1),
- .nav-item:nth-child(1):before {
- -webkit-transition-delay: 0s;
- transition-delay: 0s;
- }
- .nav-item:nth-child(2),
- .nav-item:nth-child(2):before {
- -webkit-transition-delay: .05s;
- transition-delay: .05s;
- }
- .nav-item:nth-child(3),
- .nav-item:nth-child(3):before {
- -webkit-transition-delay: .1s;
- transition-delay: .1s;
- }
- .nav-item:nth-child(4),
- .nav-item:nth-child(4):before {
- -webkit-transition-delay: .15s;
- transition-delay: .15s;
- }
- .nav-item:nth-child(1) {
- letter-spacing: -8px;
- }
- .nav-item:nth-child(2) {
- letter-spacing: -7px;
- }
- .nav-item:nth-child(n + 4) {
- letter-spacing: -8px;
- margin-top: -7px;
- opacity: 0;
- }
- .nav-item:before {
- position: absolute;
- content: '';
- top: 50%;
- width: 100%;
- height: 2px;
- background-color: black;
- -webkit-transform: translateY(-50%) scaleY(5);
- transform: translateY(-50%) scaleY(5);
- -webkit-transition: .5s;
- transition: .5s;
- }
- /* .main-layout {
- -webkit-transition: .5s;
- -moz-transition: .5s;
- -o-transition: .5s;
- transition: .5s;
- }
- .main-layout:before {
- position: absolute;
- content: '';
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: transparent;
- z-index: 2;
- -webkit-transition: .5s;
- -moz-transition: .5s;
- -o-transition: .5s;
- transition: .5s;
- }
- #toggle:checked ~ .main-layout {
- padding-top: 30px;
- }
- #toggle:checked ~ .main-layout:before {
- background-color: rgba(0, 0, 0, .3);
- } */
|