/* Top navigation ----------------------------------------------------------- */ .navbar .navbar-nav .nav-link { color: $white; } .dropdown-toggle::after { border-width: 0; position: absolute; top: 80%; left: 50%; } .dropdown-toggle.with-caret::after { position: relative; top: 4px; left: 0; border-top: 8px solid $primary; border-right: 5px solid transparent; border-left: 5px solid transparent; border-bottom: 0; transition: 0.2s; } .dropdown.show .dropdown-toggle.with-caret::after { // border-top: 0; // border-right: 5px solid transparent; // border-left: 5px solid transparent; // border-bottom: 8px solid $primary; transform: scaleY(-1); } .dropdown.show .dropdown-toggle { color: $gray-500; position: relative; } .dropdown.show .dropdown-toggle:not(.with-caret)::after, .dropdown-toggle:not(.with-caret):hover::after { content: " "; display: static; border: 3px solid $primary; border-radius: 50%; font-size: 0; height: 0; width: 0; } .navbar .dropdown-menu { backdrop-filter: blur(8px); border-radius: 4px; padding: 0.5rem 1rem; min-width: 250px; .dropdown-item { line-height: 262%; border-bottom: 2px solid $black; &:last-child { border-bottom: 0; } &.active, &:hover { font-weight: bold; } } } .navbar-brand { text-decoration: none; white-space: pre; -webkit-transition: opacity 200ms ease, color 200ms ease; transition: opacity 200ms ease, color 200ms ease; } .navbar-brand:hover { opacity: 0.5; } .navbar .navbar-nav .nav-link { font-size: 1rem; line-height: 52px; text-decoration: none; } .navbar .navbar-nav .nav-link:hover { background-color: transparent; box-shadow: inset 0 -1px 0 0 #000; text-decoration: none; } .navbar .navbar-nav .active a { font-weight: 700; box-shadow: inset 0 -1px 0 0 #000; } .navbar .active-parent a { font-weight: 700; box-shadow: inset 0 -1px 0 0 #000; } #navbar-search { position: relative; margin-right: 0.375rem; } #navbar-search .form-inline { min-width: 224px; /* more room for placeholder text */ } #topsearchbar { background-color: $black; color: $white; padding-right: 40px; width: 100%; font-size: 0.875rem; } #navbar-search .btn { position: absolute; right: 0; } /* Top navigation Mobile ----------------------------------------------------------- */ @media (max-width: 991px) { .navbar .navbar-nav .nav-link { height: 48px; } .github-edit-wrap { margin: 20px 10px 20px 0; } #navbar-search .btn::after { display: none; } .navbar-collapse { background-color: white; position: absolute; top: 200px; right: 0; overflow: scroll; width: 260px; max-height: 60vh; margin-right: 24px; margin-bottom: 108px; padding: 24px; -webkit-box-flex: 1; z-index: 10; transform: translateX(1000px); transition-duration: 1s; } .navbar-collapse.show { transform: translateX(0px); transition-duration: 0.5s; } .menu-overlay.active { transform: translateX(0px); transition-duration: 0.5s; } .menu-overlay { background-color: black; bottom: 0; left: 0; opacity: 0.88; filter: alpha(opacity=80); /* IE7 & 8 */ position: fixed; right: 0; top: 0; z-index: 5; transform: translateX(1000px); transition-duration: 0.5s; } } @media (max-width: 1010px) { .navbar-brand, .github-edit-wrap, #navbar-search { margin-right: 3px; } } #navbarHolder .language-selector { font-size: 0.875rem; }