tessellate 0.1.1 → 0.1.3
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 +4 -4
- data/_config.yml +1 -1
- data/_data/navigation.yml +61 -0
- data/_includes/_navigation.html +140 -0
- data/_includes/contact_form.html +8 -5
- data/_includes/footer.html +1 -1
- data/_includes/header.html +0 -8
- data/_includes/navigation.html +43 -0
- data/_layouts/default.html +21 -0
- data/_layouts/page.html +4 -1
- data/_layouts/section_four.html +40 -0
- data/_layouts/section_one.html +6 -1
- data/_layouts/section_three.html +9 -2
- data/_layouts/section_two.html +11 -2
- data/_sass/custom.scss +4 -0
- data/{assets/sass → _sass}/libs/_breakpoints.scss +18 -18
- data/{assets/sass → _sass}/libs/_html-grid.scss +2 -2
- data/{assets/sass → _sass}/libs/_mixins.scss +1 -1
- data/{assets/sass → _sass}/libs/_vendor.scss +2 -2
- data/{assets/sass/main.scss → _sass/tessellate.scss} +60 -0
- data/assets/css/style.scss +6 -0
- metadata +15 -9
- data/assets/css/main.css +0 -1524
- /data/{assets/sass → _sass}/libs/_functions.scss +0 -0
- /data/{assets/sass → _sass}/libs/_vars.scss +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6158448256cf518a2ad78cd350258c1d87dba1cef77103479c0b3a6b4cbd2e55
|
4
|
+
data.tar.gz: 0c4a6f83d24f9b8adbff55768c0d1e3dd960dcb82f6225f69c901aa5eac7c47f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6e598197b99396af5f94715de1911cd227e75c01204045c5efe095155750bcddbdf768f4e4570e5781abdd84d889b6c937a26dda89cc0a46cd55a36e4a4e5e
|
7
|
+
data.tar.gz: 25d03db0c72762dd2ef06cf8da3124d9c5166fa728e842f20c88145c7ed6bd562af2f0cf13eaa3067d8d69a5bb5672caced48b37c05f2688e98228ca4b1de4d4
|
data/_config.yml
CHANGED
@@ -0,0 +1,61 @@
|
|
1
|
+
- title: Home
|
2
|
+
url: "/"
|
3
|
+
side: left
|
4
|
+
|
5
|
+
- title: About
|
6
|
+
url: "/about/project/"
|
7
|
+
side: left
|
8
|
+
dropdown:
|
9
|
+
- title: "Project"
|
10
|
+
url: "/about/project/"
|
11
|
+
- title: "Team"
|
12
|
+
url: "/about/team/"
|
13
|
+
|
14
|
+
- title: Research
|
15
|
+
url: "/research/"
|
16
|
+
side: left
|
17
|
+
dropdown:
|
18
|
+
- title: "Task 1"
|
19
|
+
url: "/research/task-1/"
|
20
|
+
- title: "Task 2"
|
21
|
+
url: "/research/task-2/"
|
22
|
+
- title: "Task 3"
|
23
|
+
url: "/research/task-3/"
|
24
|
+
- title: "Task 4"
|
25
|
+
url: "/research/task-4/"
|
26
|
+
- title: "Task 5"
|
27
|
+
url: "/research/task-5/"
|
28
|
+
- title: "Task 6"
|
29
|
+
url: "/research/task-6/"
|
30
|
+
|
31
|
+
- title: "Education & Outreach"
|
32
|
+
url: "/education-outreach/"
|
33
|
+
side: left
|
34
|
+
|
35
|
+
- title: Resources
|
36
|
+
url: "/resources/"
|
37
|
+
side: left
|
38
|
+
dropdown:
|
39
|
+
- title: "Publications"
|
40
|
+
url: "/resources/publications/"
|
41
|
+
- title: "Code"
|
42
|
+
url: "/resources/code/"
|
43
|
+
- title: "Data"
|
44
|
+
url: "/resources/data/"
|
45
|
+
|
46
|
+
- title: "News & Events"
|
47
|
+
url: "/news-and-events/"
|
48
|
+
side: left
|
49
|
+
dropdown:
|
50
|
+
- title: "News"
|
51
|
+
url: "/news-and-events/news/"
|
52
|
+
- title: "Calendar"
|
53
|
+
url: "/calendar/"
|
54
|
+
|
55
|
+
- title: "Search"
|
56
|
+
url: "/search/"
|
57
|
+
side: right
|
58
|
+
|
59
|
+
- title: "Contact"
|
60
|
+
url: "/contact/"
|
61
|
+
side: right
|
@@ -0,0 +1,140 @@
|
|
1
|
+
{% comment %}
|
2
|
+
*
|
3
|
+
* To customize the navigation of *Feeling Responsive*,
|
4
|
+
* edit `_data/navigation.yml`.
|
5
|
+
*
|
6
|
+
{% endcomment %}
|
7
|
+
<div id="navigation" class="sticky">
|
8
|
+
<nav class="top-bar" role="navigation" data-topbar data-options="scrolltop: false">
|
9
|
+
<ul class="title-area">
|
10
|
+
<li class="name">
|
11
|
+
<h1 class="hide-for-large-up"><a href="{{ site.url }}{{ site.baseurl }}"
|
12
|
+
class="icon-network"> {{ site.title }}</a></h1>
|
13
|
+
</li>
|
14
|
+
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
|
15
|
+
<li class="toggle-topbar toggle-topbar-click menu-icon"><a><span>Nav</span></a></li>
|
16
|
+
</ul>
|
17
|
+
<section class="top-bar-section">
|
18
|
+
{% comment %}
|
19
|
+
|
20
|
+
__ ______ _ __ _ __ _
|
21
|
+
/ / ___ / __/ /_ / | / /___ __ __(_)___ _____ _/ /_(_)___ ____
|
22
|
+
/ / / _ \/ /_/ __/ / |/ / __ `/ | / / / __ `/ __ `/ __/ / __ \/ __ \
|
23
|
+
/ /___/ __/ __/ /_ / /| / /_/ /| |/ / / /_/ / /_/ / /_/ / /_/ / / / /
|
24
|
+
/_____/\___/_/ \__/ /_/ |_/\__,_/ |___/_/\__, /\__,_/\__/_/\____/_/ /_/
|
25
|
+
/____/
|
26
|
+
|
27
|
+
{% endcomment %}
|
28
|
+
<ul class="left">
|
29
|
+
{% for link in site.data.navigation %}
|
30
|
+
|
31
|
+
{% if link.url contains 'http' %}
|
32
|
+
{% assign domain = '' %}
|
33
|
+
{% assign _baseurl = '' %}
|
34
|
+
{% elsif link.url == '#' %}
|
35
|
+
{% assign domain = '' %}
|
36
|
+
{% assign _baseurl = site.baseurl %}
|
37
|
+
{% else %}
|
38
|
+
{% assign domain = site.url %}
|
39
|
+
{% assign _baseurl = site.baseurl %}
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
{% comment %} If there are links for left side begin {% endcomment %}
|
43
|
+
{% if link.side == 'left' %}
|
44
|
+
|
45
|
+
{% comment %} If left side WITHOUT dropdown menu do {% endcomment %}
|
46
|
+
{% if link.dropdown == nil %}
|
47
|
+
<li{% if link.url == page.url %} class="active"{% elsif page.homepage == true and link.url == '/' %} class="active"{% endif %}><a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a></li>
|
48
|
+
<li class="divider"></li>
|
49
|
+
|
50
|
+
{% comment %} If left side WITH dropdown menu do {% endcomment %}
|
51
|
+
{% else %}
|
52
|
+
|
53
|
+
<li class="has-dropdown{% if link.url == page.url %} active{% endif %}">
|
54
|
+
<a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a>
|
55
|
+
|
56
|
+
<ul class="dropdown">
|
57
|
+
{% for dropdown_link in link.dropdown %}
|
58
|
+
|
59
|
+
{% if dropdown_link.url contains 'http' %}
|
60
|
+
{% assign domain = '' %}
|
61
|
+
{% else %}
|
62
|
+
{% assign domain = site.url %}
|
63
|
+
{% endif %}
|
64
|
+
|
65
|
+
<li><a {% if dropdown_link.class %}class="{{dropdown_link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ dropdown_link.url }}"{% if dropdown_link.url contains 'http' %} target="_blank"{% endif %}>{{ dropdown_link.title | escape }}</a></li>
|
66
|
+
{% endfor %}
|
67
|
+
</ul>
|
68
|
+
|
69
|
+
</li>
|
70
|
+
<li class="divider"></li>
|
71
|
+
{% endif %}
|
72
|
+
{% endif %}
|
73
|
+
{% endfor %}
|
74
|
+
{% comment %} Second loop finished {% endcomment %}
|
75
|
+
</ul>
|
76
|
+
|
77
|
+
|
78
|
+
{% comment %}
|
79
|
+
|
80
|
+
____ _ __ __ _ __ _ __ _
|
81
|
+
/ __ \(_)___ _/ /_ / /_ / | / /___ __ __(_)___ _____ _/ /_(_)___ ____
|
82
|
+
/ /_/ / / __ `/ __ \/ __/ / |/ / __ `/ | / / / __ `/ __ `/ __/ / __ \/ __ \
|
83
|
+
/ _, _/ / /_/ / / / / /_ / /| / /_/ /| |/ / / /_/ / /_/ / /_/ / /_/ / / / /
|
84
|
+
/_/ |_/_/\__, /_/ /_/\__/ /_/ |_/\__,_/ |___/_/\__, /\__,_/\__/_/\____/_/ /_/
|
85
|
+
/____/ /____/
|
86
|
+
|
87
|
+
{% endcomment %}
|
88
|
+
<ul class="right">
|
89
|
+
{% for link in site.data.navigation %}
|
90
|
+
|
91
|
+
{% if link.url contains 'http' %}
|
92
|
+
{% assign domain = '' %}
|
93
|
+
{% assign _baseurl = '' %}
|
94
|
+
{% elsif link.url == '#' %}
|
95
|
+
{% assign domain = '' %}
|
96
|
+
{% assign _baseurl = site.baseurl %}
|
97
|
+
{% else %}
|
98
|
+
{% assign domain = site.url %}
|
99
|
+
{% assign _baseurl = site.baseurl %}
|
100
|
+
{% endif %}
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
{% comment %} If there are links for right side begin {% endcomment %}
|
105
|
+
{% if link.side == 'right' %}
|
106
|
+
{% comment %} If right side WITHOUT dropdown menu do {% endcomment %}
|
107
|
+
{% if link.dropdown == nil %}
|
108
|
+
<li class="divider"></li>
|
109
|
+
<li{% if link.url == page.url %} class="active"{% elsif page.homepage == true and link.url == '/' %} class="active"{% endif %}><a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a></li>
|
110
|
+
|
111
|
+
{% comment %} If right side WITH dropdown menu do {% endcomment %}
|
112
|
+
{% else %}
|
113
|
+
|
114
|
+
<li class="divider"></li>
|
115
|
+
<li class="has-dropdown{% if link.url == page.url %} active{% endif %}">
|
116
|
+
<a {% if link.class %}class="{{link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ link.url }}"{% if link.url contains 'http' %} target="_blank"{% endif %}>{{ link.title | escape }}</a>
|
117
|
+
|
118
|
+
<ul class="dropdown">
|
119
|
+
{% for dropdown_link in link.dropdown %}
|
120
|
+
|
121
|
+
{% if dropdown_link.url contains 'http' %}
|
122
|
+
{% assign domain = '' %}
|
123
|
+
{% else %}
|
124
|
+
{% assign domain = site.url %}
|
125
|
+
{% endif %}
|
126
|
+
|
127
|
+
<li><a {% if dropdown_link.class %}class="{{dropdown_link.class}}"{% endif %} href="{{ domain }}{{ _baseurl }}{{ dropdown_link.url }}"{% if dropdown_link.url contains 'http' %} target="_blank"{% endif %}>{{ dropdown_link.title | escape }}</a></li>
|
128
|
+
{% endfor %}
|
129
|
+
</ul>
|
130
|
+
|
131
|
+
</li>
|
132
|
+
{% endif %}
|
133
|
+
{% endif %}
|
134
|
+
{% endfor %}
|
135
|
+
{% comment %} First loop finished 1 {% endcomment %}
|
136
|
+
</ul>
|
137
|
+
|
138
|
+
</section>
|
139
|
+
</nav>
|
140
|
+
</div><!-- /#navigation -->
|
data/_includes/contact_form.html
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
<!-- Contact form
|
2
2
|
Check out formspree for an easy way to get forms!
|
3
3
|
Setup a new form and then include the contact form with the form_id!
|
4
|
-
|
4
|
+
-->
|
5
5
|
{% comment %}
|
6
|
-
|
6
|
+
To use this contact form use the following:
|
7
7
|
{% include contact_form.html form_id="yourFormIDHere" %}
|
8
|
-
|
9
8
|
{% endcomment %}
|
10
|
-
|
11
|
-
|
9
|
+
{% if include.section_id %}
|
10
|
+
{% assign section-id = include.section_id %}
|
11
|
+
{% else %}
|
12
|
+
{% assign section-id = "contact" %}
|
13
|
+
{% endif %}
|
14
|
+
<section id="{{ section-id }}" class="main">
|
12
15
|
<header>
|
13
16
|
<div class="container">
|
14
17
|
<h2>{{ include.section_title }}</h2>
|
data/_includes/footer.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<li>
|
7
7
|
<a
|
8
8
|
href="{{ social.link }}"
|
9
|
-
class="icon
|
9
|
+
class="icon {% if social.icon %}{% elsif social.icon_class %}{{ social.icon_class }}{% else %}brands fa-brands fa-{{ social.name | downcase }}{% endif %}"
|
10
10
|
{% if social.icon %}
|
11
11
|
style="background-image: url({{ social.icon }})"
|
12
12
|
{% endif %}
|
data/_includes/header.html
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
-
<!-- Header include for image and CTA
|
2
|
-
header:
|
3
|
-
title: Title Goes Here
|
4
|
-
subtitle: A short sentence for a subtitle
|
5
|
-
cta:
|
6
|
-
link: #first
|
7
|
-
text: Proceed to #first element
|
8
|
-
-->
|
9
1
|
<section id="header" class="dark"
|
10
2
|
{% if include.header.background_image %}
|
11
3
|
style="background-image:{{ include.header.background_image }};"
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="row navbar">
|
2
|
+
{% assign navigation_left = site.data.navigation | where: "side", "left" %}
|
3
|
+
{% assign navigation_right = site.data.navigation | where: "side", "right" %}
|
4
|
+
{% for item in navigation_left %}
|
5
|
+
<div class="nav-item col-md-2">
|
6
|
+
<a href="{{ item.url }}" class="btn btn-primary btn-block">{{ item.title }}</a>
|
7
|
+
{% if item.dropdown %}
|
8
|
+
<ul class="dropdown">
|
9
|
+
{% for dropdown_item in item.dropdown %}
|
10
|
+
<li>
|
11
|
+
<a
|
12
|
+
href="{{ dropdown_item.url }}"
|
13
|
+
class="btn btn-primary btn-block"
|
14
|
+
>{{ dropdown_item.title }}</a>
|
15
|
+
</li>
|
16
|
+
{% endfor %}
|
17
|
+
</ul>
|
18
|
+
{% endif %}
|
19
|
+
</div>
|
20
|
+
{% endfor %}
|
21
|
+
{% for item in navigation_right %}
|
22
|
+
{% if forloop.first %}
|
23
|
+
<div class="nav-item col-md-2" style="margin-left: auto;">
|
24
|
+
{% else %}
|
25
|
+
<div class="nav-item col-md-2">
|
26
|
+
{% endif %}
|
27
|
+
<a href="{{ item.url }}" class="btn btn-primary btn-block">{{ item.title }}</a>
|
28
|
+
{% if item.dropdown %}
|
29
|
+
<ul class="dropdown col-md-2">
|
30
|
+
{% for dropdown_item in item.dropdown %}
|
31
|
+
<li>
|
32
|
+
<a
|
33
|
+
href="{{ dropdown_item.url }}"
|
34
|
+
class="btn btn-primary btn-block"
|
35
|
+
>{{ dropdown_item.title }}</a>
|
36
|
+
</li>
|
37
|
+
{% endfor %}
|
38
|
+
</ul>
|
39
|
+
{% endif %}
|
40
|
+
</div>
|
41
|
+
{% endfor %}
|
42
|
+
</div>
|
43
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{% if page.section-id %}
|
2
|
+
{% assign section-id = page.section-id %}
|
3
|
+
{% else %}
|
4
|
+
{% assign section-id = page.title %}
|
5
|
+
{% endif %}
|
6
|
+
<section id="{{ section-id }}" class="main">
|
7
|
+
{% if page.header %}
|
8
|
+
<header>
|
9
|
+
<div class="container">
|
10
|
+
<h2>{{ page.header.title }}</h2>
|
11
|
+
<p>{{ page.header.body }}</p>
|
12
|
+
</div>
|
13
|
+
</header>
|
14
|
+
{% endif %}
|
15
|
+
<div class="content dark style4 featured">
|
16
|
+
<div class="container">
|
17
|
+
{{ content }}
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</section>
|
21
|
+
|
data/_layouts/page.html
CHANGED
@@ -10,9 +10,12 @@
|
|
10
10
|
<title>{{ title }}</title>
|
11
11
|
<meta charset="utf-8" />
|
12
12
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
13
|
-
|
13
|
+
<link rel="stylesheet" href="/assets/css/style.css" />
|
14
14
|
</head>
|
15
15
|
<body class="is-preload">
|
16
|
+
{% if site.data.navigation %}
|
17
|
+
{% include navigation.html %}
|
18
|
+
{% endif %}
|
16
19
|
<!-- Header -->
|
17
20
|
{% include header.html
|
18
21
|
header=page.header
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{% if page.section-id %}
|
2
|
+
{% assign section-id = page.section-id %}
|
3
|
+
{% else %}
|
4
|
+
{% assign section-id = page.title %}
|
5
|
+
{% endif %}
|
6
|
+
<section id="{{ section-id }}" class="main">
|
7
|
+
{% if page.header %}
|
8
|
+
<header>
|
9
|
+
<div class="container">
|
10
|
+
<h2>{{ page.header.title }}</h2>
|
11
|
+
<p>{{ page.header.body }}</p>
|
12
|
+
</div>
|
13
|
+
</header>
|
14
|
+
{% endif %}
|
15
|
+
<div class="content dark style3">
|
16
|
+
<div class="container">
|
17
|
+
{% if page.image %}
|
18
|
+
<span class="image featured"><img src="{{ page.image }}" alt="" /></span>
|
19
|
+
{% endif %}
|
20
|
+
<div class="row">
|
21
|
+
{% assign column_width = 4 %}
|
22
|
+
{% if page.columns %}
|
23
|
+
{% assign column_width = 12 | divided_by: page.columns %}
|
24
|
+
{% endif %}
|
25
|
+
{% assign content_split = page.content | markdown_split %}
|
26
|
+
{% for body in content_split %}
|
27
|
+
<div class="col-{{ column_width }} col-12-narrow">
|
28
|
+
{{ body | markdownify }}
|
29
|
+
</div>
|
30
|
+
{% endfor %}
|
31
|
+
</div>
|
32
|
+
{% if page.cta %}
|
33
|
+
<footer>
|
34
|
+
<a href="{{ page.cta.link }}" class="button scrolly">{{ page.cta.text }}</a>
|
35
|
+
</footer>
|
36
|
+
{% endif %}
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</section>
|
40
|
+
|
data/_layouts/section_one.html
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
{% if page.section-id %}
|
2
|
+
{% assign section-id = page.section-id %}
|
3
|
+
{% else %}
|
4
|
+
{% assign section-id = page.title %}
|
5
|
+
{% endif %}
|
6
|
+
<section id="{{ section-id }}" class="main">
|
2
7
|
{% if page.header %}
|
3
8
|
<header>
|
4
9
|
<div class="container">
|
data/_layouts/section_three.html
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
{% if page.section-id %}
|
2
|
+
{% assign section-id = page.section-id %}
|
3
|
+
{% else %}
|
4
|
+
{% assign section-id = page.title %}
|
5
|
+
{% endif %}
|
6
|
+
<section id="{{ section-id }}" class="main">
|
2
7
|
{% if page.header %}
|
3
8
|
<header>
|
4
9
|
<div class="container">
|
@@ -9,7 +14,9 @@
|
|
9
14
|
{% endif %}
|
10
15
|
<div class="content dark style3">
|
11
16
|
<div class="container">
|
12
|
-
|
17
|
+
{% if page.image %}
|
18
|
+
<span class="image featured"><img src="{{ page.image }}" alt="" /></span>
|
19
|
+
{% endif %}
|
13
20
|
<div class="row">
|
14
21
|
{% assign content_body = page.content | split: " " %}
|
15
22
|
{% assign length = content_body | size %}
|
data/_layouts/section_two.html
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
{% if page.section-id %}
|
2
|
+
{% assign section-id = page.section-id %}
|
3
|
+
{% else %}
|
4
|
+
{% assign section-id = page.title %}
|
5
|
+
{% endif %}
|
6
|
+
<section id="{{ section-id }}" class="main">
|
2
7
|
{% if page.header %}
|
3
8
|
<header>
|
4
9
|
<div class="container">
|
@@ -22,8 +27,12 @@
|
|
22
27
|
</div>
|
23
28
|
<div class="col-8 col-12-narrow">
|
24
29
|
<div class="row">
|
30
|
+
{% assign column_width = 12 %}
|
31
|
+
{% if page.images.size > 2 %}
|
32
|
+
{% assign column_width = 6 %}
|
33
|
+
{% endif %}
|
25
34
|
{% for image in page.images %}
|
26
|
-
<div class="col-
|
35
|
+
<div class="col-{{ column_width }}">
|
27
36
|
<a href="{{ image.link }}" class="image fit">
|
28
37
|
<img
|
29
38
|
src="{{ image.url }}"
|
data/_sass/custom.scss
ADDED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
/// Breakpoints.
|
6
6
|
/// @var {list}
|
7
|
-
$breakpoints: ()
|
7
|
+
$breakpoints: ();
|
8
8
|
|
9
9
|
// Mixins.
|
10
10
|
|
@@ -41,7 +41,7 @@
|
|
41
41
|
}
|
42
42
|
|
43
43
|
// Less than or equal.
|
44
|
-
@
|
44
|
+
@else if (str-slice($query, 0, 2) == '<=') {
|
45
45
|
|
46
46
|
$op: 'lte';
|
47
47
|
$breakpoint: str-slice($query, 3);
|
@@ -49,7 +49,7 @@
|
|
49
49
|
}
|
50
50
|
|
51
51
|
// Greater than.
|
52
|
-
@
|
52
|
+
@else if (str-slice($query, 0, 1) == '>') {
|
53
53
|
|
54
54
|
$op: 'gt';
|
55
55
|
$breakpoint: str-slice($query, 2);
|
@@ -57,7 +57,7 @@
|
|
57
57
|
}
|
58
58
|
|
59
59
|
// Less than.
|
60
|
-
@
|
60
|
+
@else if (str-slice($query, 0, 1) == '<') {
|
61
61
|
|
62
62
|
$op: 'lt';
|
63
63
|
$breakpoint: str-slice($query, 2);
|
@@ -65,7 +65,7 @@
|
|
65
65
|
}
|
66
66
|
|
67
67
|
// Not.
|
68
|
-
@
|
68
|
+
@else if (str-slice($query, 0, 1) == '!') {
|
69
69
|
|
70
70
|
$op: 'not';
|
71
71
|
$breakpoint: str-slice($query, 2);
|
@@ -100,22 +100,22 @@
|
|
100
100
|
}
|
101
101
|
|
102
102
|
// Less than or equal (<= y)
|
103
|
-
@
|
103
|
+
@else if ($op == 'lte') {
|
104
104
|
$media: 'screen and (max-width: ' + $y + ')';
|
105
105
|
}
|
106
106
|
|
107
107
|
// Greater than (> y)
|
108
|
-
@
|
108
|
+
@else if ($op == 'gt') {
|
109
109
|
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
110
110
|
}
|
111
111
|
|
112
112
|
// Less than (< 0 / invalid)
|
113
|
-
@
|
113
|
+
@else if ($op == 'lt') {
|
114
114
|
$media: 'screen and (max-width: -1px)';
|
115
115
|
}
|
116
116
|
|
117
117
|
// Not (> y)
|
118
|
-
@
|
118
|
+
@else if ($op == 'not') {
|
119
119
|
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
120
120
|
}
|
121
121
|
|
@@ -135,22 +135,22 @@
|
|
135
135
|
}
|
136
136
|
|
137
137
|
// Less than or equal (<= inf / anything)
|
138
|
-
@
|
138
|
+
@else if ($op == 'lte') {
|
139
139
|
$media: 'screen';
|
140
140
|
}
|
141
141
|
|
142
142
|
// Greater than (> inf / invalid)
|
143
|
-
@
|
143
|
+
@else if ($op == 'gt') {
|
144
144
|
$media: 'screen and (max-width: -1px)';
|
145
145
|
}
|
146
146
|
|
147
147
|
// Less than (< x)
|
148
|
-
@
|
148
|
+
@else if ($op == 'lt') {
|
149
149
|
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
150
150
|
}
|
151
151
|
|
152
152
|
// Not (< x)
|
153
|
-
@
|
153
|
+
@else if ($op == 'not') {
|
154
154
|
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
155
155
|
}
|
156
156
|
|
@@ -170,22 +170,22 @@
|
|
170
170
|
}
|
171
171
|
|
172
172
|
// Less than or equal (<= y)
|
173
|
-
@
|
173
|
+
@else if ($op == 'lte') {
|
174
174
|
$media: 'screen and (max-width: ' + $y + ')';
|
175
175
|
}
|
176
176
|
|
177
177
|
// Greater than (> y)
|
178
|
-
@
|
178
|
+
@else if ($op == 'gt') {
|
179
179
|
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
180
180
|
}
|
181
181
|
|
182
182
|
// Less than (< x)
|
183
|
-
@
|
183
|
+
@else if ($op == 'lt') {
|
184
184
|
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
185
185
|
}
|
186
186
|
|
187
187
|
// Not (< x and > y)
|
188
|
-
@
|
188
|
+
@else if ($op == 'not') {
|
189
189
|
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
|
190
190
|
}
|
191
191
|
|
@@ -220,4 +220,4 @@
|
|
220
220
|
@content;
|
221
221
|
}
|
222
222
|
|
223
|
-
}
|
223
|
+
}
|
@@ -362,7 +362,7 @@
|
|
362
362
|
}
|
363
363
|
|
364
364
|
// Expand just the value?
|
365
|
-
@
|
365
|
+
@else if $expandValue {
|
366
366
|
@each $vendor in $vendor-prefixes {
|
367
367
|
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
368
368
|
}
|
@@ -373,4 +373,4 @@
|
|
373
373
|
#{$property}: #{$value};
|
374
374
|
}
|
375
375
|
|
376
|
-
}
|
376
|
+
}
|