123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- //
- // Component: Dropdown
- //
- // General Dropdown Rules
- //.dropdown-item {
- // &:first-of-type {
- // @include border-top-radius($border-radius);
- // }
- // &:last-of-type {
- // @include border-bottom-radius($border-radius);
- // }
- //}
- .text-sm {
- .dropdown-menu {
- font-size: $font-size-sm !important;
- }
- .dropdown-toggle::after {
- vertical-align: .2rem;
- }
- }
- .dropdown-item-title {
- font-size: $font-size-base;
- margin: 0;
- }
- .dropdown-icon {
- &::after {
- margin-left: 0;
- }
- }
- // Dropdown Sizes
- .dropdown-menu-lg {
- max-width: 300px;
- min-width: 280px;
- padding: 0;
- .dropdown-divider {
- margin: 0;
- }
- .dropdown-item {
- padding: $dropdown-padding-y $dropdown-item-padding-x;
- }
- p {
- margin: 0;
- white-space: normal;
- }
- }
- // Dropdown Submenu
- .dropdown-submenu {
- position: relative;
- > a::after {
- @include caret-right ();
- float: right;
- margin-left: .5rem;
- margin-top: .5rem;
- }
- > .dropdown-menu {
- left: 100%;
- margin-left: 0;
- margin-top: 0;
- top: 0;
- }
- }
- // Dropdown Hover
- .dropdown-hover {
- &:hover,
- &.nav-item.dropdown:hover,
- .dropdown-submenu:hover,
- &.dropdown-submenu:hover {
- > .dropdown-menu {
- display: block;
- }
- }
- }
- // Dropdown Sizes
- .dropdown-menu-xl {
- max-width: 420px;
- min-width: 360px;
- padding: 0;
- .dropdown-divider {
- margin: 0;
- }
- .dropdown-item {
- padding: $dropdown-padding-y $dropdown-item-padding-x;
- }
- p {
- margin: 0;
- white-space: normal;
- }
- }
- // Dropdown header and footer
- .dropdown-footer,
- .dropdown-header {
- display: block;
- font-size: $font-size-sm;
- padding: .5rem $dropdown-item-padding-x;
- text-align: center;
- }
- // Add fade animation to dropdown menus by appending
- // the class .animated-dropdown-menu to the .dropdown-menu ul (or ol)
- .open:not(.dropup) > .animated-dropdown-menu {
- @include animation(flip-in-x .7s both);
- backface-visibility: visible !important;
- }
- // Fix dropdown menu in navbars
- .navbar-custom-menu > .navbar-nav {
- > li {
- position: relative;
- > .dropdown-menu {
- position: absolute;
- right: 0;
- left: auto;
- }
- }
- }
- @include media-breakpoint-down(sm) {
- .navbar-custom-menu > .navbar-nav {
- float: right;
- > li {
- position: static;
- > .dropdown-menu {
- position: absolute;
- right: 5%;
- left: auto;
- border: 1px solid #ddd;
- background-color: $white;
- }
- }
- }
- }
- // User Menu
- .navbar-nav > .user-menu {
- > .nav-link::after {
- content: none;
- }
- > .dropdown-menu {
- @include border-top-radius(0);
- padding: 0;
- width: 280px;
- &,
- > .user-body {
- @include border-bottom-radius(4px);
- }
- // Header menu
- > li.user-header {
- height: 175px;
- padding: 10px;
- text-align: center;
- // User image
- > img {
- z-index: 5;
- height: 90px;
- width: 90px;
- border: 3px solid;
- border-color: transparent;
- border-color: rgba(255, 255, 255, .2);
- }
- > p {
- z-index: 5;
- font-size: 17px;
- //text-shadow: 2px 2px 3px #333333;
- margin-top: 10px;
- > small {
- display: block;
- font-size: 12px;
- }
- }
- }
- // Menu Body
- > .user-body {
- @include clearfix ();
- border-bottom: 1px solid $gray-700;
- border-top: 1px solid $gray-300;
- padding: 15px;
- a {
- @include media-breakpoint-up(sm) {
- background-color: $white !important;
- color: $gray-700 !important;
- }
- }
- }
- // Menu Footer
- > .user-footer {
- @include clearfix ();
- background-color: $gray-100;
- padding: 10px;
- .btn-default {
- color: $gray-600;
- &:hover {
- @include media-breakpoint-up(sm) {
- background-color: $gray-100;
- }
- }
- }
- }
- }
- .user-image {
- @include media-breakpoint-up(sm) {
- float: none;
- line-height: 10px;
- margin-right: .4rem;
- margin-top: -8px;
- }
- border-radius: 50%;
- float: left;
- height: $sidebar-user-image-width;
- margin-right: 10px;
- margin-top: -2px;
- width: $sidebar-user-image-width;
- }
- }
- @include dark-mode () {
- .dropdown-menu {
- background-color: $dark;
- color: $white;
- }
- .dropdown-item {
- color: $white;
- &:focus,
- &:hover {
- background-color: lighten($dark, 5%);
- }
- }
- .dropdown-divider {
- border-color: $gray-600;
- }
- .navbar-nav > .user-menu > .dropdown-menu {
- > .user-footer {
- background-color: lighten($dark, 2.5%);
- color: $white;
- .btn-default {
- color: $white;
- &:hover,
- &:focus {
- background-color: lighten($dark, 5%);
- color: $gray-300;
- }
- &:focus {
- background-color: lighten($dark, 7.5%);
- }
- }
- }
- > .user-body {
- border-color: $gray-600;
- }
- > .user-body a {
- background-color: transparent !important;
- color: $white !important;
- &:hover,
- &:focus {
- color: $gray-400 !important;
- }
- }
- }
- }
|