123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- .dropdown-menu {
- border: 0;
- box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.2);
- border-radius: $border-radius-xs;
- @include transitions($fast-transition-time, $transition-linear);
-
- &.dropdown-menu-right {
- &:before, &:after {
- left:auto;
- right: 10px;
- }
- }
-
- &.dropdown-black {
- background: linear-gradient(to bottom, $black 0%, $black-states 100%);
- border: 1px solid $default;
- .dropdown-item {
- color: rgba(255, 255, 255, 0.7);
- }
-
- .dropdown-divider {
- border-color: $default;
- }
-
- &:before {
- color: $black;
- z-index: 2;
- }
-
- &:after {
- display: inline-block;
- position: absolute;
- width: 0;
- height: 0;
- z-index: 1;
- vertical-align: middle;
- content: "";
- top: -6px;
- left: 10px;
- right: auto;
- color: $default;
- border-bottom: .4em solid;
- border-right: .4em solid transparent;
- border-left: .4em solid transparent;
- }
-
- &.dropdown-menu-right {
- &:after {
- left: auto;
- right: 10px;
- }
- }
-
- .dropup & {
- &:after {
- color: $black-states;
- z-index: 2;
- }
-
- &:before {
- display: inline-block;
- position: absolute;
- width: 0;
- height: 0;
- vertical-align: middle;
- content: "";
- top: auto;
- bottom: -6px;
- right: auto;
- left: 10px;
- color: $dark-background;
- border-top: .4em solid;
- border-right: .4em solid transparent;
- border-left: .4em solid transparent;
- border-bottom: none;
- z-index: 1;
- }
- }
- }
-
- i {
- margin-right: 5px;
- position: relative;
- top: 1px;
- }
-
- .tim-icons {
- margin-right: 10px;
- position: relative;
- top: 4px;
- font-size: 18px;
- margin-top: -5px;
- opacity: .5;
- }
-
- .dropdown-item {
- &.active,
- &:active{
- color: inherit;
- }
- }
-
- .dropup & {
- &:before {
- display: none;
- }
-
- &:after {
- display: inline-block;
- position: absolute;
- width: 0;
- height: 0;
- vertical-align: middle;
- content: "";
- top: auto;
- bottom: -5px;
- right: auto;
- left: 10px;
- color: $white;
- border-top: .4em solid;
- border-right: .4em solid transparent;
- border-left: .4em solid transparent;
- border-bottom: none;
- }
-
- &.dropdown-menu-right {
- &:after, &:before {
- right: 10px;
- left: auto;
- }
- }
- }
-
-
-
- &:before {
- display: inline-block;
- position: absolute;
- width: 0;
- height: 0;
- vertical-align: middle;
- content: "";
- top: -5px;
- left: 10px;
- right: auto;
- color: $white;
- border-bottom: .4em solid;
- border-right: .4em solid transparent;
- border-left: .4em solid transparent;
- }
-
-
-
- &.dropdown-menu-right {
- right: 0 !important;
- left: auto !important;
- }
-
- .dropdown-item,
- .bootstrap-select &.inner li a {
- font-size: $font-size-sm;
- padding-top: .6rem;
- padding-bottom: .6rem;
- margin-top: 5px;
- @include transitions($fast-transition-time, $transition-linear);
-
- &:hover,
- &:focus {
- background-color: $opacity-gray-3;
- }
-
- &.disabled,
- &:disabled {
- color: $default-opacity;
-
- &:hover,
- &:focus {
- background-color: transparent;
- box-shadow: none;
- }
- }
- }
-
-
- .dropdown-divider {
- background-color: $opacity-gray-5;
- }
-
- .dropdown-header:not([href]):not([tabindex]) {
- color: $default-opacity;
- font-size: $font-size-xs;
- text-transform: uppercase;
- font-weight: $font-weight-bold;
- }
-
- &.dropdown-primary {
- @include dropdown-colors(darken($primary, 3%),$opacity-8,$white, $opacity-2);
- }
-
- &.dropdown-info {
- @include dropdown-colors(darken($info, 3%),$opacity-8,$white, $opacity-2);
- }
-
- &.dropdown-danger {
- @include dropdown-colors(darken($danger, 3%),$opacity-8,$white, $opacity-2);
- }
-
- &.dropdown-success {
- @include dropdown-colors(darken($success, 3%),$opacity-8,$white, $opacity-2);
- }
-
- &.dropdown-warning {
- @include dropdown-colors(darken($warning, 3%),$opacity-8,$white, $opacity-2);
- }
-
- .dropdown &,
- .dropup:not(.bootstrap-select) &,
- .bootstrap-select &:not(.inner),
- &.bootstrap-datetimepicker-widget.bottom {
- @include transform-translate-y-dropdown(-20px);
- visibility: hidden;
- display: block;
- @include opacity(0);
- top: 100% !important;
- }
-
- &.bootstrap-datetimepicker-widget.top {
- @include transform-translate-y-dropdown(-20px);
- visibility: hidden;
- display: block;
- @include opacity(0);
- }
-
- &.bootstrap-datetimepicker-widget.top,
- &.bootstrap-datetimepicker-widget.bottom {
- @include transform-translate-y-dropdown(-20px);
- }
-
- .bootstrap-select.dropup &:not(.inner){
- @include transform-translate-y-dropdown(25px);
- }
-
- .dropup:not(.bootstrap-select) &{
- @include transform-translate-y-dropdown(20px);
- top: auto !important;
- bottom: 100%;
- }
-
- .dropdown.show &,
- .bootstrap-select.show &:not(.inner),
- &.bootstrap-datetimepicker-widget.top.open,
- &.bootstrap-datetimepicker-widget.bottom.open,
- .dropup.show:not(.bootstrap-select) &,
- .navbar .dropdown.show &{
- @include opacity(1);
- visibility: visible;
- @include transform-translate-y-dropdown(1px);
- }
-
- &.bootstrap-datetimepicker-widget.top.open,
- &.bootstrap-datetimepicker-widget.bottom.open{
- @include transform-translate-y-dropdown(0px);
- }
-
- .dropup.show:not(.bootstrap-select) &{
- @include transform-translate-y-dropdown(-2px);
- }
-
- &.dropdown-navbar{
- left: -80px;
- &:before, &:after{
- left: auto;
- right: 17px;
- }
- }
-
-
- }
-
- .btn{
- cursor: pointer;
-
- &.dropdown-toggle[data-toggle="dropdown"]{
- padding:10px;
- margin: 0;
- margin-bottom: 5px;
-
- &:after{
- content: "";
- margin-left: 5px;
- }
-
- }
-
- span.bs-caret{
- display: none;
- }
-
- &.btn-link{
- &.dropdown-toggle{
- height: 22px;
- padding: 0;
- margin-right: 5px;
- }
- }
- }
-
- .dropdown-toggle:after{
-
- content: unset;
-
- }
-
- .btn:not(:disabled):not(.disabled).active:focus,
- .btn:not(:disabled):not(.disabled):active:focus,
- .show>.btn.dropdown-toggle:focus{
- box-shadow: none;
- }
-
-
- // Dropown: Sizes
-
- .dropdown-menu-sm {
- min-width: 100px;
- border: $border-radius-lg;
- }
-
- .dropdown-menu-lg {
- min-width: 260px;
- border-radius: $border-radius-lg;
- }
-
- .dropdown-menu-xl {
- min-width: 450px;
- border-radius: $border-radius-lg;
- }
-
- @media screen and (max-width: 991px){
- .dropdown-toggle:after{
- display: inline-block;
- width: 0;
- height: 0;
- margin-left: .255em;
- vertical-align: .255em;
- content: "";
- border-top: .3em solid;
- border-right: .3em solid transparent;
- border-bottom: 0;
- border-left: .3em solid transparent;
- }
-
- }
-
-
- @media screen and (min-width: 992px){
- .dropdown-menu .dropdown-item{
- color: $dark-gray;
- }
- }
|