jekyll-theme-ethereal 0.4.4 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +54 -1
- data/_includes/contact_form.html +11 -7
- data/_includes/contact_script.html +60 -22
- data/_includes/head.html +11 -1
- data/_includes/panel_contact.html +4 -4
- data/_includes/panel_map.html +71 -97
- data/_includes/scripts.html +8 -19
- data/_includes/search.html +8 -6
- data/_layouts/default.html +4 -4
- data/_sass/large.scss +49 -0
- data/_sass/large/base/_page.scss +0 -0
- data/_sass/large/base/_reset.scss +0 -0
- data/_sass/large/base/_typography.scss +11 -0
- data/_sass/large/components/_actions.scss +0 -0
- data/_sass/large/components/_button.scss +0 -0
- data/_sass/large/components/_contact-icons.scss +0 -0
- data/_sass/large/components/_form.scss +0 -0
- data/_sass/large/components/_gallery.scss +0 -0
- data/_sass/large/components/_grid-icons.scss +0 -0
- data/_sass/large/components/_icon.scss +0 -0
- data/_sass/large/components/_icons.scss +0 -0
- data/_sass/large/components/_image.scss +0 -0
- data/_sass/large/components/_list.scss +0 -0
- data/_sass/large/components/_panel-banner.scss +0 -0
- data/_sass/large/components/_panel-map.scss +0 -0
- data/_sass/large/components/_panel-spotlight.scss +0 -0
- data/_sass/large/components/_panel.scss +0 -0
- data/_sass/large/components/_table.scss +0 -0
- data/_sass/large/layout/_footer.scss +0 -0
- data/_sass/large/layout/_header.scss +0 -0
- data/_sass/large/layout/_page-wrapper.scss +0 -0
- data/_sass/large/layout/_wrapper.scss +0 -0
- data/_sass/libs/_breakpoints.scss +164 -164
- data/_sass/libs/_functions.scss +32 -32
- data/_sass/libs/_mixins.scss +225 -49
- data/_sass/libs/_vars.scss +40 -40
- data/_sass/libs/_vendor.scss +331 -331
- data/_sass/main.scss +25 -118
- data/_sass/main/base/_page.scss +99 -0
- data/_sass/main/base/_reset.scss +76 -0
- data/_sass/main/base/_typography.scss +193 -0
- data/_sass/main/components/_actions.scss +63 -0
- data/_sass/main/components/_button.scss +154 -0
- data/_sass/main/components/_contact-icons.scss +72 -0
- data/_sass/main/components/_form.scss +253 -0
- data/_sass/main/components/_gallery.scss +168 -0
- data/_sass/main/components/_grid-icons.scss +139 -0
- data/_sass/main/components/_icon.scss +33 -0
- data/_sass/main/components/_icons.scss +28 -0
- data/_sass/main/components/_image.scss +169 -0
- data/_sass/main/components/_list.scss +56 -0
- data/_sass/main/components/_panel-banner.scss +52 -0
- data/_sass/main/components/_panel-map.scss +0 -0
- data/_sass/main/components/_panel-spotlight.scss +62 -0
- data/_sass/main/components/_panel.scss +224 -0
- data/_sass/main/components/_table.scss +81 -0
- data/_sass/main/layout/_footer.scss +30 -0
- data/_sass/main/layout/_header.scss +35 -0
- data/_sass/main/layout/_page-wrapper.scss +22 -0
- data/_sass/main/layout/_wrapper.scss +85 -0
- data/_sass/medium.scss +48 -0
- data/_sass/medium/base/_page.scss +0 -0
- data/_sass/medium/base/_reset.scss +0 -0
- data/_sass/medium/base/_typography.scss +0 -0
- data/_sass/medium/components/_actions.scss +0 -0
- data/_sass/medium/components/_button.scss +0 -0
- data/_sass/medium/components/_contact-icons.scss +0 -0
- data/_sass/medium/components/_form.scss +0 -0
- data/_sass/medium/components/_gallery.scss +11 -0
- data/_sass/medium/components/_grid-icons.scss +0 -0
- data/_sass/medium/components/_icon.scss +0 -0
- data/_sass/medium/components/_icons.scss +0 -0
- data/_sass/medium/components/_image.scss +0 -0
- data/_sass/medium/components/_list.scss +0 -0
- data/_sass/medium/components/_panel-banner.scss +0 -0
- data/_sass/medium/components/_panel-map.scss +0 -0
- data/_sass/medium/components/_panel-spotlight.scss +0 -0
- data/_sass/medium/components/_panel.scss +0 -0
- data/_sass/medium/components/_table.scss +0 -0
- data/_sass/medium/layout/_footer.scss +0 -0
- data/_sass/medium/layout/_header.scss +0 -0
- data/_sass/medium/layout/_page-wrapper.scss +0 -0
- data/_sass/medium/layout/_wrapper.scss +0 -0
- data/_sass/noscript.scss +12 -12
- data/_sass/short.scss +49 -0
- data/_sass/short/base/_page.scss +0 -0
- data/_sass/short/base/_reset.scss +0 -0
- data/_sass/short/base/_typography.scss +0 -0
- data/_sass/short/components/_actions.scss +0 -0
- data/_sass/short/components/_button.scss +0 -0
- data/_sass/short/components/_contact-icons.scss +0 -0
- data/_sass/short/components/_form.scss +1 -0
- data/_sass/short/components/_gallery.scss +0 -0
- data/_sass/short/components/_grid-icons.scss +0 -0
- data/_sass/short/components/_icon.scss +0 -0
- data/_sass/short/components/_icons.scss +0 -0
- data/_sass/short/components/_image.scss +0 -0
- data/_sass/short/components/_list.scss +0 -0
- data/_sass/short/components/_panel-banner.scss +0 -0
- data/_sass/short/components/_panel-map.scss +0 -0
- data/_sass/short/components/_panel-spotlight.scss +0 -0
- data/_sass/short/components/_panel.scss +0 -0
- data/_sass/short/components/_table.scss +0 -0
- data/_sass/short/layout/_footer.scss +0 -0
- data/_sass/short/layout/_header.scss +0 -0
- data/_sass/short/layout/_page-wrapper.scss +9 -0
- data/_sass/short/layout/_wrapper.scss +0 -0
- data/_sass/small.scss +50 -0
- data/_sass/small/base/_page.scss +18 -0
- data/_sass/small/base/_reset.scss +0 -0
- data/_sass/small/base/_typography.scss +67 -0
- data/_sass/small/components/_actions.scss +0 -0
- data/_sass/small/components/_button.scss +0 -0
- data/_sass/small/components/_contact-icons.scss +0 -0
- data/_sass/small/components/_form.scss +27 -0
- data/_sass/small/components/_gallery.scss +38 -0
- data/_sass/small/components/_grid-icons.scss +29 -0
- data/_sass/small/components/_icon.scss +0 -0
- data/_sass/small/components/_icons.scss +0 -0
- data/_sass/small/components/_image.scss +0 -0
- data/_sass/small/components/_list.scss +0 -0
- data/_sass/small/components/_panel-banner.scss +37 -0
- data/_sass/small/components/_panel-map.scss +13 -0
- data/_sass/small/components/_panel-spotlight.scss +18 -0
- data/_sass/small/components/_panel.scss +80 -0
- data/_sass/small/components/_table.scss +0 -0
- data/_sass/small/layout/_footer.scss +34 -0
- data/_sass/small/layout/_header.scss +0 -0
- data/_sass/small/layout/_page-wrapper.scss +12 -0
- data/_sass/small/layout/_wrapper.scss +26 -0
- data/{_sass/components/_cookieconsent.scss → assets/css/cookieconsent.css} +3 -2
- data/assets/css/cookieconsent.min.css +1 -0
- data/assets/css/fontawesome-all.min.css +1 -1
- data/assets/css/large.scss +5 -0
- data/assets/css/mapbox-gl.css +1 -600
- data/assets/css/mapbox-gl.min.css +1 -0
- data/assets/css/mapbox-gl.panel.css +27 -0
- data/assets/css/mapbox-gl.panel.min.css +1 -0
- data/assets/css/medium.scss +5 -0
- data/assets/css/short.scss +5 -0
- data/assets/css/small.scss +5 -0
- data/assets/js/cookieconsent.style.min.js +1 -0
- data/assets/js/lazy-loading.min.js +1 -0
- data/assets/js/main.js +2 -2
- data/assets/js/main.min.js +42 -0
- data/assets/js/mapbox-gl.min.js +40 -0
- metadata +129 -25
- data/_sass/base/_page.scss +0 -117
- data/_sass/base/_reset.scss +0 -76
- data/_sass/base/_typography.scss +0 -271
- data/_sass/components/_actions.scss +0 -63
- data/_sass/components/_button.scss +0 -154
- data/_sass/components/_contact-icons.scss +0 -72
- data/_sass/components/_form.scss +0 -279
- data/_sass/components/_gallery.scss +0 -218
- data/_sass/components/_grid-icons.scss +0 -166
- data/_sass/components/_icon.scss +0 -33
- data/_sass/components/_icons.scss +0 -28
- data/_sass/components/_image.scss +0 -169
- data/_sass/components/_list.scss +0 -56
- data/_sass/components/_panel-banner.scss +0 -90
- data/_sass/components/_panel-spotlight.scss +0 -81
- data/_sass/components/_panel.scss +0 -300
- data/_sass/components/_table.scss +0 -81
- data/_sass/layout/_footer.scss +0 -49
- data/_sass/layout/_header.scss +0 -37
- data/_sass/layout/_page-wrapper.scss +0 -43
- data/_sass/layout/_wrapper.scss +0 -118
- data/assets/js/mapbox-gl.js +0 -40
data/_includes/scripts.html
CHANGED
@@ -1,24 +1,13 @@
|
|
1
1
|
<!-- Scripts -->
|
2
|
-
<script src="{{ 'assets/js/jquery.min.js' | absolute_url }}" type="text/javascript" ></script>
|
3
|
-
<script src="{{ 'assets/js/browser.min.js' | absolute_url }}" type="text/javascript" ></script>
|
4
|
-
<script src="{{ 'assets/js/breakpoints.min.js' | absolute_url }}" type="text/javascript" ></script>
|
5
|
-
<script src="{{ 'assets/js/lazy-loading.js' | absolute_url }}" type="text/javascript" ></script>
|
6
|
-
<script src="{{ 'assets/js/main.js' | absolute_url }}" type="text/javascript" ></script>
|
7
|
-
<script src="{{ 'assets/js/cookieconsent.min.js' | absolute_url }}" data-cfasync="false" type="text/javascript" ></script>
|
8
|
-
<script>
|
9
|
-
window.cookieconsent.initialise({
|
10
|
-
"palette": {
|
11
|
-
"popup": {
|
12
|
-
"background": "#252e39"
|
13
|
-
},
|
14
|
-
"button": {
|
15
|
-
"background": "#14a7d0"
|
16
|
-
}
|
17
|
-
}
|
18
|
-
});
|
19
|
-
</script>
|
2
|
+
<script src="{{ 'assets/js/jquery.min.js' | absolute_url }}" type="text/javascript" defer ></script>
|
3
|
+
<script src="{{ 'assets/js/browser.min.js' | absolute_url }}" type="text/javascript" defer ></script>
|
4
|
+
<script src="{{ 'assets/js/breakpoints.min.js' | absolute_url }}" type="text/javascript" defer ></script>
|
5
|
+
<script src="{{ 'assets/js/lazy-loading.min.js' | absolute_url }}" type="text/javascript" defer ></script>
|
6
|
+
<script src="{{ 'assets/js/main.min.js' | absolute_url }}" type="text/javascript" defer ></script>
|
7
|
+
<script src="{{ 'assets/js/cookieconsent.min.js' | absolute_url }}" data-cfasync="false" type="text/javascript" defer ></script>
|
8
|
+
<script src="{{ 'assets/js/cookieconsent.style.min.js' | absolute_url }}" type="text/javascript" defer ></script>
|
20
9
|
{%- if include.scripts -%}
|
21
10
|
{%- for file in include.scripts -%}
|
22
|
-
<script src="{{ file.url | absolute_url }}" type="text/javascript" ></script>
|
11
|
+
<script src="{{ file.url | absolute_url }}" type="text/javascript" defer ></script>
|
23
12
|
{%- endfor -%}
|
24
13
|
{%- endif -%}
|
data/_includes/search.html
CHANGED
@@ -8,11 +8,13 @@
|
|
8
8
|
<ul id="search-results">
|
9
9
|
</ul>
|
10
10
|
</nav>
|
11
|
-
<script src="{{ 'assets/js/simple-jekyll-search.min.js' | absolute_url }}" type="text/javascript" ></script>
|
12
11
|
<script>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
}
|
12
|
+
function attachSearchFunction() {
|
13
|
+
SimpleJekyllSearch({
|
14
|
+
searchInput: document.getElementById('search-input'),
|
15
|
+
resultsContainer: document.getElementById('search-results'),
|
16
|
+
json: "{{ '/index.json' | absolute_url }}"
|
17
|
+
});
|
18
|
+
}
|
18
19
|
</script>
|
20
|
+
<script src="{{ 'assets/js/simple-jekyll-search.min.js' | absolute_url }}" onload="attachSearchFunction()" type="text/javascript" defer ></script>
|
data/_layouts/default.html
CHANGED
@@ -20,11 +20,11 @@
|
|
20
20
|
|
21
21
|
<body class="is-preload">
|
22
22
|
|
23
|
+
{% include language.html %}
|
24
|
+
|
23
25
|
<!-- Page Wrapper -->
|
24
26
|
<div id="page-wrapper">
|
25
27
|
|
26
|
-
{% include language.html %}
|
27
|
-
|
28
28
|
<!-- Wrapper -->
|
29
29
|
<div id="wrapper">
|
30
30
|
|
@@ -32,10 +32,10 @@
|
|
32
32
|
|
33
33
|
</div>
|
34
34
|
|
35
|
-
{% include footer.html %}
|
36
|
-
|
37
35
|
</div>
|
38
36
|
|
37
|
+
{% include footer.html %}
|
38
|
+
|
39
39
|
{% include scripts.html scripts=scripts %}
|
40
40
|
|
41
41
|
</body>
|
data/_sass/large.scss
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
@import 'libs/vars';
|
2
|
+
@import 'libs/functions';
|
3
|
+
@import 'libs/mixins';
|
4
|
+
@import 'libs/vendor';
|
5
|
+
@import 'libs/breakpoints';
|
6
|
+
|
7
|
+
/*
|
8
|
+
Ethereal by HTML5 UP
|
9
|
+
html5up.net | @ajlkn
|
10
|
+
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
11
|
+
*/
|
12
|
+
|
13
|
+
// Breakpoints.
|
14
|
+
|
15
|
+
@include breakpoints((
|
16
|
+
xlarge: ( 1281px, 1680px ),
|
17
|
+
large: ( 981px, 1280px )
|
18
|
+
));
|
19
|
+
|
20
|
+
// Base.
|
21
|
+
|
22
|
+
@import 'large/base/reset';
|
23
|
+
@import 'large/base/page';
|
24
|
+
@import 'large/base/typography';
|
25
|
+
|
26
|
+
// Component.
|
27
|
+
|
28
|
+
@import 'large/components/form';
|
29
|
+
@import 'large/components/icon';
|
30
|
+
@import 'large/components/image';
|
31
|
+
@import 'large/components/list';
|
32
|
+
@import 'large/components/actions';
|
33
|
+
@import 'large/components/icons';
|
34
|
+
@import 'large/components/grid-icons';
|
35
|
+
@import 'large/components/contact-icons';
|
36
|
+
@import 'large/components/table';
|
37
|
+
@import 'large/components/button';
|
38
|
+
@import 'large/components/gallery';
|
39
|
+
@import 'large/components/panel';
|
40
|
+
@import 'large/components/panel-banner';
|
41
|
+
@import 'large/components/panel-map';
|
42
|
+
@import 'large/components/panel-spotlight';
|
43
|
+
|
44
|
+
// Layout.
|
45
|
+
|
46
|
+
@import 'large/layout/footer';
|
47
|
+
@import 'large/layout/header';
|
48
|
+
@import 'large/layout/page-wrapper';
|
49
|
+
@import 'large/layout/wrapper';
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,222 +2,222 @@
|
|
2
2
|
|
3
3
|
// Vars.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
/// Breakpoints.
|
6
|
+
/// @var {list}
|
7
|
+
$breakpoints: () !global;
|
8
8
|
|
9
9
|
// Mixins.
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
/// Sets breakpoints.
|
12
|
+
/// @param {map} $x Breakpoints.
|
13
|
+
@mixin breakpoints($x: ()) {
|
14
|
+
$breakpoints: $x !global;
|
15
|
+
}
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
/// Wraps @content in a @media block using a given query.
|
26
|
+
/// @param {string} $query Query.
|
27
|
+
@mixin breakpoint($query: null) {
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
$breakpoint: null;
|
30
|
+
$op: null;
|
31
|
+
$media: null;
|
32
32
|
|
33
|
-
|
33
|
+
// Determine operator, breakpoint.
|
34
34
|
|
35
|
-
|
36
|
-
|
35
|
+
// Greater than or equal.
|
36
|
+
@if (str-slice($query, 0, 2) == '>=') {
|
37
37
|
|
38
|
-
|
39
|
-
|
38
|
+
$op: 'gte';
|
39
|
+
$breakpoint: str-slice($query, 3);
|
40
40
|
|
41
|
-
|
41
|
+
}
|
42
42
|
|
43
|
-
|
44
|
-
|
43
|
+
// Less than or equal.
|
44
|
+
@elseif (str-slice($query, 0, 2) == '<=') {
|
45
45
|
|
46
|
-
|
47
|
-
|
46
|
+
$op: 'lte';
|
47
|
+
$breakpoint: str-slice($query, 3);
|
48
48
|
|
49
|
-
|
49
|
+
}
|
50
50
|
|
51
|
-
|
52
|
-
|
51
|
+
// Greater than.
|
52
|
+
@elseif (str-slice($query, 0, 1) == '>') {
|
53
53
|
|
54
|
-
|
55
|
-
|
54
|
+
$op: 'gt';
|
55
|
+
$breakpoint: str-slice($query, 2);
|
56
56
|
|
57
|
-
|
57
|
+
}
|
58
58
|
|
59
|
-
|
60
|
-
|
59
|
+
// Less than.
|
60
|
+
@elseif (str-slice($query, 0, 1) == '<') {
|
61
61
|
|
62
|
-
|
63
|
-
|
62
|
+
$op: 'lt';
|
63
|
+
$breakpoint: str-slice($query, 2);
|
64
64
|
|
65
|
-
|
65
|
+
}
|
66
66
|
|
67
|
-
|
68
|
-
|
67
|
+
// Not.
|
68
|
+
@elseif (str-slice($query, 0, 1) == '!') {
|
69
69
|
|
70
|
-
|
71
|
-
|
70
|
+
$op: 'not';
|
71
|
+
$breakpoint: str-slice($query, 2);
|
72
72
|
|
73
|
-
|
73
|
+
}
|
74
74
|
|
75
|
-
|
76
|
-
|
75
|
+
// Equal.
|
76
|
+
@else {
|
77
77
|
|
78
|
-
|
79
|
-
|
78
|
+
$op: 'eq';
|
79
|
+
$breakpoint: $query;
|
80
80
|
|
81
|
-
|
81
|
+
}
|
82
82
|
|
83
|
-
|
84
|
-
|
83
|
+
// Build media.
|
84
|
+
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
85
85
|
|
86
|
-
|
86
|
+
$a: map-get($breakpoints, $breakpoint);
|
87
87
|
|
88
|
-
|
89
|
-
|
88
|
+
// Range.
|
89
|
+
@if (type-of($a) == 'list') {
|
90
90
|
|
91
|
-
|
92
|
-
|
91
|
+
$x: nth($a, 1);
|
92
|
+
$y: nth($a, 2);
|
93
93
|
|
94
|
-
|
95
|
-
|
94
|
+
// Max only.
|
95
|
+
@if ($x == null) {
|
96
96
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
97
|
+
// Greater than or equal (>= 0 / anything)
|
98
|
+
@if ($op == 'gte') {
|
99
|
+
$media: 'screen';
|
100
|
+
}
|
101
101
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
102
|
+
// Less than or equal (<= y)
|
103
|
+
@elseif ($op == 'lte') {
|
104
|
+
$media: 'screen and (max-width: ' + $y + ')';
|
105
|
+
}
|
106
106
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
107
|
+
// Greater than (> y)
|
108
|
+
@elseif ($op == 'gt') {
|
109
|
+
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
110
|
+
}
|
111
111
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
112
|
+
// Less than (< 0 / invalid)
|
113
|
+
@elseif ($op == 'lt') {
|
114
|
+
$media: 'screen and (max-width: -1px)';
|
115
|
+
}
|
116
116
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
117
|
+
// Not (> y)
|
118
|
+
@elseif ($op == 'not') {
|
119
|
+
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
120
|
+
}
|
121
121
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
122
|
+
// Equal (<= y)
|
123
|
+
@else {
|
124
|
+
$media: 'screen and (max-width: ' + $y + ')';
|
125
|
+
}
|
126
126
|
|
127
|
-
|
127
|
+
}
|
128
128
|
|
129
|
-
|
130
|
-
|
129
|
+
// Min only.
|
130
|
+
@else if ($y == null) {
|
131
131
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
132
|
+
// Greater than or equal (>= x)
|
133
|
+
@if ($op == 'gte') {
|
134
|
+
$media: 'screen and (min-width: ' + $x + ')';
|
135
|
+
}
|
136
136
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
137
|
+
// Less than or equal (<= inf / anything)
|
138
|
+
@elseif ($op == 'lte') {
|
139
|
+
$media: 'screen';
|
140
|
+
}
|
141
141
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
142
|
+
// Greater than (> inf / invalid)
|
143
|
+
@elseif ($op == 'gt') {
|
144
|
+
$media: 'screen and (max-width: -1px)';
|
145
|
+
}
|
146
146
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
147
|
+
// Less than (< x)
|
148
|
+
@elseif ($op == 'lt') {
|
149
|
+
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
150
|
+
}
|
151
151
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
152
|
+
// Not (< x)
|
153
|
+
@elseif ($op == 'not') {
|
154
|
+
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
155
|
+
}
|
156
156
|
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
157
|
+
// Equal (>= x)
|
158
|
+
@else {
|
159
|
+
$media: 'screen and (min-width: ' + $x + ')';
|
160
|
+
}
|
161
161
|
|
162
|
-
|
162
|
+
}
|
163
163
|
|
164
|
-
|
165
|
-
|
164
|
+
// Min and max.
|
165
|
+
@else {
|
166
166
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
167
|
+
// Greater than or equal (>= x)
|
168
|
+
@if ($op == 'gte') {
|
169
|
+
$media: 'screen and (min-width: ' + $x + ')';
|
170
|
+
}
|
171
171
|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
172
|
+
// Less than or equal (<= y)
|
173
|
+
@elseif ($op == 'lte') {
|
174
|
+
$media: 'screen and (max-width: ' + $y + ')';
|
175
|
+
}
|
176
176
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
177
|
+
// Greater than (> y)
|
178
|
+
@elseif ($op == 'gt') {
|
179
|
+
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
180
|
+
}
|
181
181
|
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
182
|
+
// Less than (< x)
|
183
|
+
@elseif ($op == 'lt') {
|
184
|
+
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
185
|
+
}
|
186
186
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
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
213
|
|
214
|
-
|
214
|
+
}
|
215
215
|
|
216
|
-
|
216
|
+
}
|
217
217
|
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
218
|
+
// Output.
|
219
|
+
@media #{$media} {
|
220
|
+
@content;
|
221
|
+
}
|
222
222
|
|
223
|
-
|
223
|
+
}
|