wd-swiper-nav.wxss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. /**
  27. * 辅助函数
  28. */
  29. /**
  30. * SCSS 配置项:命名空间以及BEM
  31. */
  32. /* 转换成字符串 */
  33. /* 判断是否存在 Modifier */
  34. /* 判断是否存在伪类 */
  35. /**
  36. * 主题色切换
  37. * @params $theme-color 主题色
  38. * @params $type 变暗’dark‘ 变亮 'light'
  39. * @params $mix-color 自己设置的混色
  40. */
  41. /**
  42. * 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
  43. * @params $open-linear 是否开启线性渐变色
  44. * @params $deg 渐变色角度
  45. * @params $theme-color 当前配色
  46. * @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
  47. * @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
  48. * @params [Array] $per-list 渐变色比例
  49. */
  50. /**
  51. * UI规范基础变量
  52. */
  53. /*----------------------------------------- Theme color. start ----------------------------------------*/
  54. /* 主题颜色 */
  55. /* 辅助色 */
  56. /* 文字颜色(默认浅色背景下 */
  57. /* 暗黑模式 */
  58. /* 图形颜色 */
  59. /*----------------------------------------- Theme color. end -------------------------------------------*/
  60. /*-------------------------------- Theme color application size. start --------------------------------*/
  61. /* 文字字号 */
  62. /* 文字字重 */
  63. /* 尺寸 */
  64. /*-------------------------------- Theme color application size. end --------------------------------*/
  65. /* component var */
  66. /* action-sheet */
  67. /* badge */
  68. /* button */
  69. /* cell */
  70. /* calendar */
  71. /* checkbox */
  72. /* collapse */
  73. /* divider */
  74. /* drop-menu */
  75. /* input-number */
  76. /* input */
  77. /* textarea */
  78. /* loadmore */
  79. /* message-box */
  80. /* notice-bar */
  81. /* pagination */
  82. /* picker */
  83. /* col-picker */
  84. /* overlay */
  85. /* popup */
  86. /* progress */
  87. /* radio */
  88. /* search */
  89. /* slider */
  90. /* sort-button */
  91. /* steps */
  92. /* switch */
  93. /* tabs */
  94. /* tag */
  95. /* toast */
  96. /* loading */
  97. /* tooltip */
  98. /* popover */
  99. /* grid-item */
  100. /* statustip */
  101. /* card */
  102. /* upload */
  103. /* curtain */
  104. /* notify */
  105. /* skeleton */
  106. /* circle */
  107. /* swiper */
  108. /* swiper-nav */
  109. /* segmented */
  110. /* tabbar */
  111. /* tabbar-item */
  112. /* navbar */
  113. /* navbar-capsule */
  114. /* table */
  115. /* sidebar */
  116. /* sidebar-item */
  117. /* fab */
  118. /* count-down */
  119. /* keyboard */
  120. /* number-keyboard */
  121. /* passwod-input */
  122. /* form-item */
  123. /* backtop */
  124. /* index-bar */
  125. /* text */
  126. /* video-preview */
  127. /* img-cropper */
  128. /* floating-panel */
  129. /* signature */
  130. /**
  131. * 混合宏
  132. */
  133. /**
  134. * SCSS 配置项:命名空间以及BEM
  135. */
  136. /**
  137. * 辅助函数
  138. */
  139. /**
  140. * SCSS 配置项:命名空间以及BEM
  141. */
  142. /* 转换成字符串 */
  143. /* 判断是否存在 Modifier */
  144. /* 判断是否存在伪类 */
  145. /**
  146. * 主题色切换
  147. * @params $theme-color 主题色
  148. * @params $type 变暗’dark‘ 变亮 'light'
  149. * @params $mix-color 自己设置的混色
  150. */
  151. /**
  152. * 颜色结果切换, 如果开启线性渐变色 使用渐变色,如果没有开启,那么使用主题色
  153. * @params $open-linear 是否开启线性渐变色
  154. * @params $deg 渐变色角度
  155. * @params $theme-color 当前配色
  156. * @params [Array] $set 主题色明暗设置,与 $color-list 数量对应
  157. * @params [Array] $color-list 渐变色顺序, $color-list 和 $per-list 数量相同
  158. * @params [Array] $per-list 渐变色比例
  159. */
  160. /**
  161. * BEM,定义块(b)
  162. */
  163. /* 定义元素(e),对于伪类,会自动将 e 嵌套在 伪类 底下 */
  164. /* 此方法用于生成穿透样式 */
  165. /* 定义元素(e),对于伪类,会自动将 e 嵌套在 伪类 底下 */
  166. /* 定义状态(m) */
  167. /* 定义状态(m) */
  168. /* 对于需要需要嵌套在 m 底下的 e,调用这个混合宏,一般在切换整个组件的状态,如切换颜色的时候 */
  169. /* 状态,生成 is-$state 类名 */
  170. /**
  171. * 常用混合宏
  172. */
  173. /* 单行超出隐藏 */
  174. /* 多行超出隐藏 */
  175. /* 清除浮动 */
  176. /* 0.5px 边框 指定方向*/
  177. /* 0.5px 边框 环绕 */
  178. /**
  179. * 三角形实现尖角样式,适用于背景透明情况
  180. * @param $size 三角形高,底边为 $size * 2
  181. * @param $bg 三角形背景颜色
  182. */
  183. /**
  184. * 正方形实现尖角样式,适用于背景不透明情况
  185. * @param $size 正方形边长
  186. * @param $bg 正方形背景颜色
  187. * @param $z-index z-index属性值,不得大于外部包裹器
  188. * @param $box-shadow 阴影
  189. */
  190. .wd-swiper-nav__btn--prev.data-v-fb3c54f0, .wd-swiper-nav__btn--next.data-v-fb3c54f0 {
  191. position: absolute;
  192. top: 50%;
  193. transform: translateY(-50%);
  194. width: var(--wot-swiper-nav-btn-size, 48rpx);
  195. height: var(--wot-swiper-nav-btn-size, 48rpx);
  196. border-radius: 50%;
  197. background: var(--wot-swiper-nav-btn-bg-color, var(--wot-font-gray-3, rgba(0, 0, 0, 0.4)));
  198. }
  199. .wd-swiper-nav__btn--prev.data-v-fb3c54f0::after, .wd-swiper-nav__btn--next.data-v-fb3c54f0::after {
  200. position: absolute;
  201. left: 50%;
  202. top: 50%;
  203. display: block;
  204. content: "";
  205. width: 12rpx;
  206. height: 12rpx;
  207. border-color: var(--wot-swiper-nav-btn-color, var(--wot-font-white-1, rgb(255, 255, 255)));
  208. border-style: solid;
  209. }
  210. .wd-swiper-nav__btn--prev.data-v-fb3c54f0 {
  211. left: 30rpx;
  212. }
  213. .wd-swiper-nav__btn--prev.data-v-fb3c54f0::after {
  214. margin-left: 4rpx;
  215. border-width: 2rpx 0 0 2rpx;
  216. transform: translate(-50%, -50%) rotateZ(-45deg);
  217. }
  218. .wd-swiper-nav__btn--next.data-v-fb3c54f0 {
  219. right: 30rpx;
  220. }
  221. .wd-swiper-nav__btn--next.data-v-fb3c54f0::after {
  222. margin-left: -4rpx;
  223. border-width: 2rpx 2rpx 0 0;
  224. transform: translate(-50%, -50%) rotateZ(45deg);
  225. }
  226. .wd-swiper-nav--dots.data-v-fb3c54f0, .wd-swiper-nav--dots-bar.data-v-fb3c54f0 {
  227. display: flex;
  228. flex-direction: row;
  229. }
  230. .wd-swiper-nav--fraction.data-v-fb3c54f0 {
  231. padding: 0 16rpx;
  232. height: var(--wot-swiper-nav-fraction-height, 48rpx);
  233. line-height: var(--wot-swiper-nav-fraction-height, 48rpx);
  234. border-radius: calc(var(--wot-swiper-nav-fraction-height, 48rpx) / 2);
  235. background: var(--wot-swiper-nav-fraction-bg-color, var(--wot-font-gray-3, rgba(0, 0, 0, 0.4)));
  236. color: var(--wot-swiper-nav-fraction-color, var(--wot-font-white-1, rgb(255, 255, 255)));
  237. font-size: var(--wot-swiper-nav-fraction-font-size, 24rpx);
  238. }
  239. .wd-swiper-nav__item--dots.data-v-fb3c54f0, .wd-swiper-nav__item--dots-bar.data-v-fb3c54f0 {
  240. width: var(--wot-swiper-nav-dot-size, 12rpx);
  241. height: var(--wot-swiper-nav-dot-size, 12rpx);
  242. background: var(--wot-swiper-nav-dot-color, var(--wot-font-white-2, rgba(255, 255, 255, 0.55)));
  243. border-radius: 50%;
  244. margin: 0 10rpx;
  245. transition: all 0.4s ease-in;
  246. }
  247. .wd-swiper-nav__item--dots.is-vertical.data-v-fb3c54f0, .wd-swiper-nav__item--dots-bar.is-vertical.data-v-fb3c54f0 {
  248. margin: 10rpx 0;
  249. }
  250. .wd-swiper-nav__item--dots.is-active.data-v-fb3c54f0, .wd-swiper-nav__item--dots-bar.is-active.data-v-fb3c54f0 {
  251. background-color: var(--wot-swiper-nav-dot-active-color, var(--wot-font-white-1, rgb(255, 255, 255)));
  252. }
  253. .wd-swiper-nav__item--dots-bar.is-vertical.is-active.data-v-fb3c54f0 {
  254. width: var(--wot-swiper-nav-dot-size, 12rpx);
  255. height: var(--wot-swiper-nav-dots-bar-active-width, 40rpx);
  256. }
  257. .wd-swiper-nav__item--dots-bar.is-active.data-v-fb3c54f0 {
  258. width: var(--wot-swiper-nav-dots-bar-active-width, 40rpx);
  259. border-radius: calc(var(--wot-swiper-nav-dot-size, 12rpx) / 2);
  260. background-color: var(--wot-swiper-nav-dot-active-color, var(--wot-font-white-1, rgb(255, 255, 255)));
  261. }
  262. .wd-swiper-nav--left.data-v-fb3c54f0 {
  263. position: absolute;
  264. left: 24rpx;
  265. top: 50%;
  266. transform: translateY(-50%);
  267. }
  268. .wd-swiper-nav--right.data-v-fb3c54f0 {
  269. position: absolute;
  270. right: 24rpx;
  271. top: 50%;
  272. transform: translateY(-50%);
  273. }
  274. .wd-swiper-nav--top-left.data-v-fb3c54f0 {
  275. position: absolute;
  276. top: 24rpx;
  277. left: 24rpx;
  278. }
  279. .wd-swiper-nav--top.data-v-fb3c54f0 {
  280. position: absolute;
  281. left: 50%;
  282. top: 24rpx;
  283. transform: translateX(-50%);
  284. }
  285. .wd-swiper-nav--top-right.data-v-fb3c54f0 {
  286. position: absolute;
  287. top: 24rpx;
  288. right: 24rpx;
  289. }
  290. .wd-swiper-nav--bottom-left.data-v-fb3c54f0 {
  291. position: absolute;
  292. left: 24rpx;
  293. bottom: 24rpx;
  294. }
  295. .wd-swiper-nav--bottom.data-v-fb3c54f0 {
  296. position: absolute;
  297. left: 50%;
  298. bottom: 24rpx;
  299. transform: translateX(-50%);
  300. }
  301. .wd-swiper-nav--bottom-right.data-v-fb3c54f0 {
  302. position: absolute;
  303. right: 24rpx;
  304. bottom: 24rpx;
  305. }
  306. .wd-swiper-nav--vertical.data-v-fb3c54f0 {
  307. flex-direction: column;
  308. }