u-dropdown.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .u-dropdown.data-v-0340bb60 {
  28. -webkit-box-flex: 1;
  29. -webkit-flex: 1;
  30. flex: 1;
  31. width: 100%;
  32. position: relative;
  33. }
  34. .u-dropdown__menu.data-v-0340bb60 {
  35. display: -webkit-box;
  36. display: -webkit-flex;
  37. display: flex;
  38. -webkit-box-orient: horizontal;
  39. -webkit-box-direction: normal;
  40. -webkit-flex-direction: row;
  41. flex-direction: row;
  42. position: relative;
  43. z-index: 11;
  44. height: 80rpx;
  45. }
  46. .u-dropdown__menu__item.data-v-0340bb60 {
  47. -webkit-box-flex: 1;
  48. -webkit-flex: 1;
  49. flex: 1;
  50. display: -webkit-box;
  51. display: -webkit-flex;
  52. display: flex;
  53. -webkit-box-orient: horizontal;
  54. -webkit-box-direction: normal;
  55. -webkit-flex-direction: row;
  56. flex-direction: row;
  57. -webkit-box-pack: center;
  58. -webkit-justify-content: center;
  59. justify-content: center;
  60. -webkit-box-align: center;
  61. -webkit-align-items: center;
  62. align-items: center;
  63. }
  64. .u-dropdown__menu__item__text.data-v-0340bb60 {
  65. font-size: 28rpx;
  66. color: #606266;
  67. }
  68. .u-dropdown__menu__item__arrow.data-v-0340bb60 {
  69. margin-left: 6rpx;
  70. -webkit-transition: -webkit-transform .3s;
  71. transition: -webkit-transform .3s;
  72. transition: transform .3s;
  73. transition: transform .3s, -webkit-transform .3s;
  74. -webkit-box-align: center;
  75. -webkit-align-items: center;
  76. align-items: center;
  77. display: -webkit-box;
  78. display: -webkit-flex;
  79. display: flex;
  80. -webkit-box-orient: horizontal;
  81. -webkit-box-direction: normal;
  82. -webkit-flex-direction: row;
  83. flex-direction: row;
  84. }
  85. .u-dropdown__menu__item__arrow--rotate.data-v-0340bb60 {
  86. -webkit-transform: rotate(180deg);
  87. transform: rotate(180deg);
  88. }
  89. .u-dropdown__content.data-v-0340bb60 {
  90. position: absolute;
  91. z-index: 8;
  92. width: 100%;
  93. left: 0px;
  94. bottom: 0;
  95. overflow: hidden;
  96. }
  97. .u-dropdown__content__mask.data-v-0340bb60 {
  98. position: absolute;
  99. z-index: 9;
  100. background: rgba(0, 0, 0, 0.3);
  101. width: 100%;
  102. left: 0;
  103. top: 0;
  104. bottom: 0;
  105. }
  106. .u-dropdown__content__popup.data-v-0340bb60 {
  107. position: relative;
  108. z-index: 10;
  109. -webkit-transition: all 0.3s;
  110. transition: all 0.3s;
  111. -webkit-transform: translate3D(0, -100%, 0);
  112. transform: translate3D(0, -100%, 0);
  113. overflow: hidden;
  114. }