1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-14 07:12:22 +04:00

dropdowns page

This commit is contained in:
codecalm
2019-10-22 23:32:28 +02:00
parent 976072b9ad
commit 2ce1182e86
4 changed files with 82 additions and 45 deletions
+6
View File
@@ -238,6 +238,12 @@ $card-shadow-hover: rgba($dark, .08) 0 2px 12px 0 !default;
$close-font-weight: 400 !default;
$close-font-size: 1.5rem !default;
//dropdown
$dropdown-item-padding-x: 1rem !default;
$dropdown-font-size: $h5-font-size !default;
$dropdown-divider-bg: $border-color !default;
$dropdown-padding-y: .5rem !default;
//nav
$nav-link-padding-y: .25rem !default;
+33 -36
View File
@@ -1,5 +1,21 @@
.dropdown-divider {
border-color: $border-color;
.dropdown-menu {
min-width: 12rem;
box-shadow: $box-shadow;
.icon {
width: 1em;
margin-right: .5rem;
color: inherit;
opacity: .5;
text-align: center;
stroke-width: 2px;
}
}
.dropdown-header {
@extend .subheader;
padding-bottom: .25rem;
pointer-events: none;
}
.dropdown-menu-scrollable {
@@ -8,57 +24,38 @@
overflow-x: hidden;
}
.dropdown-menu {
min-width: 12rem;
box-shadow: $box-shadow;
}
.dropdown-item {
color: inherit;
display: flex;
align-items: center;
margin: 0;
}
.dropdown-menu-arrow {
margin-top: .75rem;
&::before {
position: absolute;
top: -6px;
left: 12px;
display: inline-block;
content: "";
border-right: 5px solid transparent;
border-bottom: 5px solid $border-color;
border-bottom-color: rgba(0, 0, 0, .2);
border-left: 5px solid transparent;
}
&::after {
position: absolute;
top: -5px;
top: -4px;
left: 12px;
display: inline-block;
content: "";
border-right: 5px solid transparent;
border-bottom: 5px solid #fff;
border-left: 5px solid transparent;
display: block;
background: inherit;
width: 14px;
height: 14px;
transform: rotate(45deg);
transform-origin: center;
border: 1px solid;
border-color: inherit;
z-index: -1;
clip: rect(0px, 9px, 9px, 0px);
}
&.dropdown-menu-right {
&::before,
&::after {
&::before {
right: 12px;
left: auto;
}
}
}
.dropdown-icon {
display: inline-block;
width: 1em;
margin-right: .5rem;
margin-left: -.5rem;
color: $text-muted;
text-align: center;
vertical-align: -1px;
stroke-width: 1.75px;
}