123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- @import '~scssinc';
-
- .bf-dropdown{
- position: relative;
- width: auto;
- height: 36px;
- margin: 0;
- &.disabled{
- pointer-events: none;
- opacity: .3;
- }
- .dropdown-content{
- box-sizing: content-box;
- position: absolute;
- z-index: 10;
- top: 100%;
- left: 50%;
- visibility: hidden;
- float: left;
- width: auto;
- min-width: 100%;
- margin-top: 9px;
- background-color: rgba($COLOR_DARK, 1);
- border-radius: 2px;
- box-shadow: 0 5px 15px rgba(#000, .2);
- opacity: 0;
- cursor: default;
- transform: translate(-50%, 20px);
- transition: .2s;
- ::-webkit-scrollbar-track{
- background-color: transparent;
- }
- ::-webkit-scrollbar{
- width: 4px;
- background-color: transparent;
- border-radius: 2px;
- }
- ::-webkit-scrollbar-thumb{
- background-color: rgba(#fff, .3);
- border-radius: 2px;
- }
- .dropdown-arrow{
- position: absolute;
- top: -10px;
- left: 50%;
- border: solid 5px transparent;
- border-bottom-color: rgba($COLOR_DARK, 1);
- transform: translateX(-50%);
- transition: margin .2s;
- &.active{
- border-bottom-color: $COLOR_ACTIVE;
- }
- }
- .menu{
- list-style: none;
- margin: 0;
- padding: 0;
- overflow: hidden;
- border-radius: 2px;
- }
- .menu-item{
- display: block;
- list-style: none;
- margin: 0;
- font-size: 16px;
- cursor: pointer;
- &:hover{
- background-color: rgba(#000, .1);
- }
- &.active{
- background-color: $COLOR_ACTIVE;
- color: #fff;
- }
- &:not(.active){
- color: rgba(#fff, .6);
- box-shadow: inset 0 -1px 0 0 rgba(#fff, .1);
- }
- }
- }
- .dropdown-content-inner{
- overflow: auto;
- }
- .dropdown-handler{
- position: relative;
- display: block;
- width: 100%;
- height: 36px;
- background-color: transparent;
- border: none;
- color: $COLOR_GRAY;
- cursor: pointer;
- &:hover{
- background-color: rgba(#000, .05);
- }
- *{
- display: inline;
- padding: 0;
- font-size: inherit;
- font-weight: normal;
- }
- > span{
- float: left;
- padding: 0 10px;
- font-size: 14px;
- line-height: 36px;
- pointer-events: none;
- i{
- display: block;
- height: 36px;
- font-size: 16px;
- line-height: 36px;
- text-align: center;
- }
- }
- .bfi-drop-down{
- float: right;
- width: 30px;
- height: 36px;
- font-size: 16px;
- line-height: 36px;
- text-align: center;
- pointer-events: none;
- }
- }
- &.active{
- .dropdown-handler{
- background-color: rgba(#000, .05);
- }
- .dropdown-content{
- visibility: visible;
- opacity: 1;
- transform: translate(-50%, 0);
- }
- }
- }
|