No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_section.scss 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //
  2. // Sections
  3. //
  4. // Nucleo icons for presentation purpose
  5. .section-nucleo-icons {
  6. --icon-size: 5rem;
  7. --icon-sm-size: 3.75rem;
  8. --gutter: 7rem;
  9. .icons-container {
  10. position: relative;
  11. max-width: 100%;
  12. height: 360px;
  13. margin: 0 auto;
  14. z-index: 1;
  15. i {
  16. position: absolute;
  17. display: inline-flex;
  18. align-items: center;
  19. justify-content: center;
  20. border-radius: 50%;
  21. background: $white;
  22. z-index: 1;
  23. transform: translate(-50%, -50%);
  24. @include box-shadow($box-shadow);
  25. transition: all .2s cubic-bezier(.25,.65,.9,.75);
  26. &.icon {
  27. width: var(--icon-size);
  28. height: var(--icon-size);
  29. font-size: 1.7em;
  30. }
  31. &.icon-sm {
  32. width: var(--icon-sm-size);
  33. height: var(--icon-sm-size);
  34. font-size: 1.5em;
  35. }
  36. &:nth-child(1) {
  37. font-size: 42px;
  38. color: theme-color("warning");
  39. z-index: 2;
  40. }
  41. }
  42. &:not(.on-screen) {
  43. i {
  44. transform: translate(-50%, -50%);
  45. left: 50%;
  46. top: 50%;
  47. &:not(:nth-child(1)) {
  48. opacity: 0;
  49. }
  50. }
  51. }
  52. &.on-screen {
  53. i {
  54. opacity: 1;
  55. &:nth-child(1) {
  56. left: 50%;
  57. top: 50%;
  58. font-size: 42px;
  59. color: theme-color("warning");
  60. }
  61. &:nth-child(2) {
  62. left: calc(50% + (var(--gutter) * 1.7));
  63. top: 50%;
  64. }
  65. &:nth-child(3) {
  66. left: calc(50% + var(--gutter));
  67. top: calc(50% + var(--gutter));
  68. }
  69. &:nth-child(4) {
  70. left: calc(50% + var(--gutter));
  71. top: calc(50% - var(--gutter));
  72. }
  73. &:nth-child(5) {
  74. left: calc(50% + (var(--gutter) * 4));
  75. top: 50%;
  76. }
  77. &:nth-child(6) {
  78. left: calc(50% + (var(--gutter) * 2.7));
  79. top: calc(50% + (var(--gutter) * 1.5));
  80. }
  81. &:nth-child(7) {
  82. left: calc(50% + (var(--gutter) * 2.7));
  83. top: calc(50% - (var(--gutter) * 1.5));
  84. }
  85. &:nth-child(8) {
  86. left: calc(50% - (var(--gutter) * 1.7));
  87. top: 50%;
  88. }
  89. &:nth-child(9) {
  90. left: calc(50% - var(--gutter));
  91. top: calc(50% + var(--gutter));
  92. }
  93. &:nth-child(10) {
  94. left: calc(50% - var(--gutter));
  95. top: calc(50% - var(--gutter));
  96. }
  97. &:nth-child(11) {
  98. left: calc(50% - (var(--gutter) * 4));
  99. top: 50%;
  100. }
  101. &:nth-child(12) {
  102. left: calc(50% - (var(--gutter) * 2.7));
  103. top: calc(50% + (var(--gutter) * 1.5));
  104. }
  105. &:nth-child(13) {
  106. left: calc(50% - (var(--gutter) * 2.7));
  107. top: calc(50% - (var(--gutter) * 1.5));
  108. }
  109. }
  110. }
  111. }
  112. }