123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- .navbar-toggler span {
- background-color: #1B1B1B;
- }
- /*--/ Hamburger Navbar /--*/
- .navbar-toggler {
- position: relative;
- }
- .navbar-toggler:focus,
- .navbar-toggler:active {
- outline: 0;
- }
- .navbar-toggler span {
- display: block;
- background-color: #000;
- height: 3px;
- width: 25px;
- margin-top: 4px;
- margin-bottom: 4px;
- transform: rotate(0deg);
- left: 0;
- opacity: 1;
- }
- .navbar-toggler span:nth-child(1),
- .navbar-toggler span:nth-child(3) {
- transition: transform .35s ease-in-out;
- }
- .navbar-toggler:not(.collapsed) span:nth-child(1) {
- position: absolute;
- left: 12px;
- top: 18px;
- transform: rotate(135deg);
- opacity: 0.9;
- }
- .navbar-toggler:not(.collapsed) span:nth-child(2) {
- height: 17px;
- visibility: hidden;
- background-color: transparent;
- }
- .navbar-toggler:not(.collapsed) span:nth-child(3) {
- position: absolute;
- left: 12px;
- top: 18px;
- transform: rotate(-135deg);
- opacity: 0.9;
- }
- #mainNav {
- position: absolute;
- border-bottom: 1px solid #e9ecef;
- background-color: white;
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
- }
- #mainNav .navbar-brand {
- font-weight: 800;
- color: #343a40;
- }
- #mainNav .navbar-toggler {
- font-size: 12px;
- font-weight: 800;
- padding: 13px;
- text-transform: uppercase;
- color: #343a40;
- border-color: #fff;
- }
- #mainNav .navbar-nav > li.nav-item > a {
- font-size: 12px;
- font-weight: 800;
- letter-spacing: 1px;
- text-transform: uppercase;
- }
- @media only screen and (min-width: 992px) {
- #mainNav {
- border-bottom: 1px solid transparent;
- background: transparent;
- }
- #mainNav .navbar-brand {
- padding: 10px 20px;
- color: #fff;
- }
- #mainNav .navbar-brand:focus, #mainNav .navbar-brand:hover {
- color: rgba(255, 255, 255, 0.8);
- }
- #mainNav .navbar-nav > li.nav-item > a {
- padding: 10px 20px;
- color: #fff;
- }
- #mainNav .navbar-nav > li.nav-item > a:focus, #mainNav .navbar-nav > li.nav-item > a:hover {
- color: rgba(255, 255, 255, 0.8);
- }
- }
- @media only screen and (min-width: 992px) {
- #mainNav {
- transition: background-color 0.2s;
- /* Force Hardware Acceleration in WebKit */
- transform: translate3d(0, 0, 0);
- -webkit-backface-visibility: hidden;
- backface-visibility: hidden;
- }
- #mainNav.is-fixed {
- /* when the user scrolls down, we hide the header right above the viewport */
- position: fixed;
- top: -67px;
- transition: transform 0.2s;
- background-color: rgba(240, 240, 240, 0.9);
- }
- #mainNav.is-fixed .navbar-brand {
- color: #212529;
- }
- #mainNav.is-fixed .navbar-brand:focus, #mainNav.is-fixed .navbar-brand:hover {
- color: #0085A1;
- }
- #mainNav.is-fixed .navbar-nav > li.nav-item > a {
- color: #212529;
- }
- #mainNav.is-fixed .navbar-nav > li.nav-item > a:focus, #mainNav.is-fixed .navbar-nav > li.nav-item > a:hover {
- color: #0085A1;
- }
- #mainNav.is-visible {
- /* if the user changes the scrolling direction, we show the header */
- transform: translate3d(0, 100%, 0);
- }
- #mainNav.is-fixed .search-icon:after {
- background-color: #000000 !important;
- }
- #mainNav.is-fixed .search-icon:before {
- background-color: #000000 !important;
- }
- #mainNav.is-fixed .search-icon {
- border: 3px solid #000000 !important;
- }
- #mainNav.is-fixed .search:before {
- background-color: #000000 !important;
- }
- #mainNav.is-fixed .search-box {
- color: #000000 !important;
- }
- }
- * {
- box-sizing: border-box;
- }
- .search {
- width: 40px;
- height: 40px;
- background-color: transparent;
- position: relative;
- overflow: hidden;
- transition: all 0.5s ease;
- }
- .search:before {
- content: '';
- display: block;
- width: 3px;
- height: 100%;
- position: relative;
- background-color: #ffffff;
- transition: all 0.5s ease;
- }
- .search.open {
- width: 420px;
- }
- .search.open:before {
- height: 24px;
- margin: 8px 0 20px 30px;
- position: absolute;
- }
- .search-box {
- width: 100%;
- height: 100%;
- box-shadow: none;
- border: none;
- background: transparent;
- color: #fff;
- padding: 7px 100px 12px 45px;
- font-size: 20px;
- }
- .search-box:focus {
- outline: none;
- }
- .search-button {
- width: 60px;
- height: 80px;
- display: block;
- position: absolute;
- right: 0;
- top: 0;
- padding: 6px;
- cursor: pointer;
- }
- .search-icon {
- width: 20px;
- height: 20px;
- border-radius: 40px;
- border: 3px solid #ffffff;
- display: block;
- position: relative;
- margin-left: 22px;
- transition: all 0.5s ease;
- }
- .search-icon:before {
- content: '';
- width: 3px;
- height: 10px;
- position: absolute;
- right: -3px;
- top: 12px;
- display: block;
- background-color: #ffffff;
- transform: rotate(-45deg);
- transition: all 0.5s ease;
- }
- .search-icon:after {
- content: '';
- width: 3px;
- height: 10px;
- position: absolute;
- right: -9px;
- top: 18px;
- display: block;
- background-color: #ffffff;
- transform: rotate(-45deg);
- transition: all 0.5s ease;
- }
- .open .search-icon {
- margin: 0;
- width: 30px;
- height: 30px;
- border-radius: 60px;
- }
- .open .search-icon:before {
- transform: rotate(52deg);
- right: 9px;
- top: 10px;
- height: 9px;
- }
- .open .search-icon:after {
- transform: rotate(-230deg);
- right: 9px;
- top: 6px;
- height: 9px;
- }
|