home.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .home {
  2. height: 100vh;
  3. padding: 0;
  4. margin: 0;
  5. color: get-light-color('text-over-accent-color');
  6. overflow: hidden;
  7. .background {
  8. height: 100%;
  9. width: 100%;
  10. padding: 0;
  11. margin: 0;
  12. background-attachment: fixed;
  13. background-position: center;
  14. transform: scale(1.1);
  15. filter: blur(3px);
  16. background-size: cover;
  17. }
  18. .arrow-center {
  19. display: flex;
  20. justify-content: center;
  21. }
  22. /*
  23. Resolves https://github.com/hugo-toha/toha/issues/70
  24. fixed attached images use the whole <body> size. On mobile this can get really
  25. tall which blows your image out. Setting the attachment back to scroll allows
  26. your cover image to stretch within its own container
  27. */
  28. @supports (-webkit-touch-callout: none) {
  29. .background {
  30. background-attachment: scroll;
  31. }
  32. }
  33. .content {
  34. position: relative;
  35. top: -65%;
  36. height: 60%;
  37. }
  38. img {
  39. width: 148px;
  40. height: 148px;
  41. background-color: get-light-color('bg-secondary');
  42. padding: 5px;
  43. margin-bottom: 10px;
  44. }
  45. .greeting,
  46. .greeting-subtitle {
  47. color: get-light-color('text-over-accent-color');
  48. }
  49. .typing-carousel {
  50. font-size: 14pt;
  51. color: get-light-color('text-over-accent-color');
  52. }
  53. #typing-carousel-data {
  54. display: none;
  55. }
  56. .arrow {
  57. position: absolute;
  58. color: get-light-color('text-over-accent-color');
  59. font-size: 1.5rem;
  60. bottom: 0;
  61. }
  62. .bounce {
  63. animation: bounce 2s infinite;
  64. }
  65. @keyframes bounce {
  66. 0%,
  67. 20%,
  68. 50%,
  69. 80%,
  70. 100% {
  71. transform: translateY(0);
  72. }
  73. 40% {
  74. transform: translateY(-30px);
  75. }
  76. 60% {
  77. transform: translateY(-15px);
  78. }
  79. }
  80. @include media('<=small') {
  81. .content {
  82. position: relative;
  83. top: -75%;
  84. height: 65%;
  85. }
  86. img {
  87. width: 140px;
  88. max-width: 50%;
  89. height: auto;
  90. }
  91. .greeting {
  92. font-size: 24pt;
  93. }
  94. }
  95. }
  96. html[data-theme='dark'] {
  97. .home {
  98. color: get-dark-color('text-over-accent-color');
  99. img {
  100. background-color: get-dark-color('bg-secondary');
  101. }
  102. .greeting,
  103. .greeting-subtitle {
  104. color: get-dark-color('text-over-accent-color');
  105. }
  106. .typing-carousel {
  107. color: get-dark-color('text-over-accent-color');
  108. }
  109. .arrow {
  110. color: get-dark-color('text-over-accent-color');
  111. }
  112. }
  113. }