select-list.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. @import "vars";
  2. @import "mixins";
  3. .white .select-list {
  4. li {
  5. &.checked {
  6. &:before {background-color: $medium !important; }
  7. > a,
  8. > span {
  9. color: $medium;
  10. }
  11. }
  12. &:hover {
  13. &:before {background-color: $medium; }
  14. > a,
  15. > span {
  16. background-color: rgba(0,0,0,0.025) !important;
  17. }
  18. }
  19. &:before {background-color: $medium; }
  20. > a,
  21. > span {
  22. color: $medium;
  23. }
  24. }
  25. }
  26. .select-list {
  27. &:empty:before{
  28. position: absolute;
  29. top: 50%;
  30. left: 50%;
  31. margin: -50%;
  32. width: 100%;
  33. display: block;
  34. font-size: 13px;
  35. line-height: 1px;
  36. margin-top: -6px;
  37. content:attr(data-placeholder);
  38. color: $medium;
  39. opacity: 0.5;
  40. }
  41. -webkit-mask-image: -webkit-gradient(linear, left top, left 15px, from(rgba(0,0,0,0)), to(rgba(0,0,0,0.5)));
  42. background-clip: padding-box;
  43. font-size: 15px;
  44. line-height: 14px;
  45. list-style: none;
  46. margin: 0px;
  47. padding: 15px 0;
  48. text-align: left;
  49. // background-color: $dark;
  50. color: $medium;
  51. border-radius: $radius;
  52. .divider + li span {border: none !important; }
  53. .divider {
  54. @include backface-visibility(hidden);
  55. margin: 10px 0;
  56. border: 1px solid rgba(0,0,0,0.05);
  57. height: 0;
  58. }
  59. // li.divider {border-bottom: 2px solid rgba(0,0,0,0.025); }
  60. li {
  61. width: 100%;
  62. display: block;
  63. position: relative;
  64. margin: -2px 0 ;
  65. &.checked {
  66. opacity: 1;
  67. &:before {
  68. background-color: $dark !important;
  69. display: block;
  70. }
  71. > a,
  72. > span {
  73. color: $dark;
  74. }
  75. }
  76. &:hover {
  77. // background-color: rgba(0,0,0,0.025);
  78. &:before {
  79. background-color: $medium;
  80. display: block;
  81. }
  82. > a,
  83. > span {
  84. color: $medium;
  85. color: $dark;
  86. }
  87. }
  88. &.select-list-title:before {
  89. display: none !important;
  90. }
  91. &:before {
  92. top: 50%;
  93. left: 10px;
  94. margin-top: -3px;
  95. content: "";
  96. display: block;
  97. position: absolute;
  98. height: 6px;
  99. width: 6px;
  100. background-color: $light;
  101. border-radius: 100%;
  102. display: none;
  103. }
  104. > b,
  105. > a,
  106. > span {
  107. display: block;
  108. cursor: pointer;
  109. white-space: nowrap;
  110. color: $medium;
  111. margin: 0 25px;
  112. padding: 16px 3px;
  113. // line-height: 50px;
  114. overflow: hidden;
  115. text-overflow: ellipsis;
  116. max-width: 100%;
  117. border-top: 2px solid rgba(0,0,0,0.025) !important;
  118. .icon {
  119. &.icon-sm {
  120. margin: -7px;
  121. margin-right: 14px;
  122. }
  123. &.icon-md {
  124. margin: -13px;
  125. margin-right: 7px;
  126. }
  127. }
  128. }
  129. &:first-child {
  130. > b,
  131. > a,
  132. > span {
  133. border: none !important;
  134. }
  135. }
  136. }
  137. }