_sections.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @keyframes move-forever1 {
  2. 0% {
  3. transform: translate(85px, 0%);
  4. }
  5. 100% {
  6. transform: translate(-90px, 0%);
  7. }
  8. }
  9. @keyframes move-forever2 {
  10. 0% {
  11. transform: translate(-90px, 0%);
  12. }
  13. 100% {
  14. transform: translate(85px, 0%);
  15. }
  16. }
  17. @keyframes move-forever3 {
  18. 0% {
  19. transform: translate(-90px, 0%);
  20. }
  21. 100% {
  22. transform: translate(85px, 0%);
  23. }
  24. }
  25. //
  26. // Sections
  27. //
  28. .section {
  29. --section-bg: transparent;
  30. background: var(--section-bg);
  31. position: relative;
  32. padding: 5rem 0;
  33. }
  34. .section-sm {
  35. padding: 4rem 0;
  36. }
  37. .section-white {
  38. --section-bg: var(--#{$prefix}bg-surface);
  39. }
  40. .section-light {
  41. --section-bg: var(--#{$prefix}bg-surface-secondary);
  42. }
  43. .section-primary {
  44. --section-bg: var(--#{$prefix}primary);
  45. color: $white;
  46. }
  47. .section-dark {
  48. --section-bg: var(--#{$prefix}dark);
  49. color: $white;
  50. }
  51. .section-header {
  52. text-align: center;
  53. max-width: 45rem;
  54. margin: 0 auto 5rem;
  55. @at-root .section-sm & {
  56. margin-bottom: 4rem;
  57. }
  58. }
  59. .section-title {
  60. font-size: var(--#{$prefix}font-size-h1);
  61. font-weight: var(--#{$prefix}font-weight-bold);
  62. line-height: 1.2;
  63. }
  64. .section-title-lg {
  65. font-size: 2rem;
  66. }
  67. .section-description {
  68. color: var(--#{$prefix}muted);
  69. font-size: var(--#{$prefix}font-size-h3);
  70. line-height: var(--#{$prefix}line-height-h3);
  71. margin-top: 1rem;
  72. }
  73. //
  74. // Section divider
  75. //
  76. .section-divider {
  77. position: absolute;
  78. bottom: 100%;
  79. pointer-events: none;
  80. height: 5rem;
  81. width: 100%;
  82. path {
  83. fill: var(--section-bg);
  84. }
  85. .wave-1 {
  86. animation: move-forever1 30s linear infinite;
  87. animation-delay: -2s;
  88. }
  89. .wave-2 {
  90. animation: move-forever2 24s linear infinite;
  91. opacity: .5;
  92. animation-delay: -2s;
  93. }
  94. .wave-3 {
  95. animation: move-forever3 18s linear infinite;
  96. opacity: .3;
  97. animation-delay: -2s;
  98. }
  99. }
  100. .section-divider-auto {
  101. height: auto;
  102. }