index.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. body {
  2. position: relative;
  3. padding-top: 50px;
  4. padding-bottom: 50px;
  5. }
  6. a {
  7. -webkit-transition: all .2s ease-in-out;
  8. -moz-transition: all .2s ease-in-out;
  9. transition: all .2s ease-in-out;
  10. }
  11. section {
  12. padding-top: 20px;
  13. }
  14. /* Base class
  15. ------------------------- */
  16. .banner {
  17. position: relative;
  18. padding: 60px 0 80px;
  19. font-size: 16px;
  20. color: #fff;
  21. text-align: center;
  22. text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075);
  23. background: #020031; /* Old browsers */
  24. background: -moz-linear-gradient(45deg, #020031 0%, #6d3353 100%);
  25. background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353));
  26. background: -webkit-linear-gradient(45deg, #020031 0%,#6d3353 100%);
  27. background: -o-linear-gradient(45deg, #020031 0%,#6d3353 100%);
  28. background: -ms-linear-gradient(45deg, #020031 0%,#6d3353 100%);
  29. background: linear-gradient(45deg, #020031 0%,#6d3353 100%);
  30. -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
  31. -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
  32. box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
  33. .container {
  34. position: relative;
  35. z-index: 2;
  36. }
  37. h1 {
  38. font-size: 82px;
  39. letter-spacing: -2px;
  40. line-height: 1;
  41. }
  42. p {
  43. font-size: 26px;
  44. font-weight: 200;
  45. margin-bottom: 30px;
  46. }
  47. a {
  48. color: #fff;
  49. color: rgba(255,255,255,.5);
  50. &:hover {
  51. color: #fff;
  52. text-shadow: 0 0 10px rgba(255,255,255,.25);
  53. }
  54. }
  55. .btn {
  56. padding: 19px 24px;
  57. font-size: 24px;
  58. font-weight: 200;
  59. color: #fff; /* redeclare to override the `.banner a` */
  60. border: 0;
  61. -webkit-border-radius: 6px;
  62. -moz-border-radius: 6px;
  63. border-radius: 6px;
  64. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  65. -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  66. box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  67. -webkit-transition: none;
  68. -moz-transition: none;
  69. transition: none;
  70. &:hover {
  71. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  72. -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  73. box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  74. }
  75. &:active {
  76. -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
  77. -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
  78. box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
  79. }
  80. }
  81. .links {
  82. margin: 0;
  83. list-style: none;
  84. li {
  85. display: inline;
  86. padding: 0 10px;
  87. color: rgba(255,255,255,.25);
  88. }
  89. }
  90. }
  91. #github {
  92. display: block;
  93. position: fixed;
  94. width: 150px;
  95. height: 150px;
  96. top: 0;
  97. right: 0;
  98. z-index: 1050;
  99. }
  100. code,
  101. pre {
  102. font-size: 13px;
  103. }
  104. @media (min-width: 1200px) {
  105. .banner {
  106. h1 {
  107. font-size: 90px;
  108. }
  109. p {
  110. font-size: 30px;
  111. }
  112. }
  113. }
  114. @media (min-width: 768px) and (max-width: 979px) {
  115. .banner {
  116. padding: 10px 0 30px;
  117. h1 {
  118. font-size: 76px;
  119. }
  120. p,
  121. .btn {
  122. font-size: 20px;
  123. }
  124. }
  125. }
  126. @media (max-width: 767px) {
  127. body {
  128. padding-top: 0;
  129. }
  130. .banner {
  131. padding: 70px 20px 20px 20px;
  132. margin-top: -20px; /* Offset bottom margin on .navbar */
  133. margin-right: -20px;
  134. margin-left: -20px;
  135. h1 {
  136. font-size: 60px;
  137. }
  138. p,
  139. .btn {
  140. font-size: 20px;
  141. }
  142. }
  143. #github {
  144. display: none !important;
  145. }
  146. }
  147. @media (max-width: 480px) {
  148. body {
  149. padding-top: 0;
  150. }
  151. h2 small {
  152. display: block;
  153. }
  154. .banner {
  155. h1 {
  156. font-size: 45px;
  157. }
  158. p,
  159. .btn {
  160. font-size: 18px;
  161. }
  162. .btn {
  163. display: block;
  164. margin: 0 auto;
  165. }
  166. }
  167. table code {
  168. white-space: normal;
  169. word-wrap: break-word;
  170. word-break: break-all;
  171. }
  172. }