home.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. .home {
  2. height: 100vh;
  3. padding: 0;
  4. margin: 0;
  5. color: #f9fafc;
  6. overflow: hidden;
  7. }
  8. .background {
  9. height: 100%;
  10. width: 100%;
  11. padding: 0;
  12. margin: 0;
  13. background-attachment: fixed;
  14. background-position: center;
  15. transform: scale(1.1);
  16. filter: blur(3px);
  17. background-size: cover;
  18. }
  19. /*
  20. Resolves https://github.com/hugo-toha/toha/issues/70
  21. fixed attached images use the whole <body> size. On mobile this can get really
  22. tall which blows your image out. Setting the attachment back to scroll allows
  23. your cover image to stretch within its own container
  24. */
  25. @supports (-webkit-touch-callout: none) {
  26. .background {
  27. background-attachment: scroll;
  28. }
  29. }
  30. .content {
  31. position: relative;
  32. top: -65%;
  33. height: 60%;
  34. }
  35. .home img {
  36. width: 148px;
  37. height: 148px;
  38. background-color: #e7e7ef;
  39. padding: 5px;
  40. margin-bottom: 10px;
  41. }
  42. .home .greeting, .home .greeting-subtitle {
  43. color: #f9fafc;
  44. }
  45. .home .typing-carousel {
  46. font-size: 14pt;
  47. color: #f0f0f0;
  48. }
  49. #typing-carousel-data {
  50. display: none;
  51. }
  52. .arrow {
  53. position: absolute;
  54. color: #f9fafc;
  55. font-size: 1.5rem;
  56. bottom: 0;
  57. }
  58. .bounce {
  59. -webkit-animation: bounce 2s infinite;
  60. animation: bounce 2s infinite;
  61. }
  62. @-webkit-keyframes bounce {
  63. 0%,
  64. 20%,
  65. 50%,
  66. 80%,
  67. 100% {
  68. transform: translateY(0);
  69. }
  70. 40% {
  71. transform: translateY(-30px);
  72. }
  73. 60% {
  74. transform: translateY(-15px);
  75. }
  76. }
  77. @keyframes bounce {
  78. 0%,
  79. 20%,
  80. 50%,
  81. 80%,
  82. 100% {
  83. transform: translateY(0);
  84. }
  85. 40% {
  86. transform: translateY(-30px);
  87. }
  88. 60% {
  89. transform: translateY(-15px);
  90. }
  91. }
  92. /* ============= Device specific fixes ======= */
  93. /* Large screens such as TV */
  94. @media only screen and (min-width: 1824px) {
  95. }
  96. /* Extra large devices (large desktops, 1200px and up) */
  97. @media (max-width: 1400px) {
  98. }
  99. @media (max-width: 1200px) {
  100. }
  101. /* IPad Pro */
  102. @media (max-width: 1024px) {
  103. }
  104. /* Large devices (desktops, 992px and up) */
  105. @media (max-width: 992px) {
  106. }
  107. /* Medium devices (tablets, 768px and up) */
  108. @media only screen and (max-width: 768px) {
  109. }
  110. /* Small devices (landscape phones, 576px and up) */
  111. @media only screen and (max-width: 576px) {
  112. .content {
  113. position: relative;
  114. top: -75%;
  115. height: 65%;
  116. }
  117. .home img {
  118. width: 140px;
  119. max-width: 50%;
  120. height: auto;
  121. }
  122. .home .greeting {
  123. font-size: 24pt;
  124. }
  125. }
  126. /* iPhoneX, iPhone 6,7,8 */
  127. @media only screen and (max-width: 375px) {
  128. }
  129. /* Galaxy S5, Moto G4 */
  130. @media only screen and (max-width: 360px) {
  131. }
  132. /* iPhone 5 or before */
  133. @media only screen and (max-width: 320px) {
  134. }