list-index.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .cl-li {
  2. height: 100%;
  3. overflow: hidden;
  4. position: relative;
  5. &__search {
  6. height: 100rpx;
  7. border-bottom: 1rpx solid #eee;
  8. background-color: #fff;
  9. box-sizing: border-box;
  10. padding: 15rpx 20rpx;
  11. box-sizing: border-box;
  12. .cl-input {
  13. background-color: #f8f8f8;
  14. }
  15. }
  16. &__scroller {
  17. height: calc(100% - 100rpx);
  18. }
  19. &__header {
  20. background-color: #f7f7f7;
  21. padding: 10rpx 20rpx;
  22. font-size: 26rpx;
  23. position: sticky;
  24. top: 0;
  25. z-index: 9;
  26. &.is-active {
  27. text {
  28. color: #000;
  29. }
  30. }
  31. }
  32. &__container {
  33. background-color: #fff;
  34. }
  35. &__item {
  36. display: flex;
  37. align-items: center;
  38. min-height: 80rpx;
  39. font-size: 26rpx;
  40. box-sizing: border-box;
  41. padding: 20rpx;
  42. &:last-child {
  43. border-bottom: 0;
  44. }
  45. &:active {
  46. background-color: #eee;
  47. }
  48. }
  49. &__alert {
  50. position: absolute;
  51. top: 0;
  52. right: 80rpx;
  53. bottom: 0;
  54. margin: auto;
  55. background: rgba(0, 0, 0, 0.5);
  56. width: 100rpx;
  57. height: 100rpx;
  58. border-radius: 10rpx;
  59. color: #fff;
  60. line-height: 100rpx;
  61. text-align: center;
  62. font-size: 48rpx;
  63. z-index: 100;
  64. }
  65. &__bar {
  66. display: flex;
  67. flex-direction: column;
  68. justify-content: center;
  69. position: absolute;
  70. right: 20rpx;
  71. top: 0;
  72. height: 100%;
  73. font-size: 24rpx;
  74. z-index: 101;
  75. &-block {
  76. padding: 5rpx 10rpx;
  77. text {
  78. display: inline-block;
  79. height: 30rpx;
  80. width: 30rpx;
  81. line-height: 30rpx;
  82. text-align: center;
  83. border-radius: 30rpx;
  84. }
  85. &.is-active {
  86. text {
  87. background-color: #000;
  88. color: #fff;
  89. }
  90. }
  91. }
  92. }
  93. }