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.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +54 -1
  3. data/_includes/contact_form.html +11 -7
  4. data/_includes/contact_script.html +60 -22
  5. data/_includes/head.html +11 -1
  6. data/_includes/panel_contact.html +4 -4
  7. data/_includes/panel_map.html +71 -97
  8. data/_includes/scripts.html +8 -19
  9. data/_includes/search.html +8 -6
  10. data/_layouts/default.html +4 -4
  11. data/_sass/large.scss +49 -0
  12. data/_sass/large/base/_page.scss +0 -0
  13. data/_sass/large/base/_reset.scss +0 -0
  14. data/_sass/large/base/_typography.scss +11 -0
  15. data/_sass/large/components/_actions.scss +0 -0
  16. data/_sass/large/components/_button.scss +0 -0
  17. data/_sass/large/components/_contact-icons.scss +0 -0
  18. data/_sass/large/components/_form.scss +0 -0
  19. data/_sass/large/components/_gallery.scss +0 -0
  20. data/_sass/large/components/_grid-icons.scss +0 -0
  21. data/_sass/large/components/_icon.scss +0 -0
  22. data/_sass/large/components/_icons.scss +0 -0
  23. data/_sass/large/components/_image.scss +0 -0
  24. data/_sass/large/components/_list.scss +0 -0
  25. data/_sass/large/components/_panel-banner.scss +0 -0
  26. data/_sass/large/components/_panel-map.scss +0 -0
  27. data/_sass/large/components/_panel-spotlight.scss +0 -0
  28. data/_sass/large/components/_panel.scss +0 -0
  29. data/_sass/large/components/_table.scss +0 -0
  30. data/_sass/large/layout/_footer.scss +0 -0
  31. data/_sass/large/layout/_header.scss +0 -0
  32. data/_sass/large/layout/_page-wrapper.scss +0 -0
  33. data/_sass/large/layout/_wrapper.scss +0 -0
  34. data/_sass/libs/_breakpoints.scss +164 -164
  35. data/_sass/libs/_functions.scss +32 -32
  36. data/_sass/libs/_mixins.scss +225 -49
  37. data/_sass/libs/_vars.scss +40 -40
  38. data/_sass/libs/_vendor.scss +331 -331
  39. data/_sass/main.scss +25 -118
  40. data/_sass/main/base/_page.scss +99 -0
  41. data/_sass/main/base/_reset.scss +76 -0
  42. data/_sass/main/base/_typography.scss +193 -0
  43. data/_sass/main/components/_actions.scss +63 -0
  44. data/_sass/main/components/_button.scss +154 -0
  45. data/_sass/main/components/_contact-icons.scss +72 -0
  46. data/_sass/main/components/_form.scss +253 -0
  47. data/_sass/main/components/_gallery.scss +168 -0
  48. data/_sass/main/components/_grid-icons.scss +139 -0
  49. data/_sass/main/components/_icon.scss +33 -0
  50. data/_sass/main/components/_icons.scss +28 -0
  51. data/_sass/main/components/_image.scss +169 -0
  52. data/_sass/main/components/_list.scss +56 -0
  53. data/_sass/main/components/_panel-banner.scss +52 -0
  54. data/_sass/main/components/_panel-map.scss +0 -0
  55. data/_sass/main/components/_panel-spotlight.scss +62 -0
  56. data/_sass/main/components/_panel.scss +224 -0
  57. data/_sass/main/components/_table.scss +81 -0
  58. data/_sass/main/layout/_footer.scss +30 -0
  59. data/_sass/main/layout/_header.scss +35 -0
  60. data/_sass/main/layout/_page-wrapper.scss +22 -0
  61. data/_sass/main/layout/_wrapper.scss +85 -0
  62. data/_sass/medium.scss +48 -0
  63. data/_sass/medium/base/_page.scss +0 -0
  64. data/_sass/medium/base/_reset.scss +0 -0
  65. data/_sass/medium/base/_typography.scss +0 -0
  66. data/_sass/medium/components/_actions.scss +0 -0
  67. data/_sass/medium/components/_button.scss +0 -0
  68. data/_sass/medium/components/_contact-icons.scss +0 -0
  69. data/_sass/medium/components/_form.scss +0 -0
  70. data/_sass/medium/components/_gallery.scss +11 -0
  71. data/_sass/medium/components/_grid-icons.scss +0 -0
  72. data/_sass/medium/components/_icon.scss +0 -0
  73. data/_sass/medium/components/_icons.scss +0 -0
  74. data/_sass/medium/components/_image.scss +0 -0
  75. data/_sass/medium/components/_list.scss +0 -0
  76. data/_sass/medium/components/_panel-banner.scss +0 -0
  77. data/_sass/medium/components/_panel-map.scss +0 -0
  78. data/_sass/medium/components/_panel-spotlight.scss +0 -0
  79. data/_sass/medium/components/_panel.scss +0 -0
  80. data/_sass/medium/components/_table.scss +0 -0
  81. data/_sass/medium/layout/_footer.scss +0 -0
  82. data/_sass/medium/layout/_header.scss +0 -0
  83. data/_sass/medium/layout/_page-wrapper.scss +0 -0
  84. data/_sass/medium/layout/_wrapper.scss +0 -0
  85. data/_sass/noscript.scss +12 -12
  86. data/_sass/short.scss +49 -0
  87. data/_sass/short/base/_page.scss +0 -0
  88. data/_sass/short/base/_reset.scss +0 -0
  89. data/_sass/short/base/_typography.scss +0 -0
  90. data/_sass/short/components/_actions.scss +0 -0
  91. data/_sass/short/components/_button.scss +0 -0
  92. data/_sass/short/components/_contact-icons.scss +0 -0
  93. data/_sass/short/components/_form.scss +1 -0
  94. data/_sass/short/components/_gallery.scss +0 -0
  95. data/_sass/short/components/_grid-icons.scss +0 -0
  96. data/_sass/short/components/_icon.scss +0 -0
  97. data/_sass/short/components/_icons.scss +0 -0
  98. data/_sass/short/components/_image.scss +0 -0
  99. data/_sass/short/components/_list.scss +0 -0
  100. data/_sass/short/components/_panel-banner.scss +0 -0
  101. data/_sass/short/components/_panel-map.scss +0 -0
  102. data/_sass/short/components/_panel-spotlight.scss +0 -0
  103. data/_sass/short/components/_panel.scss +0 -0
  104. data/_sass/short/components/_table.scss +0 -0
  105. data/_sass/short/layout/_footer.scss +0 -0
  106. data/_sass/short/layout/_header.scss +0 -0
  107. data/_sass/short/layout/_page-wrapper.scss +9 -0
  108. data/_sass/short/layout/_wrapper.scss +0 -0
  109. data/_sass/small.scss +50 -0
  110. data/_sass/small/base/_page.scss +18 -0
  111. data/_sass/small/base/_reset.scss +0 -0
  112. data/_sass/small/base/_typography.scss +67 -0
  113. data/_sass/small/components/_actions.scss +0 -0
  114. data/_sass/small/components/_button.scss +0 -0
  115. data/_sass/small/components/_contact-icons.scss +0 -0
  116. data/_sass/small/components/_form.scss +27 -0
  117. data/_sass/small/components/_gallery.scss +38 -0
  118. data/_sass/small/components/_grid-icons.scss +29 -0
  119. data/_sass/small/components/_icon.scss +0 -0
  120. data/_sass/small/components/_icons.scss +0 -0
  121. data/_sass/small/components/_image.scss +0 -0
  122. data/_sass/small/components/_list.scss +0 -0
  123. data/_sass/small/components/_panel-banner.scss +37 -0
  124. data/_sass/small/components/_panel-map.scss +13 -0
  125. data/_sass/small/components/_panel-spotlight.scss +18 -0
  126. data/_sass/small/components/_panel.scss +80 -0
  127. data/_sass/small/components/_table.scss +0 -0
  128. data/_sass/small/layout/_footer.scss +34 -0
  129. data/_sass/small/layout/_header.scss +0 -0
  130. data/_sass/small/layout/_page-wrapper.scss +12 -0
  131. data/_sass/small/layout/_wrapper.scss +26 -0
  132. data/{_sass/components/_cookieconsent.scss → assets/css/cookieconsent.css} +3 -2
  133. data/assets/css/cookieconsent.min.css +1 -0
  134. data/assets/css/fontawesome-all.min.css +1 -1
  135. data/assets/css/large.scss +5 -0
  136. data/assets/css/mapbox-gl.css +1 -600
  137. data/assets/css/mapbox-gl.min.css +1 -0
  138. data/assets/css/mapbox-gl.panel.css +27 -0
  139. data/assets/css/mapbox-gl.panel.min.css +1 -0
  140. data/assets/css/medium.scss +5 -0
  141. data/assets/css/short.scss +5 -0
  142. data/assets/css/small.scss +5 -0
  143. data/assets/js/cookieconsent.style.min.js +1 -0
  144. data/assets/js/lazy-loading.min.js +1 -0
  145. data/assets/js/main.js +2 -2
  146. data/assets/js/main.min.js +42 -0
  147. data/assets/js/mapbox-gl.min.js +40 -0
  148. metadata +129 -25
  149. data/_sass/base/_page.scss +0 -117
  150. data/_sass/base/_reset.scss +0 -76
  151. data/_sass/base/_typography.scss +0 -271
  152. data/_sass/components/_actions.scss +0 -63
  153. data/_sass/components/_button.scss +0 -154
  154. data/_sass/components/_contact-icons.scss +0 -72
  155. data/_sass/components/_form.scss +0 -279
  156. data/_sass/components/_gallery.scss +0 -218
  157. data/_sass/components/_grid-icons.scss +0 -166
  158. data/_sass/components/_icon.scss +0 -33
  159. data/_sass/components/_icons.scss +0 -28
  160. data/_sass/components/_image.scss +0 -169
  161. data/_sass/components/_list.scss +0 -56
  162. data/_sass/components/_panel-banner.scss +0 -90
  163. data/_sass/components/_panel-spotlight.scss +0 -81
  164. data/_sass/components/_panel.scss +0 -300
  165. data/_sass/components/_table.scss +0 -81
  166. data/_sass/layout/_footer.scss +0 -49
  167. data/_sass/layout/_header.scss +0 -37
  168. data/_sass/layout/_page-wrapper.scss +0 -43
  169. data/_sass/layout/_wrapper.scss +0 -118
  170. data/assets/js/mapbox-gl.js +0 -40
