index.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. @import "../styles/mixins/index.less";
  2. @import "../styles/themes/index.less";
  3. .@{wux-prefix}-actionsheet {
  4. &__popup {
  5. background-color: transparent;
  6. }
  7. &__content {
  8. margin-left: @action-sheet-margin;
  9. margin-right: @action-sheet-margin;
  10. width: auto;
  11. overflow: hidden;
  12. &--theme-wx {
  13. margin-left: 0;
  14. margin-right: 0;
  15. margin-bottom: 0;
  16. .@{wux-prefix}-actionsheet__group {
  17. border-radius: 0;
  18. margin-bottom: @action-sheet-margin - 2px;
  19. &--options {
  20. background-color: @action-sheet-options-normal-bg;
  21. }
  22. &--cancel {
  23. margin-bottom: 0;
  24. }
  25. }
  26. .@{wux-prefix}-actionsheet__button {
  27. font-size: 18px;
  28. color: #000;
  29. &--cancel {
  30. font-weight: normal;
  31. }
  32. }
  33. }
  34. &--theme-wx&--has-cancel {
  35. background-color: @action-sheet-options-cancel-bg;
  36. }
  37. }
  38. &__group {
  39. margin-bottom: @action-sheet-margin;
  40. border-radius: @action-sheet-border-radius;
  41. background-color: @action-sheet-options-normal-bg;
  42. overflow: hidden;
  43. &--options {
  44. background-color: @action-sheet-options-bg;
  45. }
  46. }
  47. &__title {
  48. padding: 16px;
  49. color: #8f8f8f;
  50. text-align: center;
  51. font-size: 13px;
  52. }
  53. &__button {
  54. position: relative;
  55. display: block;
  56. margin: 0;
  57. padding: 0;
  58. border-radius: 0;
  59. min-width: 52px;
  60. min-height: 48px;
  61. vertical-align: top;
  62. text-align: center;
  63. text-overflow: ellipsis;
  64. cursor: pointer;
  65. width: 100%;
  66. border-radius: 0;
  67. background-color: transparent;
  68. color: @action-sheet-options-text-color;
  69. font-size: 21px;
  70. line-height: 48px;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. &--hover {
  75. box-shadow: none;
  76. border-color: @action-sheet-options-border-color;
  77. color: @action-sheet-options-text-color;
  78. background: @action-sheet-options-active-bg;
  79. }
  80. &--destructive {
  81. color: @action-sheet-options-destructive-text-color !important;
  82. }
  83. &--cancel {
  84. font-weight: 500;
  85. }
  86. &--disabled {
  87. opacity: @disabled-opacity !important;
  88. }
  89. }
  90. &__group &__button {
  91. border-top: none;
  92. &::after {
  93. transform: none;
  94. transform-origin: none;
  95. border: none;
  96. border-radius: 0;
  97. .setTopLine(@border-color-split);
  98. }
  99. &:first-child:last-child::after {
  100. border-width: 0;
  101. }
  102. }
  103. &__icon {
  104. .square(@action-icon-size);
  105. display: inline-block;
  106. margin-right: 10px;
  107. }
  108. }