PageRenderTime 28ms CodeModel.GetById 13ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

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