Sin descripción

style.scss 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. @import '~scssinc';
  2. .bf-dropdown{
  3. position: relative;
  4. width: auto;
  5. height: 36px;
  6. margin: 0;
  7. &.disabled{
  8. pointer-events: none;
  9. opacity: .3;
  10. }
  11. .dropdown-content{
  12. box-sizing: content-box;
  13. position: absolute;
  14. z-index: 10;
  15. top: 100%;
  16. left: 50%;
  17. visibility: hidden;
  18. float: left;
  19. width: auto;
  20. min-width: 100%;
  21. margin-top: 9px;
  22. background-color: rgba($COLOR_DARK, 1);
  23. border-radius: 2px;
  24. box-shadow: 0 5px 15px rgba(#000, .2);
  25. opacity: 0;
  26. cursor: default;
  27. transform: translate(-50%, 20px);
  28. transition: .2s;
  29. ::-webkit-scrollbar-track{
  30. background-color: transparent;
  31. }
  32. ::-webkit-scrollbar{
  33. width: 4px;
  34. background-color: transparent;
  35. border-radius: 2px;
  36. }
  37. ::-webkit-scrollbar-thumb{
  38. background-color: rgba(#fff, .3);
  39. border-radius: 2px;
  40. }
  41. .dropdown-arrow{
  42. position: absolute;
  43. top: -10px;
  44. left: 50%;
  45. border: solid 5px transparent;
  46. border-bottom-color: rgba($COLOR_DARK, 1);
  47. transform: translateX(-50%);
  48. transition: margin .2s;
  49. &.active{
  50. border-bottom-color: $COLOR_ACTIVE;
  51. }
  52. }
  53. .menu{
  54. list-style: none;
  55. margin: 0;
  56. padding: 0;
  57. overflow: hidden;
  58. border-radius: 2px;
  59. }
  60. .menu-item{
  61. display: block;
  62. list-style: none;
  63. margin: 0;
  64. font-size: 16px;
  65. cursor: pointer;
  66. &:hover{
  67. background-color: rgba(#000, .1);
  68. }
  69. &.active{
  70. background-color: $COLOR_ACTIVE;
  71. color: #fff;
  72. }
  73. &:not(.active){
  74. color: rgba(#fff, .6);
  75. box-shadow: inset 0 -1px 0 0 rgba(#fff, .1);
  76. }
  77. }
  78. }
  79. .dropdown-content-inner{
  80. overflow: auto;
  81. }
  82. .dropdown-handler{
  83. position: relative;
  84. display: block;
  85. width: 100%;
  86. height: 36px;
  87. background-color: transparent;
  88. border: none;
  89. color: $COLOR_GRAY;
  90. cursor: pointer;
  91. &:hover{
  92. background-color: rgba(#000, .05);
  93. }
  94. *{
  95. display: inline;
  96. padding: 0;
  97. font-size: inherit;
  98. font-weight: normal;
  99. }
  100. > span{
  101. float: left;
  102. padding: 0 10px;
  103. font-size: 14px;
  104. line-height: 36px;
  105. pointer-events: none;
  106. i{
  107. display: block;
  108. height: 36px;
  109. font-size: 16px;
  110. line-height: 36px;
  111. text-align: center;
  112. }
  113. }
  114. .bfi-drop-down{
  115. float: right;
  116. width: 30px;
  117. height: 36px;
  118. font-size: 16px;
  119. line-height: 36px;
  120. text-align: center;
  121. pointer-events: none;
  122. }
  123. }
  124. &.active{
  125. .dropdown-handler{
  126. background-color: rgba(#000, .05);
  127. }
  128. .dropdown-content{
  129. visibility: visible;
  130. opacity: 1;
  131. transform: translate(-50%, 0);
  132. }
  133. }
  134. }