123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- // Topbar
- .topbar {
- height: $topbar-base-height;
- #sidebarToggleTop {
- height: 2.5rem;
- width: 2.5rem;
- &:hover {
- background-color: $gray-200;
- }
- &:active {
- background-color: $gray-300;
- }
- }
- .navbar-search {
- width: 25rem;
- input {
- font-size: 0.85rem;
- height: auto;
- }
- }
- .topbar-divider {
- width: 0;
- border-right: 1px solid $border-color;
- height: calc(#{$topbar-base-height} - 2rem);
- margin: auto 1rem;
- }
- .nav-item {
- .nav-link {
- height: $topbar-base-height;
- display: flex;
- align-items: center;
- padding: 0 0.75rem;
- &:focus {
- outline: none;
- }
- }
- &:focus {
- outline: none;
- }
- }
- .dropdown {
- position: static;
- .dropdown-menu {
- width: calc(100% - #{$grid-gutter-width});
- right: $grid-gutter-width / 2;
- }
- }
- .dropdown-list {
- padding: 0;
- border: none;
- overflow: hidden;
- .dropdown-header {
- background-color: $primary;
- border: 1px solid $primary;
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- color: $white;
- }
- .dropdown-item {
- white-space: normal;
- padding-top: 0.5rem;
- padding-bottom: 0.5rem;
- border-left: 1px solid $border-color;
- border-right: 1px solid $border-color;
- border-bottom: 1px solid $border-color;
- line-height: 1.3rem;
- .dropdown-list-image {
- position: relative;
- height: 2.5rem;
- width: 2.5rem;
- img {
- height: 2.5rem;
- width: 2.5rem;
- }
- .status-indicator {
- background-color: $gray-200;
- height: 0.75rem;
- width: 0.75rem;
- border-radius: 100%;
- position: absolute;
- bottom: 0;
- right: 0;
- border: .125rem solid $white;
- }
- }
- .text-truncate {
- max-width: 10rem;
- }
- &:active {
- background-color: $gray-200;
- color: $gray-900;
- }
- }
- }
- @include media-breakpoint-up(sm) {
- .dropdown {
- position: relative;
- .dropdown-menu {
- width: auto;
- right: 0;
- }
- }
- .dropdown-list {
- width: 20rem !important;
- .dropdown-item {
- .text-truncate {
- max-width: 13.375rem;
- }
- }
- }
- }
- }
- .topbar.navbar-dark {
- .navbar-nav {
- .nav-item {
- .nav-link {
- color: fade-out($white, 0.2);
- &:hover {
- color: $white;
- }
- &:active {
- color: $white;
- }
- }
- }
- }
- }
- .topbar.navbar-light {
- .navbar-nav {
- .nav-item {
- .nav-link {
- color: $gray-400;
- &:hover {
- color: $gray-500;
- }
- &:active {
- color: $gray-600;
- }
- }
- }
- }
- }
|