File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 18
18
19
19
body {
20
20
min-height : 100% ;
21
- position : sticky ;
22
21
}
23
22
24
23
code {
Original file line number Diff line number Diff line change
1
+ /*
2
+ media mixin
3
+ -----------
4
+
5
+ usage:
6
+ @include media(500px) {
7
+ // css for above 500px
8
+ }
9
+
10
+ @include media(500px, 600px) {
11
+ // css for between 500px - 599px
12
+ }
13
+
14
+ ------------------------------------------ */
15
+ @mixin media ($from , $to : null) {
16
+ $query : ' screen' ;
17
+ @if $from {
18
+ $query : unquote (" #{$query } and (min-width: #{$from } )" )
19
+ }
20
+ @if $to {
21
+ $query : unquote (" #{$query } and (max-width: #{$to - 1px } )" )
22
+ }
23
+ @media #{$query } {
24
+ @content ;
25
+ }
26
+ }
27
+
28
+
29
+ /*
30
+ clearfix mixin
31
+ --------------
32
+
33
+ Clearfix hack for floats
34
+ ------------------------------------------ */
35
+ @mixin clearfix ($pseudo-element : ' before' ) {
36
+ & ::after {
37
+ content : " " ;
38
+ display : table ;
39
+ clear : both ;
40
+ }
41
+ }
You can’t perform that action at this time.
0 commit comments