2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Dropdown
|
|
|
|
//
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2016-10-19 15:24:30 +00:00
|
|
|
// General Dropdown Rules
|
2018-04-23 00:08:03 +00:00
|
|
|
//.dropdown-item {
|
|
|
|
// &:first-of-type {
|
|
|
|
// @include border-top-radius($border-radius);
|
|
|
|
// }
|
|
|
|
// &:last-of-type {
|
|
|
|
// @include border-bottom-radius($border-radius);
|
|
|
|
// }
|
|
|
|
//}
|
2016-10-19 15:24:30 +00:00
|
|
|
|
2019-09-17 08:42:32 +00:00
|
|
|
.text-sm {
|
|
|
|
.dropdown-menu {
|
|
|
|
font-size: $font-size-sm !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-toggle::after {
|
2020-05-30 13:06:11 +00:00
|
|
|
vertical-align: .2rem;
|
2019-09-17 08:42:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-19 15:24:30 +00:00
|
|
|
.dropdown-item-title {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2019-09-17 08:40:51 +00:00
|
|
|
.dropdown-icon {
|
|
|
|
&::after {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-19 15:24:30 +00:00
|
|
|
// Dropdown Sizes
|
2016-10-15 17:20:09 +00:00
|
|
|
.dropdown-menu-lg {
|
2016-10-19 15:24:30 +00:00
|
|
|
max-width: 300px;
|
2019-06-28 08:02:07 +00:00
|
|
|
min-width: 280px;
|
2016-10-19 15:24:30 +00:00
|
|
|
padding: 0;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2016-10-19 15:24:30 +00:00
|
|
|
.dropdown-divider {
|
|
|
|
margin: 0;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2016-10-19 15:24:30 +00:00
|
|
|
.dropdown-item {
|
|
|
|
padding: $dropdown-padding-y $dropdown-item-padding-x;
|
|
|
|
}
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2016-10-19 15:24:30 +00:00
|
|
|
p {
|
|
|
|
margin: 0;
|
2019-06-28 08:02:07 +00:00
|
|
|
white-space: normal;
|
2016-10-19 15:24:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-27 14:23:07 +00:00
|
|
|
// Dropdown Submenu
|
|
|
|
.dropdown-submenu {
|
|
|
|
position: relative;
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
& > a::after {
|
|
|
|
@include caret-right ();
|
2019-08-27 14:23:07 +00:00
|
|
|
float: right;
|
|
|
|
margin-left: .5rem;
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > .dropdown-menu {
|
|
|
|
left: 100%;
|
2020-05-30 13:06:11 +00:00
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 0;
|
2019-08-27 14:23:07 +00:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown Hover
|
|
|
|
.dropdown-hover {
|
2019-08-28 07:26:57 +00:00
|
|
|
&:hover,
|
2019-08-27 14:23:07 +00:00
|
|
|
&.nav-item.dropdown:hover,
|
|
|
|
.dropdown-submenu:hover,
|
|
|
|
&.dropdown-submenu:hover {
|
2019-08-28 07:26:57 +00:00
|
|
|
> .dropdown-menu {
|
2019-08-27 14:23:07 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-07-18 14:22:11 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-19 15:24:30 +00:00
|
|
|
// Dropdown header and footer
|
|
|
|
.dropdown-footer,
|
|
|
|
.dropdown-header {
|
|
|
|
display: block;
|
|
|
|
font-size: $font-size-sm;
|
2019-06-28 08:02:07 +00:00
|
|
|
padding: .5rem $dropdown-item-padding-x;
|
|
|
|
text-align: center;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
2020-05-30 13:06:11 +00:00
|
|
|
// Add fade animation to dropdown menus by appending
|
2019-07-18 14:22:11 +00:00
|
|
|
// the class .animated-dropdown-menu to the .dropdown-menu ul (or ol)
|
2015-10-31 21:00:16 +00:00
|
|
|
.open:not(.dropup) > .animated-dropdown-menu {
|
|
|
|
@include animation(flipInX .7s both);
|
2019-06-28 08:02:07 +00:00
|
|
|
backface-visibility: visible !important;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes flipInX {
|
|
|
|
0% {
|
|
|
|
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
|
|
|
transition-timing-function: ease-in;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
40% {
|
|
|
|
transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
|
|
|
|
transition-timing-function: ease-in;
|
|
|
|
}
|
|
|
|
|
|
|
|
60% {
|
|
|
|
transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
80% {
|
|
|
|
transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
transform: perspective(400px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-18 14:22:11 +00:00
|
|
|
// Fix dropdown menu in navbars
|
2015-10-31 21:00:16 +00:00
|
|
|
.navbar-custom-menu > .navbar-nav {
|
|
|
|
> li {
|
|
|
|
position: relative;
|
|
|
|
> .dropdown-menu {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 17:07:55 +00:00
|
|
|
@include media-breakpoint-down(sm) {
|
2015-10-31 21:00:16 +00:00
|
|
|
.navbar-custom-menu > .navbar-nav {
|
|
|
|
float: right;
|
|
|
|
> li {
|
|
|
|
position: static;
|
|
|
|
> .dropdown-menu {
|
|
|
|
position: absolute;
|
|
|
|
right: 5%;
|
|
|
|
left: auto;
|
|
|
|
border: 1px solid #ddd;
|
2018-03-17 17:07:55 +00:00
|
|
|
background: $white;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-03-17 17:07:55 +00:00
|
|
|
}
|
2019-06-12 08:37:11 +00:00
|
|
|
|
2019-07-18 14:22:11 +00:00
|
|
|
// User Menu
|
2019-06-12 08:37:11 +00:00
|
|
|
.navbar-nav > .user-menu {
|
2020-05-30 13:06:11 +00:00
|
|
|
> .nav-link::after {
|
|
|
|
content: none;
|
2019-06-12 08:37:11 +00:00
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
> .dropdown-menu {
|
|
|
|
@include border-top-radius(0);
|
|
|
|
padding: 0;
|
|
|
|
width: 280px;
|
|
|
|
|
|
|
|
&,
|
|
|
|
> .user-body {
|
|
|
|
@include border-bottom-radius(4px);
|
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
// Header menu
|
|
|
|
> li.user-header {
|
|
|
|
height: 175px;
|
|
|
|
padding: 10px;
|
|
|
|
text-align: center;
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
// User image
|
|
|
|
> img {
|
|
|
|
z-index: 5;
|
|
|
|
height: 90px;
|
|
|
|
width: 90px;
|
|
|
|
border: 3px solid;
|
|
|
|
border-color: transparent;
|
2020-05-30 13:06:11 +00:00
|
|
|
border-color: rgba(255, 255, 255, .2);
|
2019-06-12 08:37:11 +00:00
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
> p {
|
|
|
|
z-index: 5;
|
|
|
|
font-size: 17px;
|
|
|
|
//text-shadow: 2px 2px 3px #333333;
|
|
|
|
margin-top: 10px;
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
> small {
|
|
|
|
display: block;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Menu Body
|
|
|
|
> .user-body {
|
2020-05-30 13:06:11 +00:00
|
|
|
@include clearfix ();
|
2019-07-18 14:22:11 +00:00
|
|
|
border-bottom: 1px solid $gray-700;
|
|
|
|
border-top: 1px solid $gray-300;
|
|
|
|
padding: 15px;
|
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
a {
|
|
|
|
@include media-breakpoint-up(sm) {
|
2019-07-18 14:22:11 +00:00
|
|
|
background: $white !important;
|
|
|
|
color: $gray-700 !important;
|
2019-06-12 08:37:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Menu Footer
|
|
|
|
> .user-footer {
|
2020-05-30 13:06:11 +00:00
|
|
|
@include clearfix ();
|
2019-07-18 14:22:11 +00:00
|
|
|
background-color: $gray-100;
|
|
|
|
padding: 10px;
|
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
.btn-default {
|
2019-07-18 14:22:11 +00:00
|
|
|
color: $gray-600;
|
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
&:hover {
|
|
|
|
@include media-breakpoint-up(sm) {
|
2019-07-18 14:22:11 +00:00
|
|
|
background-color: $gray-100;
|
2019-06-12 08:37:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
|
2019-06-12 08:37:11 +00:00
|
|
|
.user-image {
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
float: none;
|
2019-07-18 14:22:11 +00:00
|
|
|
line-height: 10px;
|
2019-10-25 07:32:23 +00:00
|
|
|
margin-right: .4rem;
|
2019-06-12 08:37:11 +00:00
|
|
|
margin-top: -8px;
|
|
|
|
}
|
2019-07-18 14:22:11 +00:00
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
float: left;
|
2019-10-25 07:32:23 +00:00
|
|
|
height: $sidebar-user-image-width;
|
2019-07-18 14:22:11 +00:00
|
|
|
margin-right: 10px;
|
|
|
|
margin-top: -2px;
|
2019-10-25 07:32:23 +00:00
|
|
|
width: $sidebar-user-image-width;
|
2019-06-12 08:37:11 +00:00
|
|
|
}
|
2019-06-28 08:02:07 +00:00
|
|
|
}
|