u-popup.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. view.data-v-74921bef, scroll-view.data-v-74921bef, swiper-item.data-v-74921bef {
  27. display: flex;
  28. flex-direction: column;
  29. flex-shrink: 0;
  30. flex-grow: 0;
  31. flex-basis: auto;
  32. align-items: stretch;
  33. align-content: flex-start;
  34. }
  35. .u-popup.data-v-74921bef {
  36. flex: 1;
  37. }
  38. .u-popup__content.data-v-74921bef {
  39. background-color: #fff;
  40. position: relative;
  41. }
  42. .u-popup__content--round-top.data-v-74921bef {
  43. border-top-left-radius: 0;
  44. border-top-right-radius: 0;
  45. border-bottom-left-radius: 10px;
  46. border-bottom-right-radius: 10px;
  47. }
  48. .u-popup__content--round-left.data-v-74921bef {
  49. border-top-left-radius: 0;
  50. border-top-right-radius: 10px;
  51. border-bottom-left-radius: 0;
  52. border-bottom-right-radius: 10px;
  53. }
  54. .u-popup__content--round-right.data-v-74921bef {
  55. border-top-left-radius: 10px;
  56. border-top-right-radius: 0;
  57. border-bottom-left-radius: 10px;
  58. border-bottom-right-radius: 0;
  59. }
  60. .u-popup__content--round-bottom.data-v-74921bef {
  61. border-top-left-radius: 10px;
  62. border-top-right-radius: 10px;
  63. border-bottom-left-radius: 0;
  64. border-bottom-right-radius: 0;
  65. }
  66. .u-popup__content--round-center.data-v-74921bef {
  67. border-top-left-radius: 10px;
  68. border-top-right-radius: 10px;
  69. border-bottom-left-radius: 10px;
  70. border-bottom-right-radius: 10px;
  71. }
  72. .u-popup__content__close.data-v-74921bef {
  73. position: absolute;
  74. }
  75. .u-popup__content__close--hover.data-v-74921bef {
  76. opacity: 0.4;
  77. }
  78. .u-popup__content__close--top-left.data-v-74921bef {
  79. top: 15px;
  80. left: 15px;
  81. }
  82. .u-popup__content__close--top-right.data-v-74921bef {
  83. top: 15px;
  84. right: 15px;
  85. }
  86. .u-popup__content__close--bottom-left.data-v-74921bef {
  87. bottom: 15px;
  88. left: 15px;
  89. }
  90. .u-popup__content__close--bottom-right.data-v-74921bef {
  91. right: 15px;
  92. bottom: 15px;
  93. }