jekyll-theme-ethereal 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +437 -0
- data/README.md +538 -0
- data/_includes/banner.html +22 -0
- data/_includes/contact.html +34 -0
- data/_includes/date.html +24 -0
- data/_includes/footer.html +14 -0
- data/_includes/head.html +14 -0
- data/_includes/language.html +14 -0
- data/_includes/logo.html +1 -0
- data/_includes/panel.html +18 -0
- data/_includes/scripts.html +18 -0
- data/_includes/social.html +36 -0
- data/_includes/spotlight.html +12 -0
- data/_includes/thread.html +25 -0
- data/_layouts/default.html +41 -0
- data/_layouts/home.html +8 -0
- data/_layouts/page.html +4 -0
- data/_layouts/post.html +27 -0
- data/_layouts/redirect.html +10 -0
- data/_layouts/sitemap.html +22 -0
- data/_sass/base/_page.scss +117 -0
- data/_sass/base/_reset.scss +76 -0
- data/_sass/base/_typography.scss +271 -0
- data/_sass/components/_actions.scss +63 -0
- data/_sass/components/_button.scss +154 -0
- data/_sass/components/_contact-icons.scss +72 -0
- data/_sass/components/_cookieconsent.scss +403 -0
- data/_sass/components/_form.scss +279 -0
- data/_sass/components/_gallery.scss +218 -0
- data/_sass/components/_grid-icons.scss +166 -0
- data/_sass/components/_icon.scss +33 -0
- data/_sass/components/_icons.scss +28 -0
- data/_sass/components/_image.scss +169 -0
- data/_sass/components/_list.scss +56 -0
- data/_sass/components/_panel-banner.scss +90 -0
- data/_sass/components/_panel-spotlight.scss +81 -0
- data/_sass/components/_panel.scss +300 -0
- data/_sass/components/_table.scss +81 -0
- data/_sass/layout/_footer.scss +49 -0
- data/_sass/layout/_header.scss +37 -0
- data/_sass/layout/_page-wrapper.scss +43 -0
- data/_sass/layout/_wrapper.scss +118 -0
- data/_sass/libs/_breakpoints.scss +223 -0
- data/_sass/libs/_functions.scss +90 -0
- data/_sass/libs/_mixins.scss +78 -0
- data/_sass/libs/_vars.scss +49 -0
- data/_sass/libs/_vendor.scss +376 -0
- data/_sass/main.scss +135 -0
- data/_sass/noscript.scss +26 -0
- data/assets/css/fontawesome-all.min.css +5 -0
- data/assets/css/main.scss +5 -0
- data/assets/css/noscript.scss +5 -0
- data/assets/images/bg.jpg +0 -0
- data/assets/images/drone.jpg +0 -0
- data/assets/images/gallery/fulls/01.jpg +0 -0
- data/assets/images/gallery/fulls/02.jpg +0 -0
- data/assets/images/gallery/fulls/03.jpg +0 -0
- data/assets/images/gallery/fulls/04.jpg +0 -0
- data/assets/images/gallery/fulls/05.jpg +0 -0
- data/assets/images/gallery/fulls/06.jpg +0 -0
- data/assets/images/gallery/fulls/07.jpg +0 -0
- data/assets/images/gallery/fulls/08.jpg +0 -0
- data/assets/images/gallery/fulls/09.jpg +0 -0
- data/assets/images/gallery/thumbs/01.jpg +0 -0
- data/assets/images/gallery/thumbs/02.jpg +0 -0
- data/assets/images/gallery/thumbs/03.jpg +0 -0
- data/assets/images/gallery/thumbs/04.jpg +0 -0
- data/assets/images/gallery/thumbs/05.jpg +0 -0
- data/assets/images/gallery/thumbs/06.jpg +0 -0
- data/assets/images/gallery/thumbs/07.jpg +0 -0
- data/assets/images/gallery/thumbs/08.jpg +0 -0
- data/assets/images/gallery/thumbs/09.jpg +0 -0
- data/assets/images/jupiter_abyss.jpg +0 -0
- data/assets/images/jupiter_storms.jpg +0 -0
- data/assets/images/ngc-1156.jpg +0 -0
- data/assets/images/ngc-3169.jpg +0 -0
- data/assets/images/orion_las.jpg +0 -0
- data/assets/images/overlay.png +0 -0
- data/assets/images/pic01.jpg +0 -0
- data/assets/images/pic02.jpg +0 -0
- data/assets/images/pic03.jpg +0 -0
- data/assets/images/pillars-of-creation.jpg +0 -0
- data/assets/images/saturn_testing.jpg +0 -0
- data/assets/images/sls-core_staging.jpg +0 -0
- data/assets/images/zeta-ophiuchi.jpg +0 -0
- data/assets/js/breakpoints.min.js +2 -0
- data/assets/js/browser.min.js +2 -0
- data/assets/js/cookieconsent.min.js +1 -0
- data/assets/js/jquery.min.js +2 -0
- data/assets/js/main.js +759 -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
- data/sitemap.md +4 -0
- metadata +192 -0
@@ -0,0 +1,81 @@
|
|
1
|
+
///
|
2
|
+
/// Ethereal 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
|
+
/* Table */
|
8
|
+
|
9
|
+
.table-wrapper {
|
10
|
+
-webkit-overflow-scrolling: touch;
|
11
|
+
overflow-x: auto;
|
12
|
+
}
|
13
|
+
|
14
|
+
table {
|
15
|
+
margin: 0 0 _size(element-margin) 0;
|
16
|
+
width: 100%;
|
17
|
+
|
18
|
+
tbody {
|
19
|
+
tr {
|
20
|
+
border: solid 1px _palette(border);
|
21
|
+
border-left: 0;
|
22
|
+
border-right: 0;
|
23
|
+
|
24
|
+
&:nth-child(2n + 1) {
|
25
|
+
background-color: _palette(border-bg);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
td {
|
31
|
+
padding: 0.75rem 0.75rem;
|
32
|
+
}
|
33
|
+
|
34
|
+
th {
|
35
|
+
color: _palette(fg-bold);
|
36
|
+
font-size: 0.9rem;
|
37
|
+
font-weight: _font(weight-bold);
|
38
|
+
padding: 0 0.75rem 0.75rem 0.75rem;
|
39
|
+
text-align: left;
|
40
|
+
}
|
41
|
+
|
42
|
+
thead {
|
43
|
+
border-bottom: solid 2px _palette(border);
|
44
|
+
}
|
45
|
+
|
46
|
+
tfoot {
|
47
|
+
border-top: solid 2px _palette(border);
|
48
|
+
}
|
49
|
+
|
50
|
+
&.alt {
|
51
|
+
border-collapse: separate;
|
52
|
+
|
53
|
+
tbody {
|
54
|
+
tr {
|
55
|
+
td {
|
56
|
+
border: solid 1px _palette(border);
|
57
|
+
border-left-width: 0;
|
58
|
+
border-top-width: 0;
|
59
|
+
|
60
|
+
&:first-child {
|
61
|
+
border-left-width: 1px;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
&:first-child {
|
66
|
+
td {
|
67
|
+
border-top-width: 1px;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
thead {
|
74
|
+
border-bottom: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
tfoot {
|
78
|
+
border-top: 0;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/* Header */
|
2
|
+
|
3
|
+
#footer {
|
4
|
+
z-index: 1000;
|
5
|
+
position: fixed;
|
6
|
+
bottom: 0;
|
7
|
+
right: 0;
|
8
|
+
width: 100%;
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
@include vendor('display', 'flex');
|
12
|
+
@include vendor('justify-content', 'space-between');
|
13
|
+
color: _palette(accent4);
|
14
|
+
|
15
|
+
.copyright {
|
16
|
+
li {
|
17
|
+
display: inline-block;
|
18
|
+
margin-left: 1em;
|
19
|
+
padding-left: 1em;
|
20
|
+
border-left: solid 1px rgba(255, 255, 255, 0.25);
|
21
|
+
line-height: 1em;
|
22
|
+
|
23
|
+
&:first-child {
|
24
|
+
border-left: 0;
|
25
|
+
margin-left: 0;
|
26
|
+
padding-left: 0;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@include breakpoint('<=small') {
|
32
|
+
@include vendor('flex-direction', 'column');
|
33
|
+
text-align: center;
|
34
|
+
padding: 3em;
|
35
|
+
|
36
|
+
.copyright {
|
37
|
+
li {
|
38
|
+
display: block;
|
39
|
+
margin: 0.75em 0 0 0;
|
40
|
+
padding-left: 0;
|
41
|
+
border-left: 0;
|
42
|
+
|
43
|
+
&:first-child {
|
44
|
+
margin-top: 0;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/* Header */
|
2
|
+
|
3
|
+
#language-selector {
|
4
|
+
z-index: 10002;
|
5
|
+
position: fixed;
|
6
|
+
top: 0;
|
7
|
+
right: 0;
|
8
|
+
text-align: right;
|
9
|
+
color: _palette(accent4);
|
10
|
+
|
11
|
+
li {
|
12
|
+
display: inline-block;
|
13
|
+
margin: 0;
|
14
|
+
margin-right: 1em;
|
15
|
+
padding: 0 1em 0 0;
|
16
|
+
|
17
|
+
&:last-child {
|
18
|
+
padding-right: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.icon {
|
22
|
+
color: inherit;
|
23
|
+
|
24
|
+
&:before {
|
25
|
+
font-size: 1.25em;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
a {
|
31
|
+
border: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
.en:lang(en), .fr:lang(fr), .de:lang(de){
|
35
|
+
font-weight: bold;
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
///
|
2
|
+
/// Ethereal 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
|
+
/* Page Wrapper */
|
8
|
+
|
9
|
+
#page-wrapper {
|
10
|
+
@include vendor('display', 'flex');
|
11
|
+
@include vendor('align-items', 'center');
|
12
|
+
@include vendor('justify-content', 'flex-start');
|
13
|
+
@include vendor('flex-grow', '1');
|
14
|
+
@include vendor('flex-shrink', '1');
|
15
|
+
height: 100%;
|
16
|
+
padding: 5rem;
|
17
|
+
|
18
|
+
@include orientation(portrait) {
|
19
|
+
padding-left: 2rem;
|
20
|
+
padding-right: 2rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
@include breakpoint('short') {
|
24
|
+
padding: 6vh;
|
25
|
+
}
|
26
|
+
|
27
|
+
@include breakpoint('xshort') {
|
28
|
+
padding: 0;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@include breakpoint('<=small') {
|
33
|
+
#page-wrapper {
|
34
|
+
height: auto;
|
35
|
+
padding: 1rem;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@include breakpoint('<=xsmall') {
|
40
|
+
#page-wrapper {
|
41
|
+
padding: 0;
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,118 @@
|
|
1
|
+
///
|
2
|
+
/// Ethereal 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');
|
12
|
+
@include vendor('transition', (
|
13
|
+
'opacity 1s ease-out',
|
14
|
+
'transform 0.75s ease-out'
|
15
|
+
));
|
16
|
+
@include vendor('transition-delay', '0.25s');
|
17
|
+
cursor: default;
|
18
|
+
position: relative;
|
19
|
+
height: 32rem;
|
20
|
+
box-shadow: 0 2rem 4rem 0.25rem transparentize(_palette(bg), 0.425);
|
21
|
+
|
22
|
+
> .scrollZone {
|
23
|
+
position: fixed;
|
24
|
+
width: 6rem;
|
25
|
+
height: inherit;
|
26
|
+
cursor: -moz-grab;
|
27
|
+
cursor: -webkit-grab;
|
28
|
+
cursor: -ms-grab;
|
29
|
+
cursor: grab;
|
30
|
+
z-index: _misc(z-index-base) + 100;
|
31
|
+
|
32
|
+
&.left {
|
33
|
+
left: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
&.right {
|
37
|
+
right: 0;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
> .copyright {
|
42
|
+
position: absolute;
|
43
|
+
bottom: -3rem;
|
44
|
+
right: 0;
|
45
|
+
font-size: 0.8rem;
|
46
|
+
color: transparentize(_palette(bg), 0.625);
|
47
|
+
margin-bottom: 0;
|
48
|
+
|
49
|
+
a {
|
50
|
+
&:hover {
|
51
|
+
color: inherit;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
&.is-dragging {
|
57
|
+
@include vendor('user-select', 'none');
|
58
|
+
cursor: -moz-grab;
|
59
|
+
cursor: -webkit-grab;
|
60
|
+
cursor: -ms-grab;
|
61
|
+
cursor: grab;
|
62
|
+
|
63
|
+
* {
|
64
|
+
@include vendor('user-select', 'none');
|
65
|
+
}
|
66
|
+
|
67
|
+
*:not(a, .image) {
|
68
|
+
cursor: -moz-grab;
|
69
|
+
cursor: -webkit-grab;
|
70
|
+
cursor: -ms-grab;
|
71
|
+
cursor: grab;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
&.is-dragged {
|
76
|
+
* {
|
77
|
+
@include vendor('pointer-events', 'none');
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
body.is-preload & {
|
82
|
+
@include vendor('transform', 'translateX(2rem)');
|
83
|
+
opacity: 0;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
@include breakpoint('<=small') {
|
88
|
+
#wrapper {
|
89
|
+
@include vendor('flex-direction', 'column');
|
90
|
+
height: auto;
|
91
|
+
margin: 0 0 5rem 0;
|
92
|
+
box-shadow: 0 0.25rem 1.5rem 0.25rem transparentize(_palette(bg), 0.5);
|
93
|
+
|
94
|
+
> .scrollZone {
|
95
|
+
display: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
> .copyright {
|
99
|
+
display: block;
|
100
|
+
width: 100%;
|
101
|
+
text-align: center;
|
102
|
+
}
|
103
|
+
|
104
|
+
body.is-preload & {
|
105
|
+
@include vendor('transform', 'translateY(1rem)');
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
@include breakpoint('<=xsmall') {
|
111
|
+
#wrapper {
|
112
|
+
box-shadow: none;
|
113
|
+
|
114
|
+
body.is-preload & {
|
115
|
+
@include vendor('transform', 'none');
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
@@ -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
|
+
}
|