sideSheet.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. @import "./variables.scss";
  2. $module: #{$prefix}-sidesheet;
  3. .#{$module} {
  4. @include font-size-regular;
  5. position: fixed;
  6. margin: $spacing-sideSheet-margin;
  7. top: 0;
  8. left: 0;
  9. height: 100%;
  10. &-inner:focus,
  11. &-content:focus {
  12. outline: none;
  13. }
  14. &-inner-wrap {
  15. position: absolute;
  16. }
  17. &-left,
  18. &-right {
  19. top: 0;
  20. width: 0%;
  21. height: 100%;
  22. .#{$module}-inner-wrap {
  23. height: 100%;
  24. }
  25. &.#{$module} {
  26. width: 100%;
  27. }
  28. }
  29. &-right {
  30. right: 0;
  31. .#{$module}-inner-wrap {
  32. right: 0;
  33. }
  34. }
  35. &-top,
  36. &-bottom {
  37. left: 0;
  38. width: 100%;
  39. height: 0%;
  40. .#{$module}-inner-wrap {
  41. width: 100%;
  42. }
  43. &.#{$module} {
  44. height: 100%;
  45. }
  46. }
  47. &-top {
  48. top: 0;
  49. }
  50. &-bottom {
  51. bottom: 0;
  52. .#{$module}-inner-wrap {
  53. bottom: 0;
  54. }
  55. }
  56. &-title {
  57. flex: 1 0 auto;
  58. margin: $spacing-sideSheet_title-margin;
  59. @include font-size-header-5;
  60. font-weight: $font-sideSheet_title-fontWeight;
  61. color: $color-sideSheet_main-text;
  62. text-align: left;
  63. }
  64. &-inner {
  65. // position: relative;
  66. z-index: 1;
  67. overflow: auto;
  68. background-color: $color-sideSheet-bg;
  69. // background-clip: padding-box;
  70. border: 0;
  71. }
  72. &-header {
  73. display: flex;
  74. align-items: flex-start;
  75. padding: $spacing-sideSheet_header-padding;
  76. padding-bottom: $spacing-sideSheet_header-paddingBottom;
  77. }
  78. &-body {
  79. padding: $spacing-sideSheet_body-paddingY $spacing-sideSheet_body-paddingX;
  80. flex: 1;
  81. }
  82. &-content {
  83. height: 100%;
  84. display: flex;
  85. flex-direction: column;
  86. box-sizing: border-box;
  87. overflow: hidden;
  88. // padding: 0 $spacing-loose;
  89. }
  90. &-mask {
  91. position: absolute;
  92. top: 0;
  93. left: 0;
  94. width: 100%;
  95. height: 100%;
  96. background-color: $color-sideSheet_mask-bg;
  97. &-hidden {
  98. display: none;
  99. }
  100. }
  101. &-footer {
  102. padding: $spacing-sideSheet_footer-padding;
  103. }
  104. }
  105. .#{$module}-fixed {
  106. .#{$module}-inner {
  107. box-shadow: var(--semi-shadow-elevated);
  108. }
  109. &.#{$module}-left {
  110. left: 0;
  111. // width will inject by js
  112. .#{$module}-inner {
  113. left: 0;
  114. }
  115. }
  116. &.#{$module}-right {
  117. left: auto;
  118. // width will inject by js
  119. .#{$module}-inner {
  120. right: 0;
  121. }
  122. }
  123. &.#{$module}-top,
  124. &.#{$module}-bottom {
  125. height: auto;
  126. }
  127. &.#{$module}-bottom {
  128. top: auto;
  129. .#{$module}-inner {
  130. bottom: 0;
  131. }
  132. }
  133. }
  134. .#{$module}.#{$module}-popup {
  135. position: absolute;
  136. }
  137. .#{$module}-hidden {
  138. display: none;
  139. }
  140. @import "./rtl.scss";