@@ -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 -%}
@@ -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
- SimpleJekyllSearch({
14
- searchInput: document.getElementById('search-input'),
15
- resultsContainer: document.getElementById('search-results'),
16
- json: "{{ '/index.json' | absolute_url }}"
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>
@@ -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>
@@ -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
@@ -0,0 +1,11 @@
1
+ html {
2
+ @include breakpoint('<=xlarge') {
3
+ font-size: 12pt;
4
+ font-size: 1.1vmax;
5
+ }
6
+
7
+ @include breakpoint('<=large') {
8
+ font-size: 11pt;
9
+ font-size: 1.5vmax;
10
+ }
11
+ }
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
- /// Breakpoints.
6
- /// @var {list}
7
- $breakpoints: () !global;
5
+ /// Breakpoints.
6
+ /// @var {list}
7
+ $breakpoints: () !global;
8
8
 
9
9
  // Mixins.
10
10
 
11
- /// Sets breakpoints.
12
- /// @param {map} $x Breakpoints.
13
- @mixin breakpoints($x: ()) {
14
- $breakpoints: $x !global;
15
- }
11
+ /// Sets breakpoints.
12
+ /// @param {map} $x Breakpoints.
13
+ @mixin breakpoints($x: ()) {
14
+ $breakpoints: $x !global;
15
+ }
16
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
- }
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
- /// Wraps @content in a @media block using a given query.
26
- /// @param {string} $query Query.
27
- @mixin breakpoint($query: null) {
25
+ /// Wraps @content in a @media block using a given query.
26
+ /// @param {string} $query Query.
27
+ @mixin breakpoint($query: null) {
28
28
 
29
- $breakpoint: null;
30
- $op: null;
31
- $media: null;
29
+ $breakpoint: null;
30
+ $op: null;
31
+ $media: null;
32
32
 
33
- // Determine operator, breakpoint.
33
+ // Determine operator, breakpoint.
34
34
 
35
- // Greater than or equal.
36
- @if (str-slice($query, 0, 2) == '>=') {
35
+ // Greater than or equal.
36
+ @if (str-slice($query, 0, 2) == '>=') {
37
37
 
38
- $op: 'gte';
39
- $breakpoint: str-slice($query, 3);
38
+ $op: 'gte';
39
+ $breakpoint: str-slice($query, 3);
40
40
 
41
- }
41
+ }
42
42
 
43
- // Less than or equal.
44
- @elseif (str-slice($query, 0, 2) == '<=') {
43
+ // Less than or equal.
44
+ @elseif (str-slice($query, 0, 2) == '<=') {
45
45
 
46
- $op: 'lte';
47
- $breakpoint: str-slice($query, 3);
46
+ $op: 'lte';
47
+ $breakpoint: str-slice($query, 3);
48
48
 
49
- }
49
+ }
50
50
 
51
- // Greater than.
52
- @elseif (str-slice($query, 0, 1) == '>') {
51
+ // Greater than.
52
+ @elseif (str-slice($query, 0, 1) == '>') {
53
53
 
54
- $op: 'gt';
55
- $breakpoint: str-slice($query, 2);
54
+ $op: 'gt';
55
+ $breakpoint: str-slice($query, 2);
56
56
 
57
- }
57
+ }
58
58
 
59
- // Less than.
60
- @elseif (str-slice($query, 0, 1) == '<') {
59
+ // Less than.
60
+ @elseif (str-slice($query, 0, 1) == '<') {
61
61
 
62
- $op: 'lt';
63
- $breakpoint: str-slice($query, 2);
62
+ $op: 'lt';
63
+ $breakpoint: str-slice($query, 2);
64
64
 
65
- }
65
+ }
66
66
 
67
- // Not.
68
- @elseif (str-slice($query, 0, 1) == '!') {
67
+ // Not.
68
+ @elseif (str-slice($query, 0, 1) == '!') {
69
69
 
70
- $op: 'not';
71
- $breakpoint: str-slice($query, 2);
70
+ $op: 'not';
71
+ $breakpoint: str-slice($query, 2);
72
72
 
73
- }
73
+ }
74
74
 
75
- // Equal.
76
- @else {
75
+ // Equal.
76
+ @else {
77
77
 
78
- $op: 'eq';
79
- $breakpoint: $query;
78
+ $op: 'eq';
79
+ $breakpoint: $query;
80
80
 
81
- }
81
+ }
82
82
 
83
- // Build media.
84
- @if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
83
+ // Build media.
84
+ @if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
85
85
 
86
- $a: map-get($breakpoints, $breakpoint);
86
+ $a: map-get($breakpoints, $breakpoint);
87
87
 
88
- // Range.
89
- @if (type-of($a) == 'list') {
88
+ // Range.
89
+ @if (type-of($a) == 'list') {
90
90
 
91
- $x: nth($a, 1);
92
- $y: nth($a, 2);
91
+ $x: nth($a, 1);
92
+ $y: nth($a, 2);
93
93
 
94
- // Max only.
95
- @if ($x == null) {
94
+ // Max only.
95
+ @if ($x == null) {
96
96
 
97
- // Greater than or equal (>= 0 / anything)
98
- @if ($op == 'gte') {
99
- $media: 'screen';
100
- }
97
+ // Greater than or equal (>= 0 / anything)
98
+ @if ($op == 'gte') {
99
+ $media: 'screen';
100
+ }
101
101
 
102
- // Less than or equal (<= y)
103
- @elseif ($op == 'lte') {
104
- $media: 'screen and (max-width: ' + $y + ')';
105
- }
102
+ // Less than or equal (<= y)
103
+ @elseif ($op == 'lte') {
104
+ $media: 'screen and (max-width: ' + $y + ')';
105
+ }
106
106
 
107
- // Greater than (> y)
108
- @elseif ($op == 'gt') {
109
- $media: 'screen and (min-width: ' + ($y + 1) + ')';
110
- }
107
+ // Greater than (> y)
108
+ @elseif ($op == 'gt') {
109
+ $media: 'screen and (min-width: ' + ($y + 1) + ')';
110
+ }
111
111
 
112
- // Less than (< 0 / invalid)
113
- @elseif ($op == 'lt') {
114
- $media: 'screen and (max-width: -1px)';
115
- }
112
+ // Less than (< 0 / invalid)
113
+ @elseif ($op == 'lt') {
114
+ $media: 'screen and (max-width: -1px)';
115
+ }
116
116
 
117
- // Not (> y)
118
- @elseif ($op == 'not') {
119
- $media: 'screen and (min-width: ' + ($y + 1) + ')';
120
- }
117
+ // Not (> y)
118
+ @elseif ($op == 'not') {
119
+ $media: 'screen and (min-width: ' + ($y + 1) + ')';
120
+ }
121
121
 
122
- // Equal (<= y)
123
- @else {
124
- $media: 'screen and (max-width: ' + $y + ')';
125
- }
122
+ // Equal (<= y)
123
+ @else {
124
+ $media: 'screen and (max-width: ' + $y + ')';
125
+ }
126
126
 
127
- }
127
+ }
128
128
 
129
- // Min only.
130
- @else if ($y == null) {
129
+ // Min only.
130
+ @else if ($y == null) {
131
131
 
132
- // Greater than or equal (>= x)
133
- @if ($op == 'gte') {
134
- $media: 'screen and (min-width: ' + $x + ')';
135
- }
132
+ // Greater than or equal (>= x)
133
+ @if ($op == 'gte') {
134
+ $media: 'screen and (min-width: ' + $x + ')';
135
+ }
136
136
 
137
- // Less than or equal (<= inf / anything)
138
- @elseif ($op == 'lte') {
139
- $media: 'screen';
140
- }
137
+ // Less than or equal (<= inf / anything)
138
+ @elseif ($op == 'lte') {
139
+ $media: 'screen';
140
+ }
141
141
 
142
- // Greater than (> inf / invalid)
143
- @elseif ($op == 'gt') {
144
- $media: 'screen and (max-width: -1px)';
145
- }
142
+ // Greater than (> inf / invalid)
143
+ @elseif ($op == 'gt') {
144
+ $media: 'screen and (max-width: -1px)';
145
+ }
146
146
 
147
- // Less than (< x)
148
- @elseif ($op == 'lt') {
149
- $media: 'screen and (max-width: ' + ($x - 1) + ')';
150
- }
147
+ // Less than (< x)
148
+ @elseif ($op == 'lt') {
149
+ $media: 'screen and (max-width: ' + ($x - 1) + ')';
150
+ }
151
151
 
152
- // Not (< x)
153
- @elseif ($op == 'not') {
154
- $media: 'screen and (max-width: ' + ($x - 1) + ')';
155
- }
152
+ // Not (< x)
153
+ @elseif ($op == 'not') {
154
+ $media: 'screen and (max-width: ' + ($x - 1) + ')';
155
+ }
156
156
 
157
- // Equal (>= x)
158
- @else {
159
- $media: 'screen and (min-width: ' + $x + ')';
160
- }
157
+ // Equal (>= x)
158
+ @else {
159
+ $media: 'screen and (min-width: ' + $x + ')';
160
+ }
161
161
 
162
- }
162
+ }
163
163
 
164
- // Min and max.
165
- @else {
164
+ // Min and max.
165
+ @else {
166
166
 
167
- // Greater than or equal (>= x)
168
- @if ($op == 'gte') {
169
- $media: 'screen and (min-width: ' + $x + ')';
170
- }
167
+ // Greater than or equal (>= x)
168
+ @if ($op == 'gte') {
169
+ $media: 'screen and (min-width: ' + $x + ')';
170
+ }
171
171
 
172
- // Less than or equal (<= y)
173
- @elseif ($op == 'lte') {
174
- $media: 'screen and (max-width: ' + $y + ')';
175
- }
172
+ // Less than or equal (<= y)
173
+ @elseif ($op == 'lte') {
174
+ $media: 'screen and (max-width: ' + $y + ')';
175
+ }
176
176
 
177
- // Greater than (> y)
178
- @elseif ($op == 'gt') {
179
- $media: 'screen and (min-width: ' + ($y + 1) + ')';
180
- }
177
+ // Greater than (> y)
178
+ @elseif ($op == 'gt') {
179
+ $media: 'screen and (min-width: ' + ($y + 1) + ')';
180
+ }
181
181
 
182
- // Less than (< x)
183
- @elseif ($op == 'lt') {
184
- $media: 'screen and (max-width: ' + ($x - 1) + ')';
185
- }
182
+ // Less than (< x)
183
+ @elseif ($op == 'lt') {
184
+ $media: 'screen and (max-width: ' + ($x - 1) + ')';
185
+ }
186
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
- }
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
- // Output.
219
- @media #{$media} {
220
- @content;
221
- }
218
+ // Output.
219
+ @media #{$media} {
220
+ @content;
221
+ }
222
222
 
223
- }
223
+ }