_index.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. .page-index .MainMenu {
  2. text-align: center;
  3. li {
  4. margin: 0.3em 0;
  5. @media #{$screen-medium} {
  6. display: inline-block;
  7. position: relative;
  8. line-height: 40px;
  9. margin: 0;
  10. }
  11. &:last-child .nav-link {
  12. margin-right: 0;
  13. }
  14. }
  15. }
  16. .page-index .MainLogo {
  17. display: none;
  18. }
  19. .page-index .MainMenu-search {
  20. display: none;
  21. }
  22. .IndexHero {
  23. text-align: center;
  24. position: relative;
  25. max-width: 950px;
  26. margin: auto;
  27. padding: 0 20px;
  28. }
  29. .IndexHero-logo {
  30. display: inline-block;
  31. vertical-align: middle;
  32. max-width: 80px;
  33. @media #{$screen-medium} {
  34. max-width: 130px;
  35. }
  36. }
  37. .IndexHero-title {
  38. display: inline-block;
  39. vertical-align: middle;
  40. padding-left: 15px;
  41. padding-top: 10px;
  42. font-family: $fontFamily-logo;
  43. font-weight: 400;
  44. font-size: 2.5em;
  45. margin: 0;
  46. margin-bottom: 20px;
  47. @media #{$screen-medium} {
  48. padding-left: 20px;
  49. font-size: 3.5em;
  50. }
  51. }
  52. .IndexHero-tagline {
  53. font-size: $fontSize-m;
  54. line-height: 1.3;
  55. font-weight: normal;
  56. text-align: center;
  57. margin: 0 auto;
  58. margin-top: 10px;
  59. margin-bottom: 40px;
  60. color: $color-light;
  61. @media #{$screen-medium} {
  62. font-size: $fontSize-l;
  63. line-height: 1.4;
  64. }
  65. }
  66. .IndexHero-taglinePart {
  67. transition: all ease-in-out 0.6s;
  68. opacity: 0;
  69. &.is-visible { opacity: 1; }
  70. }
  71. .IndexHero-taglineList {
  72. display: none;
  73. }
  74. .IndexAbout {
  75. max-width: 760px;
  76. margin: 3em auto;
  77. padding: 0 20px;
  78. font-size: 17px;
  79. line-height: 1.3;
  80. text-align: center;
  81. @media #{$screen-medium} {
  82. text-align: left;
  83. font-size: 19px;
  84. line-height: 1.5;
  85. }
  86. a {
  87. font-weight: bold;
  88. color: rgba($color-black, 0.8);
  89. &:hover {
  90. color: $color-black;
  91. }
  92. }
  93. }
  94. .IndexAbout-item {
  95. position: relative;
  96. margin-bottom: 80px;
  97. }
  98. .IndexAbout-item:first-child {
  99. @media #{$screen-medium} {
  100. padding-left: 130px;
  101. .IndexAbout-icon {
  102. top: 20px;
  103. left: 0;
  104. }
  105. }
  106. }
  107. .IndexAbout-item:nth-child(2) {
  108. @media #{$screen-medium} {
  109. padding-right: 150px;
  110. .IndexAbout-icon {
  111. top: 20px;
  112. right: 0;
  113. }
  114. }
  115. }
  116. .IndexAbout-icon {
  117. max-width: 90px;
  118. @media #{$screen-medium} {
  119. position: absolute;
  120. }
  121. }
  122. .IndexAbout-item h2 {
  123. margin-bottom: 0.1em;
  124. }
  125. .IndexAbout-item p {
  126. margin-top: 0;
  127. }
  128. .GetStartedBtn {
  129. font-size: 1.2em;
  130. text-decoration: none;
  131. text-transform: uppercase;
  132. letter-spacing: 1px;
  133. display: inline-block;
  134. padding: 12px 40px;
  135. border-radius: 25px;
  136. transition: all .3s ease;
  137. background-color: $color-primary;
  138. color: $color-white;
  139. margin-top: 1.2em;
  140. margin-bottom: 2em;
  141. &:hover { @include zoom; }
  142. }
  143. .TryMe-line {
  144. font-size: 12px;
  145. font-weight: bold;
  146. text-transform: uppercase;
  147. letter-spacing: 1px;
  148. text-align: center;
  149. margin: 0;
  150. padding: 0;
  151. position: relative;
  152. top: -20px;
  153. }
  154. .TryMe-btn {
  155. @include reset-button();
  156. font-size: 12px;
  157. display: inline-block;
  158. padding: 6px 10px;
  159. border-radius: 25px;
  160. transition: all .3s ease;
  161. background-color: $color-primary;
  162. color: $color-white;
  163. cursor: pointer;
  164. margin-left: 5px;
  165. &:hover { background-color: darken($color-primary, 5%); }
  166. }
  167. .IndexExample {
  168. text-align: center;
  169. max-width: 1200px;
  170. margin: 0 1em 3em;
  171. @media #{$screen-medium} {
  172. margin: 0 auto 3em;
  173. }
  174. code, pre {
  175. padding: 0;
  176. margin: 0;
  177. background-color: transparent;
  178. white-space: pre;
  179. font-family: 'Roboto Mono', Monaco, courier, monospace;
  180. font-size: 12px;
  181. height: auto;
  182. line-height: 18px;
  183. }
  184. figure.highlight {
  185. margin: 0;
  186. box-shadow: none;
  187. background-color: transparent;
  188. }
  189. .sign {
  190. display: inline-block;
  191. vertical-align: middle;
  192. height: 10em;
  193. line-height: 9em;
  194. padding: 0 .5em;
  195. font-weight: 600;
  196. color: $color-light;
  197. }
  198. }
  199. .IndexSection-title {
  200. font-size: 25px;
  201. margin-bottom: 0.7em;
  202. }
  203. .IndexExample-block {
  204. // padding: 7px;
  205. text-align: left;
  206. // background-color: $color-codebg;
  207. // border-radius: $size-radius;
  208. overflow: hidden;
  209. max-width: 500px;
  210. margin: auto;
  211. font-size: 1em;
  212. @media #{$screen-medium} {
  213. max-width: 100%;
  214. width: 47%;
  215. display: inline-block;
  216. vertical-align: middle;
  217. // height: 250px;
  218. }
  219. }
  220. .IndexExample-video {
  221. max-width: 100%;
  222. }
  223. .IndexExample-block img {
  224. margin: auto;
  225. }
  226. .IndexActivity {
  227. max-width: 760px;
  228. margin: 3em auto;
  229. padding: 0 20px;
  230. h2 {
  231. text-align: center;
  232. }
  233. }
  234. .IndexDesignGoals {
  235. padding: 4em 1em;
  236. background-color: $color-primary;
  237. color: $color-white;
  238. overflow: hidden;
  239. @media #{$screen-medium} {
  240. padding: 4em 0;
  241. }
  242. h2 {
  243. margin-top: 0;
  244. color: $color-white;
  245. font-size: 1.5em;
  246. text-align: center;
  247. }
  248. ul {
  249. line-height: 1.8em;
  250. font-size: 1.15em;
  251. max-width: 640px;
  252. margin: 0 auto;
  253. padding: 0;
  254. list-style-type: none;
  255. }
  256. li {
  257. background: svg-load('check.svg', fill=#{$color-white}) left 5px no-repeat;
  258. background-size: 24px 24px;
  259. padding-left: 40px;
  260. margin-bottom: 0.5em;
  261. }
  262. }
  263. .IndexFooter {
  264. text-align: center;
  265. color: $color-white;
  266. padding: 4em 1em;
  267. background-color: darken($color-primary, 15%);
  268. @media #{$screen-medium} {
  269. padding: 4em 0;
  270. }
  271. a {
  272. color: $color-white;
  273. text-decoration: underline;
  274. }
  275. p { margin: .3em 0; }
  276. }