dt-dropdown.wxss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @charset "UTF-8";
  2. /**
  3. * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量
  4. * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可
  5. * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用
  6. */
  7. .dropWrap.data-v-30fce8e2 {
  8. box-sizing: border-box;
  9. width: 145px;
  10. height: 30px;
  11. font-size: 12px;
  12. background: #F7F7F7;
  13. color: #138E57;
  14. border-radius: 3px;
  15. padding: 4px 8px;
  16. display: flex;
  17. align-items: center;
  18. justify-content: space-between;
  19. }
  20. .dropWrap .sanjiao.data-v-30fce8e2 {
  21. -webkit-transform: rotate(90deg);
  22. transform: rotate(90deg);
  23. }
  24. .dropWrap .sanjiao image.data-v-30fce8e2 {
  25. width: 13px;
  26. height: 18px;
  27. }
  28. .dropdown.data-v-30fce8e2 {
  29. position: absolute;
  30. z-index: 100;
  31. }
  32. .dropdown .ul.data-v-30fce8e2 {
  33. width: 145px;
  34. position: relative;
  35. z-index: 101;
  36. list-style: none;
  37. background-color: #fff;
  38. border-radius: 4rpx;
  39. padding-left: 0;
  40. box-shadow: 6rpx 6rpx 10rpx rgba(122, 122, 122, 0.2);
  41. transition: all 0.2s;
  42. height: 0;
  43. overflow: hidden;
  44. }
  45. .dropdown .ul .li.data-v-30fce8e2 {
  46. box-sizing: border-box;
  47. color: #000;
  48. height: 30px;
  49. border-bottom: 1px solid #e6eaeb;
  50. font-size: 24rpx;
  51. line-height: 30px;
  52. padding-left: 8px;
  53. }
  54. .dropdown .ul .li.data-v-30fce8e2:last-child {
  55. border-bottom: none;
  56. }
  57. .dropdown .show.data-v-30fce8e2 {
  58. height: calc( var(--i) * 30px);
  59. }
  60. .dropdown .dropdown-mask.data-v-30fce8e2 {
  61. top: 0;
  62. left: 0;
  63. position: fixed;
  64. width: 100vw;
  65. height: 100vh;
  66. z-index: 100;
  67. pointer-events: auto;
  68. }
  69. .dropdown .undropdown-mask.data-v-30fce8e2 {
  70. pointer-events: none;
  71. }