wd-cell.wxss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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. .wot-theme-dark .wd-cell.data-v-a65b3963 {
  191. background-color: var(--wot-dark-background2, #1b1b1b);
  192. color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
  193. }
  194. .wot-theme-dark .wd-cell__value.data-v-a65b3963 {
  195. color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
  196. }
  197. .wot-theme-dark .wd-cell__label.data-v-a65b3963 {
  198. color: var(--wot-dark-color3, rgba(232, 230, 227, 0.8));
  199. }
  200. .wot-theme-dark .wd-cell.is-hover.data-v-a65b3963 {
  201. background-color: var(--wot-dark-background4, #323233);
  202. }
  203. .wot-theme-dark .wd-cell.is-border .wd-cell__wrapper.data-v-a65b3963 {
  204. position: relative;
  205. }
  206. .wot-theme-dark .wd-cell.is-border .wd-cell__wrapper.data-v-a65b3963::after {
  207. position: absolute;
  208. display: block;
  209. content: "";
  210. width: 100%;
  211. height: 1px;
  212. left: 0;
  213. top: 0;
  214. transform: scaleY(0.5);
  215. background: var(--wot-dark-border-color, #3a3a3c);
  216. }
  217. .wot-theme-dark .wd-cell.data-v-a65b3963 .wd-cell__arrow-right {
  218. color: var(--wot-dark-color, var(--wot-color-white, rgb(255, 255, 255)));
  219. }
  220. .wd-cell.data-v-a65b3963 {
  221. position: relative;
  222. padding-left: var(--wot-cell-padding, var(--wot-size-side-padding, 15px));
  223. background-color: var(--wot-color-white, rgb(255, 255, 255));
  224. text-decoration: none;
  225. color: var(--wot-cell-title-color, rgba(0, 0, 0, 0.85));
  226. line-height: var(--wot-cell-line-height, 24px);
  227. -webkit-tap-highlight-color: transparent;
  228. }
  229. .wd-cell.is-border .wd-cell__wrapper.data-v-a65b3963 {
  230. position: relative;
  231. }
  232. .wd-cell.is-border .wd-cell__wrapper.data-v-a65b3963::after {
  233. position: absolute;
  234. display: block;
  235. content: "";
  236. width: 100%;
  237. height: 1px;
  238. left: 0;
  239. top: 0;
  240. transform: scaleY(0.5);
  241. background: var(--wot-color-border-light, #e8e8e8);
  242. }
  243. .wd-cell__wrapper.data-v-a65b3963 {
  244. position: relative;
  245. display: flex;
  246. padding: var(--wot-cell-wrapper-padding, 10px) var(--wot-cell-padding, var(--wot-size-side-padding, 15px)) var(--wot-cell-wrapper-padding, 10px) 0;
  247. justify-content: space-between;
  248. align-items: flex-start;
  249. }
  250. .wd-cell__wrapper.is-vertical.data-v-a65b3963 {
  251. display: block;
  252. }
  253. .wd-cell__wrapper.is-vertical .wd-cell__right.data-v-a65b3963 {
  254. margin-top: var(--wot-cell-vertical-top, 16px);
  255. }
  256. .wd-cell__wrapper.is-vertical .wd-cell__value.data-v-a65b3963 {
  257. text-align: left;
  258. }
  259. .wd-cell__wrapper.is-vertical .wd-cell__left.data-v-a65b3963 {
  260. margin-right: 0;
  261. }
  262. .wd-cell__wrapper.is-label.data-v-a65b3963 {
  263. padding: var(--wot-cell-wrapper-padding-with-label, 16px) var(--wot-cell-padding, var(--wot-size-side-padding, 15px)) var(--wot-cell-wrapper-padding-with-label, 16px) 0;
  264. }
  265. .wd-cell__left.data-v-a65b3963 {
  266. position: relative;
  267. flex: 1;
  268. display: flex;
  269. text-align: left;
  270. font-size: var(--wot-cell-title-fs, 14px);
  271. box-sizing: border-box;
  272. margin-right: var(--wot-cell-padding, var(--wot-size-side-padding, 15px));
  273. }
  274. .wd-cell__left.is-required.data-v-a65b3963 {
  275. padding-left: 12px;
  276. }
  277. .wd-cell__left.is-required.data-v-a65b3963::after {
  278. position: absolute;
  279. content: "*";
  280. top: 0;
  281. left: 0;
  282. font-size: var(--wot-cell-required-size, 18px);
  283. color: var(--wot-cell-required-color, var(--wot-color-danger, #fa4350));
  284. }
  285. .wd-cell__right.data-v-a65b3963 {
  286. position: relative;
  287. flex: 1;
  288. }
  289. .wd-cell__title.data-v-a65b3963 {
  290. flex: 1;
  291. width: 100%;
  292. font-size: var(--wot-cell-title-fs, 14px);
  293. }
  294. .wd-cell__label.data-v-a65b3963 {
  295. margin-top: 2px;
  296. font-size: var(--wot-cell-label-fs, 12px);
  297. color: var(--wot-cell-label-color, rgba(0, 0, 0, 0.45));
  298. }
  299. .data-v-a65b3963 .wd-cell__icon {
  300. display: block;
  301. position: relative;
  302. margin-right: var(--wot-cell-icon-right, 4px);
  303. font-size: var(--wot-cell-icon-size, 16px);
  304. height: var(--wot-cell-line-height, 24px);
  305. line-height: var(--wot-cell-line-height, 24px);
  306. }
  307. .wd-cell__body.data-v-a65b3963 {
  308. display: flex;
  309. }
  310. .wd-cell__value.data-v-a65b3963 {
  311. position: relative;
  312. flex: 1;
  313. font-size: var(--wot-cell-value-fs, 14px);
  314. color: var(--wot-cell-value-color, rgba(0, 0, 0, 0.85));
  315. text-align: right;
  316. vertical-align: middle;
  317. }
  318. .data-v-a65b3963 .wd-cell__arrow-right {
  319. display: block;
  320. margin-left: 8px;
  321. width: var(--wot-cell-arrow-size, 18px);
  322. font-size: var(--wot-cell-arrow-size, 18px);
  323. color: var(--wot-cell-arrow-color, rgba(0, 0, 0, 0.25));
  324. height: var(--wot-cell-line-height, 24px);
  325. line-height: var(--wot-cell-line-height, 24px);
  326. }
  327. .wd-cell__error-message.data-v-a65b3963 {
  328. color: var(--wot-form-item-error-message-color, var(--wot-color-danger, #fa4350));
  329. font-size: var(--wot-form-item-error-message-font-size, var(--wot-fs-secondary, 12px));
  330. line-height: var(--wot-form-item-error-message-line-height, 24px);
  331. text-align: left;
  332. vertical-align: middle;
  333. }
  334. .wd-cell.is-link.data-v-a65b3963 {
  335. -webkit-tap-highlight-color: var(--wot-cell-tap-bg, rgba(0, 0, 0, 0.06));
  336. }
  337. .wd-cell.is-hover.data-v-a65b3963 {
  338. background-color: var(--wot-cell-tap-bg, rgba(0, 0, 0, 0.06));
  339. }
  340. .wd-cell.is-large .wd-cell__title.data-v-a65b3963 {
  341. font-size: var(--wot-cell-title-fs-large, 16px);
  342. }
  343. .wd-cell.is-large .wd-cell__wrapper.data-v-a65b3963 {
  344. padding-top: var(--wot-cell-wrapper-padding-large, 12px);
  345. padding-bottom: var(--wot-cell-wrapper-padding-large, 12px);
  346. }
  347. .wd-cell.is-large .wd-cell__label.data-v-a65b3963 {
  348. font-size: var(--wot-cell-label-fs-large, 14px);
  349. }
  350. .wd-cell.is-large.data-v-a65b3963 .wd-cell__icon {
  351. font-size: var(--wot-cell-icon-size-large, 18px);
  352. }
  353. .wd-cell.is-center .wd-cell__wrapper.data-v-a65b3963 {
  354. align-items: center;
  355. }