uni-collapse-item.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. @charset "UTF-8";
  2. /* 水平间距 */
  3. /* 水平间距 */
  4. .uni-collapse-item {
  5. box-sizing: border-box;
  6. }
  7. .uni-collapse-item__title {
  8. display: flex;
  9. width: 100%;
  10. box-sizing: border-box;
  11. flex-direction: row;
  12. align-items: center;
  13. transition: border-bottom-color .3s;
  14. }
  15. .uni-collapse-item__title-wrap {
  16. width: 100%;
  17. flex: 1;
  18. }
  19. .uni-collapse-item__title-box {
  20. padding: 0 15px;
  21. display: flex;
  22. width: 100%;
  23. box-sizing: border-box;
  24. flex-direction: row;
  25. justify-content: space-between;
  26. align-items: center;
  27. height: 48px;
  28. line-height: 48px;
  29. background-color: #fff;
  30. color: #303133;
  31. font-size: 13px;
  32. font-weight: 500;
  33. }
  34. .uni-collapse-item__title-box.is-disabled .uni-collapse-item__title-text {
  35. color: #999;
  36. }
  37. .uni-collapse-item__title.uni-collapse-item-border {
  38. border-bottom: 1px solid #ebeef5;
  39. }
  40. .uni-collapse-item__title.is-open {
  41. border-bottom-color: transparent;
  42. }
  43. .uni-collapse-item__title-img {
  44. height: 22px;
  45. width: 22px;
  46. margin-right: 10px;
  47. }
  48. .uni-collapse-item__title-text {
  49. flex: 1;
  50. font-size: 18px;
  51. font-weight: 600;
  52. white-space: nowrap;
  53. color: inherit;
  54. overflow: hidden;
  55. text-overflow: ellipsis;
  56. }
  57. .uni-collapse-item__title-arrow {
  58. display: flex;
  59. box-sizing: border-box;
  60. align-items: center;
  61. justify-content: center;
  62. width: 20px;
  63. height: 20px;
  64. margin-right: 10px;
  65. -webkit-transform: rotate(0deg);
  66. transform: rotate(0deg);
  67. }
  68. .uni-collapse-item__title-arrow-active {
  69. -webkit-transform: rotate(-180deg);
  70. transform: rotate(-180deg);
  71. }
  72. .uni-collapse-item__wrap {
  73. will-change: height;
  74. box-sizing: border-box;
  75. background-color: #fff;
  76. overflow: hidden;
  77. position: relative;
  78. height: 0;
  79. }
  80. .uni-collapse-item__wrap.is--transition {
  81. transition-property: height, border-bottom-width;
  82. transition-duration: 0.3s;
  83. will-change: height;
  84. }
  85. .uni-collapse-item__wrap-content {
  86. position: absolute;
  87. font-size: 13px;
  88. color: #303133;
  89. border-bottom-color: transparent;
  90. border-bottom-style: solid;
  91. border-bottom-width: 0;
  92. }
  93. .uni-collapse-item__wrap-content.uni-collapse-item--border {
  94. border-bottom-width: 1px;
  95. border-bottom-color: red;
  96. border-bottom-color: #ebeef5;
  97. }
  98. .uni-collapse-item__wrap-content.open {
  99. position: relative;
  100. }
  101. .uni-collapse-item--animation {
  102. transition-property: -webkit-transform;
  103. transition-property: transform;
  104. transition-property: transform, -webkit-transform;
  105. transition-duration: 0.3s;
  106. transition-timing-function: ease;
  107. }