_header.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. .header-landing {
  2. position: relative;
  3. background: $primary-color linear-gradient(to bottom left, $primary-color, $primary-color-light);
  4. text-align: center;
  5. color: $white;
  6. padding-bottom: 200px;
  7. }
  8. .header-nav {
  9. float: right;
  10. width: 100%;
  11. margin: 0;
  12. padding: 25px 40px 0;
  13. font-weight: 400;
  14. li {
  15. list-style: none;
  16. float: right;
  17. margin-right: 30px;
  18. &:first-child {
  19. float: left;
  20. }
  21. &:nth-child(2) {
  22. margin-right: 0;
  23. }
  24. a {
  25. display: block;
  26. text-decoration: none;
  27. color: $primary-color-dark;
  28. font-size: 16px;
  29. padding: 10px 0;
  30. transition: color $transition-duration;
  31. &:hover {
  32. color: $white;
  33. }
  34. &.view-on-github {
  35. transform: translateY(-11px);
  36. svg {
  37. width: 25px;
  38. height: 25px;
  39. fill: currentColor;
  40. margin-right: 10px;
  41. vertical-align: baseline;
  42. transform: translateY(5px);
  43. }
  44. .star {
  45. font-size: 18px;
  46. }
  47. }
  48. }
  49. }
  50. }
  51. .header-logo-container {
  52. margin: 0 auto;
  53. padding-top: calc(80px + 4%);
  54. text-align: center;
  55. .header-logo-h1 {
  56. position: relative;
  57. margin: 0 auto;
  58. width: 1000px;
  59. max-width: 100%;
  60. }
  61. .header-logo {
  62. margin-right: -3%;
  63. width: 1000px;
  64. max-width: 80%;
  65. }
  66. }
  67. .header-subtitle {
  68. font-size: 28px;
  69. padding: 0 20px;
  70. }
  71. .header-description {
  72. font-size: 18px;
  73. line-height: 1.6;
  74. padding: 0 20px;
  75. font-weight: 300;
  76. }
  77. .header-buttons {
  78. margin: 50px 0;
  79. }
  80. .header-install {
  81. font-size: 18px;
  82. line-height: 1.6;
  83. font-weight: 300;
  84. }
  85. #demonstration {
  86. padding-bottom: 0;
  87. margin-bottom: 80px;
  88. .trumbowyg-editor {
  89. height: 300px !important;
  90. }
  91. .trumbowyg-editor,
  92. .trumbowyg-textarea {
  93. padding: 25px;
  94. }
  95. }
  96. #demonstration .trumbowyg:not(.trumbowyg-fullscreen),
  97. #trumbowyg-demo:not(.trumbowyg-textarea) {
  98. display: block;
  99. margin: -150px auto 0;
  100. width: 100%;
  101. height: 340px;
  102. max-width: 900px;
  103. background: $white;
  104. box-shadow: 0 0 27px rgba(0, 0, 0, 0.03);
  105. resize: none;
  106. }
  107. #demonstration .trumbowyg {
  108. font-size: 16px;
  109. line-height: 2;
  110. p {
  111. margin: 0 0 32px;
  112. }
  113. button {
  114. font-weight: 400;
  115. }
  116. }
  117. #trumbowyg-demo:not(.trumbowyg-textarea) {
  118. color: transparent;
  119. overflow: hidden;
  120. border: 1px solid #dbdfe0;
  121. }
  122. .demo-switcher {
  123. position: absolute;
  124. bottom: -20px;
  125. left: 50%;
  126. transform: translateX(-50%);
  127. z-index: 10;
  128. margin: 0 auto;
  129. width: 250px;
  130. height: 40px;
  131. border-radius: 50px;
  132. border: 1px solid #dbdfe0;
  133. background: $white;
  134. .button {
  135. display: block;
  136. float: left;
  137. padding: 10px;
  138. margin: 0;
  139. border: none;
  140. width: 50%;
  141. background: none;
  142. color: $text-color;
  143. font-weight: 300;
  144. transition: color $transition-duration, text-indent $transition-duration;
  145. &:first-child {
  146. text-indent: 5px;
  147. }
  148. &:last-child {
  149. text-indent: -5px;
  150. }
  151. &.current {
  152. text-indent: 0;
  153. color: $white;
  154. }
  155. }
  156. &::after {
  157. content: "";
  158. display: block;
  159. width: 50%;
  160. height: 100%;
  161. border-radius: 50px;
  162. background: $primary-color;
  163. transition: margin-left $transition-duration;
  164. }
  165. &.current-plugins {
  166. &::after {
  167. margin-left: 50%;
  168. }
  169. }
  170. }
  171. .header-logo-animation {
  172. position: absolute;
  173. overflow: hidden;
  174. top: -30px;
  175. left: 91.5%;
  176. width: 150px;
  177. height: 150px;
  178. svg {
  179. position: absolute;
  180. top: 0;
  181. left: 0;
  182. fill: $white;
  183. height: 25px;
  184. width: 25px;
  185. }
  186. .header-logo-animation-strong {
  187. animation: headerLogoStrong 1s linear infinite;
  188. animation-delay: -0.85s;
  189. }
  190. .header-logo-animation-p {
  191. animation: headerLogoP 1s linear infinite;
  192. animation-delay: -0.2s;
  193. }
  194. .header-logo-animation-link {
  195. animation: headerLogoLink 1s linear infinite;
  196. animation-delay: -0.4s;
  197. }
  198. .header-logo-animation-blockquote {
  199. animation: headerLogoBlockquote 1s linear infinite;
  200. animation-delay: -0.6s;
  201. }
  202. .header-logo-animation-view-html {
  203. animation: headerLogoViewHtml 1s linear infinite;
  204. animation-delay: -0.3s;
  205. }
  206. }
  207. @keyframes headerLogoStrong {
  208. 0% {
  209. opacity: 1;
  210. transform: translateX(-30px) translateY(70px);
  211. }
  212. 20% {
  213. transform: translateX(15px) translateY(80px);
  214. }
  215. 30% {
  216. transform: translateX(35px) translateY(75px);
  217. }
  218. 40% {
  219. transform: translateX(40px) translateY(60px);
  220. }
  221. 50% {
  222. opacity: 1;
  223. transform: translateX(35px) translateY(40px);
  224. }
  225. 100% {
  226. opacity: 0;
  227. transform: translateX(10px) translateY(0) scale(0.5);
  228. }
  229. }
  230. @keyframes headerLogoP {
  231. 0% {
  232. opacity: 1;
  233. transform: translateX(-30px) translateY(60px);
  234. }
  235. 20% {
  236. transform: translateX(10px) translateY(60px);
  237. }
  238. 30% {
  239. transform: translateX(20px) translateY(60px);
  240. }
  241. 40% {
  242. transform: translateX(25px) translateY(55px);
  243. }
  244. 50% {
  245. opacity: 1;
  246. transform: translateX(32px) translateY(40px);
  247. }
  248. 90%,
  249. 100% {
  250. opacity: 0;
  251. transform: translateX(35px) translateY(20px) scale(0.5);
  252. }
  253. }
  254. @keyframes headerLogoLink {
  255. 0% {
  256. opacity: 1;
  257. transform: translateX(-30px) translateY(90px);
  258. }
  259. 20% {
  260. transform: translateX(15px) translateY(100px);
  261. }
  262. 30% {
  263. transform: translateX(25px) translateY(95px);
  264. }
  265. 40% {
  266. transform: translateX(30px) translateY(80px);
  267. }
  268. 50% {
  269. opacity: 1;
  270. transform: translateX(30px) translateY(70px);
  271. }
  272. 90%,
  273. 100% {
  274. opacity: 0;
  275. transform: translateX(10px) translateY(0) scale(0.5);
  276. }
  277. }
  278. @keyframes headerLogoBlockquote {
  279. 0% {
  280. opacity: 1;
  281. transform: translateX(-30px) translateY(55px);
  282. }
  283. 30% {
  284. transform: translateX(5px) translateY(50px);
  285. }
  286. 40% {
  287. transform: translateX(10px) translateY(45px);
  288. }
  289. 50% {
  290. opacity: 1;
  291. transform: translateX(13px) translateY(40px);
  292. }
  293. 100% {
  294. opacity: 0;
  295. transform: translateX(10px) translateY(10px) scale(0.5);
  296. }
  297. }
  298. @keyframes headerLogoViewHtml {
  299. 0% {
  300. opacity: 1;
  301. transform: translateX(-30px) translateY(90px);
  302. }
  303. 40% {
  304. transform: translateX(30px) translateY(105px);
  305. }
  306. 50% {
  307. transform: translateX(40px) translateY(100px);
  308. }
  309. 60% {
  310. opacity: 1;
  311. transform: translateX(50px) translateY(90px);
  312. }
  313. 100% {
  314. opacity: 0;
  315. transform: translateX(70px) translateY(70px) scale(0.5);
  316. }
  317. }