index.sass 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. .intro-content
  2. margin-left: auto
  3. margin-right: auto
  4. max-width: 640px
  5. .intro-title
  6. font-weight: $weight-normal
  7. line-height: 1.375
  8. strong
  9. font-weight: $weight-semibold
  10. .intro-ghbtns
  11. height: 30px
  12. // margin-bottom: 24px
  13. margin-bottom: 46px
  14. .intro-npm
  15. background: $black-ter
  16. border-radius: $radius-large
  17. color: $white
  18. display: flex
  19. font-size: 15px
  20. justify-content: space-between
  21. line-height: 20px
  22. padding: 15px 25px
  23. position: relative
  24. code
  25. font-size: inherit
  26. -moz-osx-font-smoothing: grayscale
  27. -webkit-font-smoothing: antialiased
  28. .intro-npm-copy
  29. border-radius: $radius
  30. color: $yellow
  31. cursor: pointer
  32. margin: -2px -7px -3px
  33. padding: 2px 7px 3px
  34. &:hover
  35. background-color: $yellow
  36. color: $black-ter
  37. &.is-success,
  38. &.is-error
  39. color: $white
  40. pointer-events: none
  41. text-decoration: none
  42. &.is-success
  43. background-color: $green
  44. &.is-error
  45. background-color: $red
  46. \::-moz-selection
  47. background: $yellow
  48. color: $black-ter
  49. \::selection
  50. background: $yellow
  51. color: $black-ter
  52. .intro-buttons
  53. margin-top: 1.5rem
  54. .button
  55. padding-left: 1.375em
  56. padding-right: 1.375em
  57. .intro-video
  58. background-color: $white
  59. margin-left: auto
  60. margin-right: auto
  61. max-width: 640px
  62. position: relative
  63. &.has-loaded
  64. .intro-spinner
  65. display: none
  66. .intro-iframe
  67. opacity: 1
  68. @keyframes introSpinner
  69. from
  70. opacity: 0
  71. transform: scale(1.14)
  72. to
  73. opacity: 1
  74. transform: scale(1)
  75. .intro-spinner,
  76. .intro-shadow
  77. animation-duration: 500ms
  78. animation-easing-function: ease-out
  79. animation-fill-mode: both
  80. transform-origin: center
  81. .intro-spinner
  82. +overlay
  83. animation-name: introSpinner
  84. &::before
  85. +loader
  86. border-bottom-color: $primary
  87. border-left-color: $primary
  88. height: 1.5em
  89. left: calc(50% - 0.75em)
  90. position: absolute
  91. top: calc(50% - 0.75em)
  92. width: 1.5em
  93. @keyframes introShadow
  94. from
  95. opacity: 0
  96. transform: scale(0.86)
  97. to
  98. opacity: 1
  99. transform: scale(1)
  100. .intro-shadow
  101. +overlay
  102. background-color: #776e70
  103. background-position: center center
  104. background-repeat: no-repeat
  105. background-size: cover
  106. box-shadow: 0 1.5rem 3rem rgba(#000, 0.2)
  107. animation-name: introShadow
  108. .intro-iframe
  109. opacity: 0
  110. // padding-top: 52.8125%
  111. padding-top: 56.25%
  112. position: relative
  113. transition-duration: 500ms
  114. transition-property: opacity
  115. iframe
  116. height: 100%
  117. left: 0
  118. position: absolute
  119. top: 0
  120. width: 100%
  121. .intro-author
  122. color: $text-light
  123. font-size: $size-small
  124. margin-top: 1rem
  125. text-align: center
  126. a
  127. color: $text-strong
  128. &:hover
  129. text-decoration: underline
  130. span
  131. opacity: 0.5
  132. transition: 100ms opacity
  133. &:hover
  134. opacity: 1
  135. +mobile
  136. .intro-buttons
  137. .button
  138. display: flex
  139. width: 100%
  140. &.is-light
  141. margin-top: 0.5rem
  142. +tablet
  143. .intro-title
  144. font-size: 2.25rem
  145. .intro-buttons
  146. align-items: center
  147. display: flex
  148. justify-content: space-between
  149. +touch
  150. .intro-column.is-video,
  151. .intro-carbon
  152. margin-top: 3rem
  153. +desktop
  154. .intro-columns
  155. display: flex
  156. justify-content: center
  157. .intro-column
  158. width: calc(50% - 1.5rem)
  159. &.is-content
  160. margin-right: 1.5rem
  161. &.is-video
  162. margin-left: 1.5rem
  163. .intro-content
  164. max-width: 440px
  165. .intro-title
  166. margin-top: -11px
  167. &:not(:last-child)
  168. margin-bottom: 20px
  169. .intro-carbon
  170. margin-top: 3rem
  171. #grid
  172. .notification
  173. padding-left: 0
  174. padding-right: 0
  175. #message
  176. display: none
  177. #markup
  178. .highlight pre
  179. max-height: none