123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- //
- // Misago Navbar
- // --------------------------------------------------
- // Affixed navbar
- .navbar-spacer {
- margin-bottom: @line-height-computed;
- .navbar-primary {
- border-bottom-width: 1px;
- margin: 0px;
- &.affix {
- .box-shadow(0px 0px 3px fadeOut(#333, 75%));
- width: 100%;
- top: 0px;
- }
- }
- }
- // Navbar brand
- .navbar-primary {
- .navbar-brand {
- font-size: @font-size-large * 1.2;
- font-weight: @weight-light;
- img {
- display: inline-block;
- height: @navbar-brand-height;
- margin: ((@line-height-computed - @navbar-brand-height) / 2) 0px;
- position: relative;
- bottom: 3px;
- }
- }
- }
- // Navbar navs
- .navbar-primary {
- .navbar-nav {
- float: left;
- &>li {
- float: left;
- &>a {
- // Scale links up
- font-size: @navbar-link-size;
- // We don't use .active states in navbar
- &:active, &:focus {
- color: @navbar-default-link-active-color;
- }
- // Align badges to glyhps
- &>.badge {
- vertical-align: inherit;
- margin: (@line-height-computed / -2) 0px;
- }
- &>.glyphicon {
- position: relative;
- top: 4px;
- }
- }
- }
- }
- }
- // User Menu
- .navbar-primary {
- .navbar-user-nav {
- float: right;
- .btn-success {
- position: relative;
- top: 1px;
- }
- }
- .user-menu {
- .dropdown-toggle {
- .fa {
- font-size: @font-size-base;
- }
- img {
- border-radius: @avatar-radius-small;
- margin: (@line-height-computed / -2) 0px;
- width: 28px;
- height: 28px;
- }
- }
- }
- }
- // Guest Menu
- .navbar-primary {
- .navbar-guest-nav {
- float: right;
- .btn {
- position: relative;
- top: 1px;
- }
- }
- }
- // Dropdowns
- .navbar-static-top {
- & .navbar-nav > li > .dropdown-menu {
- border-radius: @dropdown-border-radius;
- }
- }
- // Compact nav
- @media (max-width: @screen-sm-max) {
- .navbar-primary {
- min-height: @navbar-compact-height;
- }
- }
- .navbar-primary {
- .navbar-compact-nav {
- margin: 0px;
- float: none;
- width: 100%;
- &>li {
- &>a {
- padding: @navbar-compact-padding-vertical 0px;
- height: @navbar-compact-height;
- text-align: center;
- // Align glyphs to middle of height
- .glyphicon {
- position: static;
- font-size: 20px;
- }
- // Align images
- img {
- width: 28px;
- margin: ((@line-height-computed - 28) / 2) 0px;
- position: relative;
- bottom: 2px;
- }
- // Custom touched style
- &:active {
- background-color: @navbar-compact-link-active-bg;
- color: @navbar-compact-link-active-color;
- }
- }
- }
- .dropdown {
- &.open .dropdown-toggle {
- background-color: @navbar-compact-link-active-bg;
- color: @navbar-compact-link-active-color;
- }
- .dropdown-menu {
- position: absolute;
- float: right;
- width: 300px;
- margin-top: 2px;
- background-color: @dropdown-bg;
- border: 1px solid @dropdown-fallback-border; // IE8 fallback
- border: 1px solid @dropdown-border;
- border-radius: @dropdown-border-radius;
- .box-shadow(@dropdown-shadow);
- }
- }
- // Even widths
- &.with-4-links {
- &>li {
- width: 25%;
- }
- }
- &.with-5-links {
- &>li {
- width: 20%;
- }
- }
- &.with-6-links {
- &>li {
- width: 16%;
- &:first-child, &:last-child {
- width: 18%;
- }
- }
- }
- &.with-7-links {
- &>li {
- width: 14%;
- &:first-child, &:last-child {
- width: 15%;
- }
- }
- }
- }
- }
|