jekyll-theme-future-imperfect 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +319 -0
- data/README.md +105 -0
- data/_includes/footer.html +11 -0
- data/_includes/head.html +3 -0
- data/_includes/large_post_preview.html +29 -0
- data/_includes/list_post_preview.html +12 -0
- data/_includes/menu.html +26 -0
- data/_includes/navigation.html +23 -0
- data/_includes/scripts.html +6 -0
- data/_includes/small_post_preview.html +12 -0
- data/_layouts/author.html +17 -0
- data/_layouts/base.html +35 -0
- data/_layouts/default.html +17 -0
- data/_layouts/post.html +17 -0
- data/_sass/base/_page.scss +54 -0
- data/_sass/base/_reset.scss +159 -0
- data/_sass/base/_typography.scss +180 -0
- data/_sass/components/_actions.scss +101 -0
- data/_sass/components/_author.scss +40 -0
- data/_sass/components/_blurb.scss +22 -0
- data/_sass/components/_box.scss +25 -0
- data/_sass/components/_button.scss +84 -0
- data/_sass/components/_form.scss +218 -0
- data/_sass/components/_icon.scss +41 -0
- data/_sass/components/_icons.scss +30 -0
- data/_sass/components/_image.scss +72 -0
- data/_sass/components/_list.scss +56 -0
- data/_sass/components/_mini-post.scss +87 -0
- data/_sass/components/_post.scss +247 -0
- data/_sass/components/_posts.scss +65 -0
- data/_sass/components/_row.scss +31 -0
- data/_sass/components/_section.scss +26 -0
- data/_sass/components/_table.scss +81 -0
- data/_sass/jekyll-theme-future-imperfect.scss +57 -0
- data/_sass/layout/_footer.scss +26 -0
- data/_sass/layout/_header.scss +183 -0
- data/_sass/layout/_intro.scss +87 -0
- data/_sass/layout/_main.scss +13 -0
- data/_sass/layout/_menu.scss +96 -0
- data/_sass/layout/_sidebar.scss +34 -0
- data/_sass/layout/_wrapper.scss +38 -0
- data/_sass/libs/_breakpoints.scss +223 -0
- data/_sass/libs/_functions.scss +93 -0
- data/_sass/libs/_html-grid.scss +153 -0
- data/_sass/libs/_mixins.scss +80 -0
- data/_sass/libs/_vars.scss +38 -0
- data/_sass/libs/_vendor.scss +385 -0
- data/assets/css/fontawesome-all.min.css +5 -0
- data/assets/css/main.scss +3 -0
- data/assets/js/breakpoints.min.js +2 -0
- data/assets/js/browser.min.js +2 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/main.js +95 -0
- data/assets/js/util.js +587 -0
- data/assets/webfonts/fa-brands-400.eot +0 -0
- data/assets/webfonts/fa-brands-400.svg +3442 -0
- data/assets/webfonts/fa-brands-400.ttf +0 -0
- data/assets/webfonts/fa-brands-400.woff +0 -0
- data/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/webfonts/fa-regular-400.eot +0 -0
- data/assets/webfonts/fa-regular-400.svg +803 -0
- data/assets/webfonts/fa-regular-400.ttf +0 -0
- data/assets/webfonts/fa-regular-400.woff +0 -0
- data/assets/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/webfonts/fa-solid-900.eot +0 -0
- data/assets/webfonts/fa-solid-900.svg +4649 -0
- data/assets/webfonts/fa-solid-900.ttf +0 -0
- data/assets/webfonts/fa-solid-900.woff +0 -0
- data/assets/webfonts/fa-solid-900.woff2 +0 -0
- metadata +155 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Future Imperfect by HTML5 UP
|
|
3
|
+
/// html5up.net | @ajlkn
|
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
|
5
|
+
///
|
|
6
|
+
|
|
7
|
+
/* Intro */
|
|
8
|
+
|
|
9
|
+
#intro {
|
|
10
|
+
.logo {
|
|
11
|
+
border-bottom: 0;
|
|
12
|
+
display: inline-block;
|
|
13
|
+
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 4em;
|
|
17
|
+
|
|
18
|
+
&:before {
|
|
19
|
+
background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" viewBox="0 0 100 100" preserveAspectRatio="none" zoomAndPan="disable"><polygon points="0,0 100,0 100,25 50,0 0,25" style="fill:#{_palette(bg-alt)}" /><polygon points="0,100 100,100 100,75 50,100 0,75" style="fill:#{_palette(bg-alt)}" /></svg>');
|
|
20
|
+
background-position: top left;
|
|
21
|
+
background-repeat: no-repeat;
|
|
22
|
+
background-size: 100% 100%;
|
|
23
|
+
content: '';
|
|
24
|
+
display: block;
|
|
25
|
+
height: 100%;
|
|
26
|
+
left: 0;
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
img {
|
|
33
|
+
display: block;
|
|
34
|
+
margin-left: -0.25em;
|
|
35
|
+
width: 4.5em;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
header {
|
|
40
|
+
h2 {
|
|
41
|
+
font-size: 2em;
|
|
42
|
+
font-weight: _font(weight-heading-extrabold);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
p {
|
|
46
|
+
font-size: 0.8em;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include breakpoint('<=large') {
|
|
51
|
+
margin: 0 0 _size(section-spacing) 0;
|
|
52
|
+
text-align: center;
|
|
53
|
+
|
|
54
|
+
header {
|
|
55
|
+
h2 {
|
|
56
|
+
font-size: 2em;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
p {
|
|
60
|
+
font-size: 0.7em;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include breakpoint('<=small') {
|
|
66
|
+
margin: 0 0 _size(section-spacing-small) 0;
|
|
67
|
+
padding: 1.25em 0;
|
|
68
|
+
|
|
69
|
+
> :last-child {
|
|
70
|
+
margin-bottom: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.logo {
|
|
74
|
+
margin: 0 0 (_size(element-margin) * 0.25) 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
header {
|
|
78
|
+
h2 {
|
|
79
|
+
font-size: 1.25em;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
> :last-child {
|
|
83
|
+
margin-bottom: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Future Imperfect by HTML5 UP
|
|
3
|
+
/// html5up.net | @ajlkn
|
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
|
5
|
+
///
|
|
6
|
+
|
|
7
|
+
/* Main */
|
|
8
|
+
|
|
9
|
+
#main {
|
|
10
|
+
@include vendor('flex-grow', '1');
|
|
11
|
+
-ms-flex: 1;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Future Imperfect by HTML5 UP
|
|
3
|
+
/// html5up.net | @ajlkn
|
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
|
5
|
+
///
|
|
6
|
+
|
|
7
|
+
/* Menu */
|
|
8
|
+
|
|
9
|
+
#menu {
|
|
10
|
+
@include vendor('transform', 'translateX(#{_size(menu)})');
|
|
11
|
+
@include vendor('transition', ('transform #{_duration(menu)} ease',
|
|
12
|
+
'visibility #{_duration(menu)}'
|
|
13
|
+
));
|
|
14
|
+
-webkit-overflow-scrolling: touch;
|
|
15
|
+
background: _palette(bg);
|
|
16
|
+
border-left: solid 1px _palette(border);
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
height: 100%;
|
|
19
|
+
max-width: 80%;
|
|
20
|
+
overflow-y: auto;
|
|
21
|
+
position: fixed;
|
|
22
|
+
right: 0;
|
|
23
|
+
top: 0;
|
|
24
|
+
visibility: hidden;
|
|
25
|
+
width: _size(menu);
|
|
26
|
+
z-index: _misc(z-index-base) + 2;
|
|
27
|
+
|
|
28
|
+
>* {
|
|
29
|
+
border-top: solid 1px _palette(border);
|
|
30
|
+
padding: _size(section-spacing);
|
|
31
|
+
|
|
32
|
+
> :last-child {
|
|
33
|
+
margin-bottom: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
> :first-child {
|
|
38
|
+
border-top: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.links {
|
|
42
|
+
list-style: none;
|
|
43
|
+
padding: 0;
|
|
44
|
+
|
|
45
|
+
>li {
|
|
46
|
+
border: 0;
|
|
47
|
+
border-top: dotted 1px _palette(border);
|
|
48
|
+
margin: 1.5em 0 0 0;
|
|
49
|
+
padding: 1.5em 0 0 0;
|
|
50
|
+
|
|
51
|
+
a {
|
|
52
|
+
display: block;
|
|
53
|
+
border-bottom: 0;
|
|
54
|
+
|
|
55
|
+
h3 {
|
|
56
|
+
@include vendor('transition', 'color #{_duration(transition)} ease');
|
|
57
|
+
font-size: 0.7em;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
p {
|
|
61
|
+
font-family: _font(family-heading);
|
|
62
|
+
font-size: 0.6em;
|
|
63
|
+
font-weight: _font(weight-heading);
|
|
64
|
+
letter-spacing: _font(kerning-heading);
|
|
65
|
+
letter-spacing: _size(letter-spacing-alt);
|
|
66
|
+
margin-bottom: 0;
|
|
67
|
+
text-decoration: none;
|
|
68
|
+
text-transform: uppercase;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
72
|
+
h3 {
|
|
73
|
+
color: _palette(accent);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:first-child {
|
|
79
|
+
border-top: 0;
|
|
80
|
+
margin-top: 0;
|
|
81
|
+
padding-top: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
body.is-menu-visible & {
|
|
87
|
+
@include vendor('transform', 'translateX(0)');
|
|
88
|
+
visibility: visible;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@include breakpoint('<=small') {
|
|
92
|
+
>* {
|
|
93
|
+
padding: _size(section-spacing-small);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Future Imperfect by HTML5 UP
|
|
3
|
+
/// html5up.net | @ajlkn
|
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
|
5
|
+
///
|
|
6
|
+
|
|
7
|
+
/* Sidebar */
|
|
8
|
+
|
|
9
|
+
#sidebar {
|
|
10
|
+
margin-right: _size(section-spacing);
|
|
11
|
+
min-width: 22em;
|
|
12
|
+
width: 22em;
|
|
13
|
+
|
|
14
|
+
>* {
|
|
15
|
+
border-top: solid 1px _palette(border);
|
|
16
|
+
margin: _size(section-spacing) 0 0 0;
|
|
17
|
+
padding: _size(section-spacing) 0 0 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> :first-child {
|
|
21
|
+
border-top: 0;
|
|
22
|
+
margin-top: 0;
|
|
23
|
+
padding-top: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include breakpoint('<=large') {
|
|
27
|
+
border-top: solid 1px _palette(border);
|
|
28
|
+
margin: _size(section-spacing) 0 0 0;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
padding: _size(section-spacing) 0 0 0;
|
|
31
|
+
width: 100%;
|
|
32
|
+
overflow-x: hidden;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Future Imperfect by HTML5 UP
|
|
3
|
+
/// html5up.net | @ajlkn
|
|
4
|
+
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
|
5
|
+
///
|
|
6
|
+
|
|
7
|
+
/* Wrapper */
|
|
8
|
+
|
|
9
|
+
#wrapper {
|
|
10
|
+
@include vendor('display', 'flex');
|
|
11
|
+
@include vendor('flex-direction', 'row-reverse');
|
|
12
|
+
@include vendor('transition', 'opacity #{_duration(menu)} ease');
|
|
13
|
+
margin: 0 auto;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
opacity: 1;
|
|
16
|
+
padding: (_size(section-spacing) * 1.5);
|
|
17
|
+
width: 90em;
|
|
18
|
+
|
|
19
|
+
body.is-menu-visible & {
|
|
20
|
+
opacity: 0.15;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include breakpoint('<=xlarge') {
|
|
24
|
+
padding: _size(section-spacing);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include breakpoint('<=large') {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include breakpoint('<=small') {
|
|
32
|
+
padding: _size(section-spacing-small);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body.single & {
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// breakpoints.scss v1.0 | @ajlkn | MIT licensed */
|
|
2
|
+
|
|
3
|
+
// Vars.
|
|
4
|
+
|
|
5
|
+
/// Breakpoints.
|
|
6
|
+
/// @var {list}
|
|
7
|
+
$breakpoints: () !global;
|
|
8
|
+
|
|
9
|
+
// Mixins.
|
|
10
|
+
|
|
11
|
+
/// Sets breakpoints.
|
|
12
|
+
/// @param {map} $x Breakpoints.
|
|
13
|
+
@mixin breakpoints($x: ()) {
|
|
14
|
+
$breakpoints: $x !global;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/// Wraps @content in a @media block targeting a specific orientation.
|
|
18
|
+
/// @param {string} $orientation Orientation.
|
|
19
|
+
@mixin orientation($orientation) {
|
|
20
|
+
@media screen and (orientation: #{$orientation}) {
|
|
21
|
+
@content;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/// Wraps @content in a @media block using a given query.
|
|
26
|
+
/// @param {string} $query Query.
|
|
27
|
+
@mixin breakpoint($query: null) {
|
|
28
|
+
|
|
29
|
+
$breakpoint: null;
|
|
30
|
+
$op: null;
|
|
31
|
+
$media: null;
|
|
32
|
+
|
|
33
|
+
// Determine operator, breakpoint.
|
|
34
|
+
|
|
35
|
+
// Greater than or equal.
|
|
36
|
+
@if (str-slice($query, 0, 2)=='>=') {
|
|
37
|
+
|
|
38
|
+
$op: 'gte';
|
|
39
|
+
$breakpoint: str-slice($query, 3);
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Less than or equal.
|
|
44
|
+
@elseif (str-slice($query, 0, 2)=='<=') {
|
|
45
|
+
|
|
46
|
+
$op: 'lte';
|
|
47
|
+
$breakpoint: str-slice($query, 3);
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Greater than.
|
|
52
|
+
@elseif (str-slice($query, 0, 1)=='>') {
|
|
53
|
+
|
|
54
|
+
$op: 'gt';
|
|
55
|
+
$breakpoint: str-slice($query, 2);
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Less than.
|
|
60
|
+
@elseif (str-slice($query, 0, 1)=='<') {
|
|
61
|
+
|
|
62
|
+
$op: 'lt';
|
|
63
|
+
$breakpoint: str-slice($query, 2);
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Not.
|
|
68
|
+
@elseif (str-slice($query, 0, 1)=='!') {
|
|
69
|
+
|
|
70
|
+
$op: 'not';
|
|
71
|
+
$breakpoint: str-slice($query, 2);
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Equal.
|
|
76
|
+
@else {
|
|
77
|
+
|
|
78
|
+
$op: 'eq';
|
|
79
|
+
$breakpoint: $query;
|
|
80
|
+
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Build media.
|
|
84
|
+
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
|
85
|
+
|
|
86
|
+
$a: map-get($breakpoints, $breakpoint);
|
|
87
|
+
|
|
88
|
+
// Range.
|
|
89
|
+
@if (type-of($a)=='list') {
|
|
90
|
+
|
|
91
|
+
$x: nth($a, 1);
|
|
92
|
+
$y: nth($a, 2);
|
|
93
|
+
|
|
94
|
+
// Max only.
|
|
95
|
+
@if ($x==null) {
|
|
96
|
+
|
|
97
|
+
// Greater than or equal (>= 0 / anything)
|
|
98
|
+
@if ($op=='gte') {
|
|
99
|
+
$media: 'screen';
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Less than or equal (<= y)
|
|
103
|
+
@elseif ($op=='lte') {
|
|
104
|
+
$media: 'screen and (max-width: '+ $y + ')';
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Greater than (> y)
|
|
108
|
+
@elseif ($op=='gt') {
|
|
109
|
+
$media: 'screen and (min-width: '+ ($y + 1) + ')';
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Less than (< 0 / invalid)
|
|
113
|
+
@elseif ($op=='lt') {
|
|
114
|
+
$media: 'screen and (max-width: -1px)';
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Not (> y)
|
|
118
|
+
@elseif ($op=='not') {
|
|
119
|
+
$media: 'screen and (min-width: '+ ($y + 1) + ')';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Equal (<= y)
|
|
123
|
+
@else {
|
|
124
|
+
$media: 'screen and (max-width: '+ $y + ')';
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Min only.
|
|
130
|
+
@else if ($y==null) {
|
|
131
|
+
|
|
132
|
+
// Greater than or equal (>= x)
|
|
133
|
+
@if ($op=='gte') {
|
|
134
|
+
$media: 'screen and (min-width: '+ $x + ')';
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// Less than or equal (<= inf / anything)
|
|
138
|
+
@elseif ($op=='lte') {
|
|
139
|
+
$media: 'screen';
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Greater than (> inf / invalid)
|
|
143
|
+
@elseif ($op=='gt') {
|
|
144
|
+
$media: 'screen and (max-width: -1px)';
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Less than (< x)
|
|
148
|
+
@elseif ($op=='lt') {
|
|
149
|
+
$media: 'screen and (max-width: '+ ($x - 1) + ')';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Not (< x)
|
|
153
|
+
@elseif ($op=='not') {
|
|
154
|
+
$media: 'screen and (max-width: '+ ($x - 1) + ')';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Equal (>= x)
|
|
158
|
+
@else {
|
|
159
|
+
$media: 'screen and (min-width: '+ $x + ')';
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Min and max.
|
|
165
|
+
@else {
|
|
166
|
+
|
|
167
|
+
// Greater than or equal (>= x)
|
|
168
|
+
@if ($op=='gte') {
|
|
169
|
+
$media: 'screen and (min-width: '+ $x + ')';
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Less than or equal (<= y)
|
|
173
|
+
@elseif ($op=='lte') {
|
|
174
|
+
$media: 'screen and (max-width: '+ $y + ')';
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Greater than (> y)
|
|
178
|
+
@elseif ($op=='gt') {
|
|
179
|
+
$media: 'screen and (min-width: '+ ($y + 1) + ')';
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// Less than (< x)
|
|
183
|
+
@elseif ($op=='lt') {
|
|
184
|
+
$media: 'screen and (max-width: '+ ($x - 1) + ')';
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Not (< x and > y)
|
|
188
|
+
@elseif ($op=='not') {
|
|
189
|
+
$media: 'screen and (max-width: '+ ($x - 1) + '), screen and (min-width: '+ ($y + 1) + ')';
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Equal (>= x and <= y)
|
|
193
|
+
@else {
|
|
194
|
+
$media: 'screen and (min-width: '+ $x + ') and (max-width: '+ $y + ')';
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// String.
|
|
202
|
+
@else {
|
|
203
|
+
|
|
204
|
+
// Missing a media type? Prefix with "screen".
|
|
205
|
+
@if (str-slice($a, 0, 1)=='(') {
|
|
206
|
+
$media: 'screen and '+ $a;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Otherwise, use as-is.
|
|
210
|
+
@else {
|
|
211
|
+
$media: $a;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Output.
|
|
219
|
+
@media #{$media} {
|
|
220
|
+
@content;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
}
|