/scss/main.scss

https://github.com/ajanthanm/Buttons · Sass · 407 lines · 324 code · 75 blank · 8 comment · 0 complexity · 8864803c55c5e2056b2f02884d302ae7 MD5 · raw file

  1. @import 'compass';
  2. $background: #fcfcfc;
  3. $border: #EEE;
  4. $highlight: #d30d15;
  5. $font: 'Cherry Swash', sans-serif;
  6. //TITLE ANIMATIONS
  7. @-webkit-keyframes title,
  8. {
  9. from {
  10. color: #EEE;
  11. margin-top: -220px;
  12. }
  13. to {
  14. color: #333;
  15. margin-top: 0px;
  16. }
  17. }
  18. @mixin title {
  19. -webkit-animation-name: title;
  20. -khtml-animation-name: title;
  21. -moz-animation-name: title;
  22. -ms-animation-name: title;
  23. -o-animation-name: title;
  24. animation-name: title;
  25. -webkit-animation-duration: 2.5s;
  26. -webkit-animation-iteration-count: 1;
  27. }
  28. .clear {clear: both;}
  29. body {
  30. padding: 60px 0px 0px 0px;
  31. margin: 0px;
  32. font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  33. font-weight: 300;
  34. }
  35. // NAVIGATION /////////////////////////
  36. nav {
  37. @include opacity(.9);
  38. background: #FFF;
  39. padding: 0px;
  40. position: fixed;
  41. top: 0px;
  42. left: 0px;
  43. right: 0px;
  44. z-index: 100;
  45. ul {
  46. width: 900px;
  47. margin: 0px auto;
  48. padding: 0px;
  49. list-style-type: none;
  50. li {
  51. @include transition(border .2s);
  52. float: left;
  53. margin-bottom: -3px;
  54. &.selected {
  55. border-bottom: 10px solid $highlight;
  56. }
  57. &.home {
  58. padding: 10px;
  59. a {
  60. @include border-radius(100px);
  61. display: block;
  62. line-height: 40px;
  63. width: 40px;
  64. background: $highlight;
  65. color: #FFF;
  66. font-family: $font;
  67. text-align: center;
  68. font-size: 24px;
  69. padding: 0px;
  70. }
  71. }
  72. }
  73. a {
  74. float: left;
  75. text-decoration: none;
  76. padding: 20px 15px;
  77. color: #999;
  78. text-transform: uppercase;
  79. font-size: 14px;
  80. }
  81. }
  82. }
  83. // BILLBOARD /////////////////////////
  84. header {
  85. background: $background;
  86. padding: 40px 0px 100px 0px;
  87. border-bottom: 1px solid $border;
  88. position: relative;
  89. margin-bottom: 100px;
  90. position: relative;
  91. hgroup {
  92. text-align: center;
  93. font-family: $font;
  94. h1 {
  95. @include title;
  96. font-size: 150px;
  97. font-weight: 700;
  98. margin: 0px 10px 0px 10px;
  99. line-height: 150px;
  100. color: #333;
  101. text-shadow: 0px 1px 0px #FFF;
  102. }
  103. h2 {
  104. color: #999;
  105. font-weight: normal;
  106. margin: 0px 10px 20px 10px;
  107. text-shadow: 0px 1px 0px #FFF;
  108. }
  109. }
  110. .social-buttons {
  111. position: absolute;
  112. bottom: 20px;
  113. left: 20px;
  114. .github-button {
  115. min-width: 90px;
  116. }
  117. }
  118. .button-download {
  119. position: absolute;
  120. bottom: -74px;
  121. left: 50%;
  122. margin-left: -74px;
  123. z-index: 10;
  124. .button {
  125. //color: #2c9adb;
  126. }
  127. }
  128. @media only screen and (max-width: 480px) {
  129. padding: 70px 0px 80px 0px;
  130. hgroup {
  131. h1 {
  132. font-size: 70px;
  133. line-height: 80px;
  134. margin: 0px 10px 10px 10px;
  135. }
  136. h2 {
  137. font-size: 24px;
  138. margin: 0px 20px 20px 20px;
  139. }
  140. }
  141. .social-buttons {
  142. position: absolute;
  143. top: 20px;
  144. left: auto;
  145. bottom: auto;
  146. right: 20px;
  147. }
  148. }
  149. }
  150. // PAGE BODY /////////////////////////
  151. #page {
  152. max-width: 920px;
  153. margin: 0px auto;
  154. //BUTTON SHOWCASE /////////////////////////
  155. .showcase {
  156. @include border-radius(10px);
  157. @include box-shadow(inset 0px 1px 2px rgba(0, 0, 0, .10));
  158. background: $background;
  159. margin: 0px 10px 60px 10px;
  160. position: relative;
  161. hgroup {
  162. position: absolute;
  163. top: -30px;
  164. z-index: 1;
  165. h3 {
  166. font-family: $font;
  167. font-weight: lighter;
  168. color: #CCC;
  169. font-size: 16px;
  170. line-height: 30px;
  171. margin: 0px;
  172. padding: 0px;
  173. em {
  174. font-size: 11px;
  175. color: #999;
  176. font-style: normal;
  177. a {
  178. color: #999;
  179. }
  180. }
  181. }
  182. }
  183. .gallery {
  184. padding: 20px 20px 20px 20px;
  185. > ul {
  186. list-style-type: none;
  187. margin: 0px 0px 20px 0px;
  188. padding: 0;
  189. &:last-child {
  190. margin-bottom: 0px;
  191. }
  192. > li {
  193. margin: 5px;
  194. display: inline-block;
  195. }
  196. }
  197. em {
  198. font-size: 11px;
  199. color: #999;
  200. font-style: normal;
  201. a {
  202. color: #999;
  203. }
  204. }
  205. }
  206. .prettyprint {
  207. @include box-shadow(inset 0px 1px 3px rgba(0, 0, 0, .40));
  208. @include border-bottom-radius(10px);
  209. background: #333;
  210. padding: 10px 5px;
  211. margin: 0;
  212. font-size: 11px;
  213. line-height: 16px;
  214. overflow: hidden;
  215. li.L1, li.L3, li.L5, li.L7, li.L9 {
  216. background: #333;
  217. }
  218. }
  219. }
  220. }
  221. #setup {
  222. background: #EEE;
  223. h2 {
  224. text-align: center;
  225. font-weight: 100;
  226. font-size: 60px;
  227. color: #CCC;
  228. text-shadow: 0px 1px 0px #FFF;
  229. margin: 0px 0px 20px 0px ;
  230. line-height: 60px;
  231. @media only screen and (max-width: 480px) {
  232. font-size: 44px;
  233. }
  234. }
  235. h3 {
  236. color: #666;
  237. font-size: 22px;
  238. }
  239. .instructions {
  240. max-width: 880px;
  241. padding: 40px 20px;
  242. margin: 0px auto;
  243. ol.steps {
  244. padding-left: 30px;
  245. > li {
  246. line-height: 22px;
  247. margin-bottom: 10px;
  248. color: #666;
  249. }
  250. }
  251. em {
  252. font-size: 12px;
  253. }
  254. }
  255. .prettyprint {
  256. @include box-shadow(inset 0px 1px 3px rgba(0, 0, 0, .40));
  257. @include border-radius(3px);
  258. background: #333;
  259. padding: 5px;
  260. margin: 0;
  261. font-size: 10px;
  262. line-height: 16px;
  263. overflow: hidden;
  264. .linenums {
  265. padding-left: 20px;
  266. }
  267. li.L1, li.L3, li.L5, li.L7, li.L9 {
  268. background: #333;
  269. }
  270. }
  271. .customize {
  272. float: right;
  273. }
  274. .setup {
  275. float: left;
  276. }
  277. .customize, .setup {
  278. width: 47%;
  279. text-align: left;
  280. @media only screen and (max-width: 480px) {
  281. float: none;
  282. width: auto;
  283. margin: 20px auto 40px auto;
  284. }
  285. }
  286. }
  287. footer {
  288. background: #333;
  289. color: #FFF;
  290. padding: 20px;
  291. text-align: center;
  292. font-size: 12px;
  293. a {
  294. color: #FFF;
  295. }
  296. }
  297. // MOBILE /////////////////////////
  298. @media only screen and (max-width: 480px) {
  299. body {
  300. padding: 0px;
  301. }
  302. // NAVIGATION /////////////////////////
  303. nav {
  304. position: static;
  305. ul {
  306. width: auto;
  307. li {
  308. float: none;
  309. display: block;
  310. border-bottom: 1px solid #EEE;
  311. &.home {
  312. padding: 10px;
  313. margin: 5px auto;
  314. a {
  315. margin: 5px auto;
  316. }
  317. }
  318. &.selected {
  319. border-bottom: 1px solid #EEE;
  320. }
  321. a {
  322. float: none;
  323. display: block;
  324. line-height: 24px;
  325. padding: 10px 20px;
  326. font-size: 18px;
  327. text-align: center;
  328. }
  329. }
  330. }
  331. }
  332. }