vuesax
Version:
Framework Components for Vue js
214 lines (198 loc) • 5.25 kB
text/stylus
//transitions
.dropdown-group-enter-active, .dropdown-group-leave-active {
transition: opacity .25s;
}
.dropdown-group-enter, .dropdown-group-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
}
.vs-con-dropdown
position: relative;
display: inline-block;
border: 0px;
background: transparent;
*
pointer-events: none
a
user-select: none ;
&:active
opacity: 1 ;
.vuesax-app-is-rtl
.vs-con-dropdown
.a-icon
flex-direction: row-reverse
.vs-dropdown--group
position: relative;
list-style: none;
width: calc(100% - 6px);
margin-left: 3px;
width: auto;
display: block;
padding: 5px;
padding-left: 10px
padding-right: 10px
box-sizing: border-box;
cursor: pointer;
transition: all .3s ease;
&.marginIcon
padding-right: 25px;
&:hover
.con-dropdown--group
border-left: 1px solid rgba(0, 0, 0, 0.1);
>.icon-group
transform: translate(0,-50%) rotate(-180deg);
opacity: 0;
.vs-dropdown--group-label
font-size: 0.9375em;
font-weight: normal;
pointer-events: none
.vs-dropdown--group-icon
position: absolute;
right: 4px;
font-size: 1.125em;
top: 50%;
transition: all .25s ease;
transform: translate(0,-50%);
.con-dropdown--group-con-ul
padding-left: 3px
position: relative;
right: 0px;
top: 0px;
min-width: 130px;
width: auto;
z-index: 1000;
background: inherit
overflow: hidden;
transition: all .3s ease;
border-left: 1px solid rgba(0, 0, 0, 0.1);
.con-dropdown--group-ul
padding-top: 5px;
padding-left: 0px;
position: relative;
background: rgb(255, 255, 255);
border-radius: 5px;
.no-cascading
font-weight: bold;
border-top: 1px solid rgba(0, 0, 0, 0.05);
padding-left: 0px ;
padding-right: 0px ;
margin-top: 5px ;
margin-left: 0px;
>h3
padding: 0px 10px;
font-size: 0.9375em;
padding-top: 6px;
padding-bottom: 6px;
cursor: default;
.con-dropdown--group-no-cascading
width: 100% ;
font-weight: bold;
height: auto ;
opacity: 1 ;
border-left: 1px solid rgba(0, 0, 0, 0.0) ;
ul
width: 100%;
box-shadow: 0px 5px 20px 0px rgba(0, 0, 0,0) ;
padding-left: 0px ;
.vs-dropdown--item
transition: all .2s ease;
position: relative;
z-index: 100;
dirValue(text-align, left)
border-radius: 5px;
width: calc(100% - 6px)
margin: 0px 3px;
list-style: none;
font-weight: normal ;
font-size: 0.9375em;
.vs-dropdown--item-link
background: inherit ;
color: inherit ;
cursor: pointer;
transition: all .2s ease;
padding: 5px;
padding-left: 10px;
padding-right: 10px;
width: 100%;
position: relative;
display: block;
color: rgba(0, 0, 0, 0.7);
&.disabled
user-select: none;
pointer-events: none ;
cursor: default;
opacity: $vs-disabled-opacity ;
color: rgba(0,0,0,$vs-disabled-opacity) ;
&.divider
border-top: 1px solid rgba(0, 0, 0, 0.08)
margin-top: 5px;
//transitions
.dropdownx-enter, .dropdownx-leave-to /* .fade-leave-active below version 2.1.8 */ {
opacity: 0;
transform: translate(-100%,8px) ;
}
.con-vs-dropdown--menu
padding-top: 10px
position: absolute;
height: auto;
width: auto;
z-index: 40000
transform: translate(-100%);
transition: opacity .25s, transform .25s, width .3s ease;
&.rightx
.vs-dropdown--menu--after
left: 30px
right: 0
&::after
content: ''
display block
width 100%
height 10px
position absolute
left 0
top 100%
.vs-dropdown--menu
background: rgb(255, 255, 255);
padding-left: 0px ;
border-radius: 5px;
box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(0, 0, 0, 0.1)
padding-top: 5px;
padding-bottom: 5px;
position: relative;
margin: 0px;
.vs-dropdown-right--menu--after
position: absolute;
left: 20px;
width: 10px;
height: 10px;
display: block;
background: rgb(255, 255, 255);
transform: rotate(45deg) translate(-7px);
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-left: 1px solid rgba(0, 0, 0, 0.1);
z-index: 10;
box-sizing: border-box
.vs-dropdown--menu--after
position: absolute;
right: 10px;
width: 10px;
height: 10px;
display: block;
background: rgb(255, 255, 255);
transform: rotate(45deg) translate(-7px);
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-left: 1px solid rgba(0, 0, 0, 0.1);
z-index: 10;
box-sizing: border-box
&.notHeight .vs-dropdown-menu
&::after
top: auto;
bottom: 0px;
border-top: 1px solid rgba(0, 0, 0, 0.0);
border-left: 1px solid rgba(0, 0, 0, 0.0);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid rgba(0, 0, 0, 0.1);
transform: rotate(45deg) translate(7px);
.vs-dropdown--custom
padding: 5px ;
padding-top: 8px ;