userGuide.scss 4.3 KB

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