uni-th.wxss 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. .uni-table-th {
  28. padding: 12px 10px;
  29. display: table-cell;
  30. box-sizing: border-box;
  31. font-size: 14px;
  32. font-weight: bold;
  33. color: #909399;
  34. border-bottom: 1px #ebeef5 solid;
  35. }
  36. .uni-table-th-row {
  37. display: flex;
  38. flex-direction: row;
  39. }
  40. .table--border {
  41. border-right: 1px #ebeef5 solid;
  42. }
  43. .uni-table-th-content {
  44. display: flex;
  45. align-items: center;
  46. flex: 1;
  47. }
  48. .arrow {
  49. display: block;
  50. position: relative;
  51. width: 10px;
  52. height: 8px;
  53. left: 5px;
  54. overflow: hidden;
  55. cursor: pointer;
  56. }
  57. .down {
  58. top: 3px;
  59. }
  60. .down ::after {
  61. content: '';
  62. width: 8px;
  63. height: 8px;
  64. position: absolute;
  65. left: 2px;
  66. top: -5px;
  67. -webkit-transform: rotate(45deg);
  68. transform: rotate(45deg);
  69. background-color: #ccc;
  70. }
  71. .down.active ::after {
  72. background-color: #007aff;
  73. }
  74. .up ::after {
  75. content: '';
  76. width: 8px;
  77. height: 8px;
  78. position: absolute;
  79. left: 2px;
  80. top: 5px;
  81. -webkit-transform: rotate(45deg);
  82. transform: rotate(45deg);
  83. background-color: #ccc;
  84. }
  85. .up.active ::after {
  86. background-color: #007aff;
  87. }