userGuide.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @import './variables.scss';
  2. @import './animation.scss';
  3. $module: #{$prefix}-userGuide;
  4. .#{$module} {
  5. &-spotlight {
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. width: 100vw;
  10. height: 100vh;
  11. pointer-events: none;
  12. &-rect {
  13. transition: all $transition_duration-userGuide_spotLight $transition_function-userGuide_spotLight;
  14. }
  15. }
  16. &-popover {
  17. max-width: fit-content;
  18. width: $width-userGuide_popover-default;
  19. }
  20. &-popup-content {
  21. color: $color-userGuide_popup-text-default;
  22. &-primary {
  23. color: $color-userGuide_popup-text-primary;
  24. }
  25. &-cover {
  26. img {
  27. display: block;
  28. height: $height-userGuide_popup_content_cover-default;
  29. width: 100%;
  30. border-radius: $radius-userGuide_popup_content_cover;
  31. }
  32. }
  33. &-body {
  34. padding: $spacing-userGuide_popup_content_body-padding;
  35. }
  36. &-title {
  37. font-size: $font-userGuide_popup_content_title-fontSize;
  38. font-weight: $font-userGuide_popup_content_title-fontWeight;
  39. line-height: $font-userGuide_popup_content_title-lineHeight;
  40. margin-bottom: $spacing-userGuide_popup_content_title-marginBottom;
  41. }
  42. &-description {
  43. font-size: $font-userGuide_popup_content_description-fontSize;
  44. line-height: $font-userGuide_popup_content_description-lineHeight;
  45. margin-bottom: $spacing-userGuide_popup_content_description-marginBottom;
  46. }
  47. &-footer {
  48. display: flex;
  49. justify-content: space-between;
  50. align-items: center;
  51. }
  52. &-buttons {
  53. display: flex;
  54. gap: $spacing-userGuide_popup_content_button-gap;
  55. margin-left: $spacing-userGuide_popup_content_button-marginLeft;
  56. }
  57. &-indicator {
  58. font-size: $font-size-regular;
  59. line-height: $font-userGuide_popup_content_indicator-lineHeight;
  60. }
  61. }
  62. &-modal {
  63. .#{$prefix}-modal-small {
  64. width: fit-content;
  65. }
  66. // Override the modal's original padding
  67. .#{$prefix}-modal-content {
  68. padding: 0;
  69. width: $width-userGuide_modal_content_cover-default;
  70. max-width: fit-content;
  71. }
  72. &-cover {
  73. height: $height-userGuide_modal_content_cover-default;
  74. }
  75. &-indicator {
  76. height: $height-userGuide_modal_content_indicator-default;
  77. display: flex;
  78. justify-content: center;
  79. align-items: center;
  80. column-gap: $spacing-userGuide_popup_content_indicator-gap;
  81. &-item {
  82. width: $width-userGuide_modal_content_indicator_item-default;
  83. height: $height-userGuide_modal_content_indicator_item-default;
  84. border-radius: $radius-userGuide_modal_content_indicator;
  85. background-color: $color-userGuide_modal_content_indicator-bg;
  86. &-active {
  87. background: $color-userGuide_modal_content_indicator-bg-active
  88. }
  89. }
  90. }
  91. &-body {
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. flex-direction: column;
  96. padding: $spacing-userGuide_modal_content_body-padding;
  97. &-title {
  98. font-size: $font-userGuide_modal_content_title-fontSize;
  99. font-weight: $font-userGuide_modal_content_title-fontWeight;
  100. line-height:$font-userGuide_modal_content_title-lineHeight;
  101. margin-bottom: $spacing-userGuide_modal_content_title-marginBottom;
  102. }
  103. &-description {
  104. font-size: $font-userGuide_modal_content_description-fontSize;
  105. line-height: $font-userGuide_modal_content_description-lineHeight;
  106. }
  107. }
  108. &-footer {
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. padding: $spacing-userGuide_modal_content_footer-padding;
  113. column-gap: $spacing-userGuide_modal_content_button-gap
  114. }
  115. }
  116. }