jekyll-dash 1.3.3 → 1.4.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 +4 -4
- data/README.md +29 -8
- data/_includes/author.html +16 -3
- data/_includes/head.html +3 -0
- data/_includes/header.html +7 -1
- data/_layouts/home.html +11 -3
- data/_layouts/post.html +49 -2
- data/_layouts/tag_page.html +5 -3
- data/_sass/dash/_layout.scss +18 -4
- data/assets/avatar.png +0 -0
- data/assets/css/magnific-popup.css +351 -0
- data/assets/css/style.scss +6 -0
- data/assets/js/jquery.magnific-popup.js +1861 -0
- data/assets/js/jquery.magnific-popup.min.js +4 -0
- metadata +11 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de1ce65b9f22f8f2fac3eb380d4d048a63aff7865d0963674eb2ee3c43bc77ad
|
4
|
+
data.tar.gz: d4fef6add938fcf99a1143de0756ce247757698da720753c3a8bc778211347ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d81ecb6c79bc93472ef5f52e118497951fc2cccc3a7c8b2f4496759261c85b35b13c68bebe78abd04a85162ff7c0588484c140fb61924a03ac4415d99f9c25d
|
7
|
+
data.tar.gz: f83f385497777dba2de1af56f64c2a0a9bef8f46a557096e7138811ba5d594daff473c2f5e258009c0a8b547c4754251ed2ce38f9e2681a22035ae3b3ff960d6
|
data/README.md
CHANGED
@@ -3,8 +3,10 @@
|
|
3
3
|
|
4
4
|
A dark and light theme for Jekyll, inspired by Dash UI for Atom. 🌒☀
|
5
5
|
|
6
|
-
|
6
|
+

|
7
7
|
[](LICENSE.MD)
|
8
|
+
[](http://rubygems.org/gems/jekyll-dash "View this project in Rubygems")
|
9
|
+
[](https://rubygems.org/gems/jekyll-dash "Number of Gem downloads")
|
8
10
|
---
|
9
11
|
This theme for [Jekyll](https://jekyllrb.com/) has been inspired by [dash-ui](https://atom.io/themes/dash-ui), a dark theme for [Atom](https://atom.io).
|
10
12
|
|
@@ -14,8 +16,16 @@ This theme for [Jekyll](https://jekyllrb.com/) has been inspired by [dash-ui](ht
|
|
14
16
|
|
15
17
|
Add this line to your Jekyll site's `Gemfile`:
|
16
18
|
|
19
|
+
For **Jekyll 3**:
|
17
20
|
```ruby
|
18
|
-
gem
|
21
|
+
gem 'jekyll-dash', '~> 1.0.0'
|
22
|
+
```
|
23
|
+
|
24
|
+
> Keep in mind: Github pages generation only supports Jekyll 3.8 right now.
|
25
|
+
|
26
|
+
For **Jekyll 4**:
|
27
|
+
```ruby
|
28
|
+
gem 'jekyll-dash', '~> 2.1.0'
|
19
29
|
```
|
20
30
|
|
21
31
|
And add this line to your Jekyll site's `_config.yml`:
|
@@ -30,7 +40,7 @@ And then execute:
|
|
30
40
|
|
31
41
|
Or install it yourself as:
|
32
42
|
|
33
|
-
$ gem install jekyll-dash
|
43
|
+
$ gem install jekyll-dash -v version
|
34
44
|
|
35
45
|
## Configuration
|
36
46
|
|
@@ -53,7 +63,7 @@ dash:
|
|
53
63
|
date_format: "%b %-d, %Y"
|
54
64
|
|
55
65
|
disqus:
|
56
|
-
shortname: <your-
|
66
|
+
shortname: <your-disqus-shortname>
|
57
67
|
|
58
68
|
# generate social links in footer
|
59
69
|
# supported colors: green, red, orange, blue, cyan, pink, teal, yellow, indigo, purple
|
@@ -67,15 +77,20 @@ dash:
|
|
67
77
|
- url: https://github.com/bitbrain
|
68
78
|
icon: github-square
|
69
79
|
color: purple
|
80
|
+
|
81
|
+
show_author: true
|
82
|
+
|
83
|
+
# Replaces the default avatar provider (gravatar)
|
84
|
+
#avatar_source: github
|
85
|
+
#github_username: bitbrain
|
70
86
|
```
|
71
87
|
## Using this theme directly on Github Pages
|
72
88
|
|
73
|
-
Please keep in mind that Github Pages does only support [a limited list of Jekyll plugins](https://
|
89
|
+
Please keep in mind that Github Pages does only support [a limited list of Jekyll plugins](https://pages.github.com/versions/). You will be able to use this theme on Github Pages but some functionality might not be available, for example displaying tags. In order to use this theme to a full extend, you have to generate the `_site` [separately via Github Actions](https://jekyllrb.com/docs/continuous-integration/github-actions/).
|
74
90
|
|
75
|
-
|
91
|
+
* `<username>.github.io` - contains main source branch and orphan gh-pages branch ([see example](https://github.com/bitbrain/bitbrain.github.io))
|
76
92
|
|
77
|
-
|
78
|
-
* `<username>.github.io` - contains generated webpage, pushed automatically via TravisCI ([see example](https://github.com/bitbrain/bitbrain.github.io))
|
93
|
+
I have created [a guide on how to set this up here](https://bitbra.in/2021/10/03/host-your-own-blog-for-free-with-custom-domain.html).
|
79
94
|
|
80
95
|
You are not required to do this, but keep in mind that some functionality might not be available when using the Jekyll generator on Github directly!
|
81
96
|
|
@@ -107,6 +122,12 @@ gem "liquid-md5"
|
|
107
122
|
|
108
123
|
**Solution**: as described above you have to add the tagging plugin. Additionally, tags do not work natively by Github Pages. You have to build your site on an external CI and push the `_site` artifacts to a hosting repository.
|
109
124
|
|
125
|
+
> I am getting an error that Bundler could not find compatible versions for gem
|
126
|
+
|
127
|
+
**Solution**
|
128
|
+
|
129
|
+
Make sure you are using a version of this theme that is compatible with Jekyll. Version 1.x is only compatible with Jekyll 3.x while Version 2.x is only compatible with Jekyll 4.x.
|
130
|
+
|
110
131
|
## Contributing
|
111
132
|
|
112
133
|
Bug reports and pull requests are welcome on GitHub at https://github.com/bitbrain/jekyll-dash. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/_includes/author.html
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
<div class="author-box">
|
2
|
-
{% if site.
|
3
|
-
|
4
|
-
{
|
2
|
+
{% if site.avatar_source == "github" and site.github_username %}
|
3
|
+
{% capture avatar_image %}
|
4
|
+
https://github.com/{{ site.github_username }}.png
|
5
|
+
{% endcapture %}
|
6
|
+
{% elsif site.avatar_source == "local" and site.avatar_path %}
|
7
|
+
{% capture avatar_image %}
|
8
|
+
{{site.avatar_path}}
|
9
|
+
{% endcapture %}
|
10
|
+
{% elsif site.plugins contains "liquid-md5" %}
|
11
|
+
{% capture avatar_image %}
|
12
|
+
https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=256
|
13
|
+
{% endcapture %}
|
14
|
+
{% endif %}
|
15
|
+
{% if avatar_image %}
|
16
|
+
<img src="{{ avatar_image }}" class="author-avatar" alt="Avatar" />
|
17
|
+
{% endif %}
|
5
18
|
{{ site.description }}
|
6
19
|
</div>
|
data/_includes/head.html
CHANGED
@@ -5,8 +5,11 @@
|
|
5
5
|
{%- seo -%}
|
6
6
|
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
7
7
|
<link rel="icon" type="image/png" href="{{ "/assets/favicon.png" | relative_url }}" />
|
8
|
+
<link rel="stylesheet" href="{{ "/assets/css/magnific-popup.css" | relative_url }}">
|
8
9
|
{%- feed_meta -%}
|
9
10
|
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
10
11
|
{%- include google-analytics.html -%}
|
11
12
|
{%- endif -%}
|
13
|
+
<script src="https://code.jquery.com/jquery-3.2.0.min.js"></script>
|
14
|
+
<script src="{{ "/assets/js/jquery.magnific-popup.js" | relative_url }}"></script>
|
12
15
|
</head>
|
data/_includes/header.html
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
<div class="wrapper">
|
3
3
|
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}<b class="command_prompt"></b><b class="blinking_cursor">_</b></a>
|
4
4
|
<span class="social_links">
|
5
|
-
{% for link in site.dash.social_links %}
|
5
|
+
{% for link in site.dash.social_links %}
|
6
|
+
{% if link.fa == true %}
|
7
|
+
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fa fa-{{ link.icon }}"></i></a>
|
8
|
+
{% else %}
|
9
|
+
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fab fa-{{ link.icon }}"></i></a>
|
10
|
+
{% endif %}
|
11
|
+
{% endfor %}
|
6
12
|
</span>
|
7
13
|
</div>
|
8
14
|
</div>
|
data/_layouts/home.html
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
{%
|
4
|
+
{% unless site.dash.show_author == false %}
|
5
|
+
{% include author.html %}
|
6
|
+
{% endunless %}
|
7
|
+
{{ content }}
|
5
8
|
{% assign posts_count = paginator.posts | size %}
|
6
9
|
{% if posts_count > 0 %}
|
7
10
|
<h1>recent articles</h1>
|
@@ -18,11 +21,16 @@ layout: default
|
|
18
21
|
{% endfor %}
|
19
22
|
</div>
|
20
23
|
{% endif %}
|
21
|
-
{% if site.date_format %}
|
22
|
-
{{ post.date | date: site.date_format }}
|
24
|
+
{% if site.dash.date_format %}
|
25
|
+
{{ post.date | date: site.dash.date_format }}
|
23
26
|
{% else %}
|
24
27
|
{{ post.date | date: "%b %-d, %Y" }}
|
25
28
|
{% endif %}
|
29
|
+
{% if site.show_excerpts == true %}
|
30
|
+
<div class="post-excerpt">
|
31
|
+
{{ post.content | strip_html | truncatewords: 50 }}
|
32
|
+
</div>
|
33
|
+
{% endif %}
|
26
34
|
</div>
|
27
35
|
</div>
|
28
36
|
{% endfor %}
|
data/_layouts/post.html
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
{%
|
4
|
+
{% unless site.dash.show_author == false %}
|
5
|
+
{% include author.html %}
|
6
|
+
{% endunless %}
|
5
7
|
<div class="post">
|
6
8
|
<h1 class="post-title">{{ page.title }}</h1>
|
7
9
|
{% if site.plugins contains "jekyll/tagging" %}
|
@@ -13,7 +15,10 @@ layout: default
|
|
13
15
|
{% endif %}
|
14
16
|
<div class="post-date">Published on {{ page.date | date_to_string }}</div>
|
15
17
|
{% if page.description != null %}
|
16
|
-
<
|
18
|
+
<noscript>
|
19
|
+
<div class="post-description">{{ page.description }}</div>
|
20
|
+
</noscript>
|
21
|
+
<div id="animated-post-description" class="post-description" style="display: none;"></div>
|
17
22
|
{% endif %}
|
18
23
|
{{ content }}
|
19
24
|
</div>
|
@@ -42,3 +47,45 @@ layout: default
|
|
42
47
|
</div>
|
43
48
|
{% endif %}
|
44
49
|
{% include tagcloud.html %}
|
50
|
+
|
51
|
+
{% assign animation_speed = site.dash.animation_speed | default: 50 %}
|
52
|
+
<script>
|
53
|
+
let i = 0;
|
54
|
+
const text = '{{ page.description }}';
|
55
|
+
const speed = parseInt('{{ animation_speed }}');
|
56
|
+
|
57
|
+
function typeWriter() {
|
58
|
+
if (i < text.length) {
|
59
|
+
document.getElementById('animated-post-description').innerHTML += text.charAt(i);
|
60
|
+
i++;
|
61
|
+
setTimeout(typeWriter, speed);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
document.getElementById('animated-post-description').style.display = 'initial';
|
66
|
+
typeWriter();
|
67
|
+
|
68
|
+
// Image modal
|
69
|
+
var $imgs = [];
|
70
|
+
$('img').each(function(idx) {
|
71
|
+
var obj = {
|
72
|
+
src: $(this).attr('src')
|
73
|
+
}
|
74
|
+
$imgs.push(obj);
|
75
|
+
var elem = $(this);
|
76
|
+
$(this).click(function() {
|
77
|
+
$('.modal').magnificPopup('open', idx);
|
78
|
+
});
|
79
|
+
});
|
80
|
+
|
81
|
+
$('.modal').magnificPopup({
|
82
|
+
items: $imgs,
|
83
|
+
type: 'image',
|
84
|
+
closeOnContentClick: true,
|
85
|
+
mainClass: 'mfp-img-mobile',
|
86
|
+
image: {
|
87
|
+
verticalFit: true
|
88
|
+
}
|
89
|
+
|
90
|
+
});
|
91
|
+
</script>
|
data/_layouts/tag_page.html
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
{%
|
4
|
+
{% unless site.dash.show_author == false %}
|
5
|
+
{% include author.html %}
|
6
|
+
{% endunless %}
|
5
7
|
<h1 class="post-title">articles tagged with <a class="tag" href="/tag/{{ page.tag }}/">{{ page.tag }}</a></h1>
|
6
8
|
<div class="post-links">
|
7
9
|
{% for post in site.posts %}
|
@@ -18,8 +20,8 @@ layout: default
|
|
18
20
|
<a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
|
19
21
|
{% endfor %}
|
20
22
|
</div>
|
21
|
-
{% if site.date_format %}
|
22
|
-
{{ post.date | date: site.date_format }}
|
23
|
+
{% if site.dash.date_format %}
|
24
|
+
{{ post.date | date: site.dash.date_format }}
|
23
25
|
{% else %}
|
24
26
|
{{ post.date | date: "%b %-d, %Y" }}
|
25
27
|
{% endif %}
|
data/_sass/dash/_layout.scss
CHANGED
@@ -88,10 +88,8 @@
|
|
88
88
|
@include themed() {
|
89
89
|
color: t('foreground-color');
|
90
90
|
}
|
91
|
-
white-space: nowrap;
|
92
91
|
overflow: hidden;
|
93
92
|
width: 100%;
|
94
|
-
animation: type 2s steps(60, end);
|
95
93
|
margin-bottom: 1em;
|
96
94
|
margin-left: 0.5em;
|
97
95
|
|
@@ -171,7 +169,7 @@
|
|
171
169
|
}
|
172
170
|
|
173
171
|
& > p {
|
174
|
-
display: block;
|
172
|
+
display: inline-block;
|
175
173
|
padding-left: 3em;
|
176
174
|
}
|
177
175
|
|
@@ -184,6 +182,10 @@
|
|
184
182
|
font-size: 2em;
|
185
183
|
}
|
186
184
|
|
185
|
+
& > ul {
|
186
|
+
margin-left: 3em;
|
187
|
+
}
|
188
|
+
|
187
189
|
li {
|
188
190
|
@include themed() {
|
189
191
|
color: t('quote-secondary');
|
@@ -200,6 +202,8 @@
|
|
200
202
|
& > .post-link {
|
201
203
|
font-size: $base-font-size;
|
202
204
|
font-size: $post-link-font-size;
|
205
|
+
display: inline-block;
|
206
|
+
text-align: initial;
|
203
207
|
}
|
204
208
|
|
205
209
|
& > .post-meta {
|
@@ -215,7 +219,7 @@
|
|
215
219
|
text-align: left;
|
216
220
|
& > a {
|
217
221
|
display: inline-block;
|
218
|
-
margin
|
222
|
+
margin: 0.3em 0.3em 0.3em 0;
|
219
223
|
}
|
220
224
|
}
|
221
225
|
|
@@ -241,9 +245,15 @@
|
|
241
245
|
}
|
242
246
|
}
|
243
247
|
|
248
|
+
.tag {
|
249
|
+
display: inline-block;
|
250
|
+
margin: 0.3em 0.3em 0.3em 0;
|
251
|
+
}
|
252
|
+
|
244
253
|
.post-tags {
|
245
254
|
margin-top: 0.3em;
|
246
255
|
margin-bottom: 0.5em;
|
256
|
+
text-align: initial;
|
247
257
|
}
|
248
258
|
|
249
259
|
.credits {
|
@@ -363,4 +373,8 @@ ul.related-posts {
|
|
363
373
|
}
|
364
374
|
color: $color-yellow;
|
365
375
|
}
|
376
|
+
}
|
377
|
+
|
378
|
+
.modal{
|
379
|
+
cursor: pointer;
|
366
380
|
}
|
data/assets/avatar.png
ADDED
Binary file
|
@@ -0,0 +1,351 @@
|
|
1
|
+
/* Magnific Popup CSS */
|
2
|
+
.mfp-bg {
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
width: 100%;
|
6
|
+
height: 100%;
|
7
|
+
z-index: 1042;
|
8
|
+
overflow: hidden;
|
9
|
+
position: fixed;
|
10
|
+
background: #0b0b0b;
|
11
|
+
opacity: 0.8; }
|
12
|
+
|
13
|
+
.mfp-wrap {
|
14
|
+
top: 0;
|
15
|
+
left: 0;
|
16
|
+
width: 100%;
|
17
|
+
height: 100%;
|
18
|
+
z-index: 1043;
|
19
|
+
position: fixed;
|
20
|
+
outline: none !important;
|
21
|
+
-webkit-backface-visibility: hidden; }
|
22
|
+
|
23
|
+
.mfp-container {
|
24
|
+
text-align: center;
|
25
|
+
position: absolute;
|
26
|
+
width: 100%;
|
27
|
+
height: 100%;
|
28
|
+
left: 0;
|
29
|
+
top: 0;
|
30
|
+
padding: 0 8px;
|
31
|
+
box-sizing: border-box; }
|
32
|
+
|
33
|
+
.mfp-container:before {
|
34
|
+
content: '';
|
35
|
+
display: inline-block;
|
36
|
+
height: 100%;
|
37
|
+
vertical-align: middle; }
|
38
|
+
|
39
|
+
.mfp-align-top .mfp-container:before {
|
40
|
+
display: none; }
|
41
|
+
|
42
|
+
.mfp-content {
|
43
|
+
position: relative;
|
44
|
+
display: inline-block;
|
45
|
+
vertical-align: middle;
|
46
|
+
margin: 0 auto;
|
47
|
+
text-align: left;
|
48
|
+
z-index: 1045; }
|
49
|
+
|
50
|
+
.mfp-inline-holder .mfp-content,
|
51
|
+
.mfp-ajax-holder .mfp-content {
|
52
|
+
width: 100%;
|
53
|
+
cursor: auto; }
|
54
|
+
|
55
|
+
.mfp-ajax-cur {
|
56
|
+
cursor: progress; }
|
57
|
+
|
58
|
+
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
|
59
|
+
cursor: -moz-zoom-out;
|
60
|
+
cursor: -webkit-zoom-out;
|
61
|
+
cursor: zoom-out; }
|
62
|
+
|
63
|
+
.mfp-zoom {
|
64
|
+
cursor: pointer;
|
65
|
+
cursor: -webkit-zoom-in;
|
66
|
+
cursor: -moz-zoom-in;
|
67
|
+
cursor: zoom-in; }
|
68
|
+
|
69
|
+
.mfp-auto-cursor .mfp-content {
|
70
|
+
cursor: auto; }
|
71
|
+
|
72
|
+
.mfp-close,
|
73
|
+
.mfp-arrow,
|
74
|
+
.mfp-preloader,
|
75
|
+
.mfp-counter {
|
76
|
+
-webkit-user-select: none;
|
77
|
+
-moz-user-select: none;
|
78
|
+
user-select: none; }
|
79
|
+
|
80
|
+
.mfp-loading.mfp-figure {
|
81
|
+
display: none; }
|
82
|
+
|
83
|
+
.mfp-hide {
|
84
|
+
display: none !important; }
|
85
|
+
|
86
|
+
.mfp-preloader {
|
87
|
+
color: #CCC;
|
88
|
+
position: absolute;
|
89
|
+
top: 50%;
|
90
|
+
width: auto;
|
91
|
+
text-align: center;
|
92
|
+
margin-top: -0.8em;
|
93
|
+
left: 8px;
|
94
|
+
right: 8px;
|
95
|
+
z-index: 1044; }
|
96
|
+
.mfp-preloader a {
|
97
|
+
color: #CCC; }
|
98
|
+
.mfp-preloader a:hover {
|
99
|
+
color: #FFF; }
|
100
|
+
|
101
|
+
.mfp-s-ready .mfp-preloader {
|
102
|
+
display: none; }
|
103
|
+
|
104
|
+
.mfp-s-error .mfp-content {
|
105
|
+
display: none; }
|
106
|
+
|
107
|
+
button.mfp-close,
|
108
|
+
button.mfp-arrow {
|
109
|
+
overflow: visible;
|
110
|
+
cursor: pointer;
|
111
|
+
background: transparent;
|
112
|
+
border: 0;
|
113
|
+
-webkit-appearance: none;
|
114
|
+
display: block;
|
115
|
+
outline: none;
|
116
|
+
padding: 0;
|
117
|
+
z-index: 1046;
|
118
|
+
box-shadow: none;
|
119
|
+
touch-action: manipulation; }
|
120
|
+
|
121
|
+
button::-moz-focus-inner {
|
122
|
+
padding: 0;
|
123
|
+
border: 0; }
|
124
|
+
|
125
|
+
.mfp-close {
|
126
|
+
width: 44px;
|
127
|
+
height: 44px;
|
128
|
+
line-height: 44px;
|
129
|
+
position: absolute;
|
130
|
+
right: 0;
|
131
|
+
top: 0;
|
132
|
+
text-decoration: none;
|
133
|
+
text-align: center;
|
134
|
+
opacity: 0.65;
|
135
|
+
padding: 0 0 18px 10px;
|
136
|
+
color: #FFF;
|
137
|
+
font-style: normal;
|
138
|
+
font-size: 28px;
|
139
|
+
font-family: Arial, Baskerville, monospace; }
|
140
|
+
.mfp-close:hover,
|
141
|
+
.mfp-close:focus {
|
142
|
+
opacity: 1; }
|
143
|
+
.mfp-close:active {
|
144
|
+
top: 1px; }
|
145
|
+
|
146
|
+
.mfp-close-btn-in .mfp-close {
|
147
|
+
color: #333; }
|
148
|
+
|
149
|
+
.mfp-image-holder .mfp-close,
|
150
|
+
.mfp-iframe-holder .mfp-close {
|
151
|
+
color: #FFF;
|
152
|
+
right: -6px;
|
153
|
+
text-align: right;
|
154
|
+
padding-right: 6px;
|
155
|
+
width: 100%; }
|
156
|
+
|
157
|
+
.mfp-counter {
|
158
|
+
position: absolute;
|
159
|
+
top: 0;
|
160
|
+
right: 0;
|
161
|
+
color: #CCC;
|
162
|
+
font-size: 12px;
|
163
|
+
line-height: 18px;
|
164
|
+
white-space: nowrap; }
|
165
|
+
|
166
|
+
.mfp-arrow {
|
167
|
+
position: absolute;
|
168
|
+
opacity: 0.65;
|
169
|
+
margin: 0;
|
170
|
+
top: 50%;
|
171
|
+
margin-top: -55px;
|
172
|
+
padding: 0;
|
173
|
+
width: 90px;
|
174
|
+
height: 110px;
|
175
|
+
-webkit-tap-highlight-color: transparent; }
|
176
|
+
.mfp-arrow:active {
|
177
|
+
margin-top: -54px; }
|
178
|
+
.mfp-arrow:hover,
|
179
|
+
.mfp-arrow:focus {
|
180
|
+
opacity: 1; }
|
181
|
+
.mfp-arrow:before,
|
182
|
+
.mfp-arrow:after {
|
183
|
+
content: '';
|
184
|
+
display: block;
|
185
|
+
width: 0;
|
186
|
+
height: 0;
|
187
|
+
position: absolute;
|
188
|
+
left: 0;
|
189
|
+
top: 0;
|
190
|
+
margin-top: 35px;
|
191
|
+
margin-left: 35px;
|
192
|
+
border: medium inset transparent; }
|
193
|
+
.mfp-arrow:after {
|
194
|
+
border-top-width: 13px;
|
195
|
+
border-bottom-width: 13px;
|
196
|
+
top: 8px; }
|
197
|
+
.mfp-arrow:before {
|
198
|
+
border-top-width: 21px;
|
199
|
+
border-bottom-width: 21px;
|
200
|
+
opacity: 0.7; }
|
201
|
+
|
202
|
+
.mfp-arrow-left {
|
203
|
+
left: 0; }
|
204
|
+
.mfp-arrow-left:after {
|
205
|
+
border-right: 17px solid #FFF;
|
206
|
+
margin-left: 31px; }
|
207
|
+
.mfp-arrow-left:before {
|
208
|
+
margin-left: 25px;
|
209
|
+
border-right: 27px solid #3F3F3F; }
|
210
|
+
|
211
|
+
.mfp-arrow-right {
|
212
|
+
right: 0; }
|
213
|
+
.mfp-arrow-right:after {
|
214
|
+
border-left: 17px solid #FFF;
|
215
|
+
margin-left: 39px; }
|
216
|
+
.mfp-arrow-right:before {
|
217
|
+
border-left: 27px solid #3F3F3F; }
|
218
|
+
|
219
|
+
.mfp-iframe-holder {
|
220
|
+
padding-top: 40px;
|
221
|
+
padding-bottom: 40px; }
|
222
|
+
.mfp-iframe-holder .mfp-content {
|
223
|
+
line-height: 0;
|
224
|
+
width: 100%;
|
225
|
+
max-width: 900px; }
|
226
|
+
.mfp-iframe-holder .mfp-close {
|
227
|
+
top: -40px; }
|
228
|
+
|
229
|
+
.mfp-iframe-scaler {
|
230
|
+
width: 100%;
|
231
|
+
height: 0;
|
232
|
+
overflow: hidden;
|
233
|
+
padding-top: 56.25%; }
|
234
|
+
.mfp-iframe-scaler iframe {
|
235
|
+
position: absolute;
|
236
|
+
display: block;
|
237
|
+
top: 0;
|
238
|
+
left: 0;
|
239
|
+
width: 100%;
|
240
|
+
height: 100%;
|
241
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
242
|
+
background: #000; }
|
243
|
+
|
244
|
+
/* Main image in popup */
|
245
|
+
img.mfp-img {
|
246
|
+
width: auto;
|
247
|
+
max-width: 100%;
|
248
|
+
height: auto;
|
249
|
+
display: block;
|
250
|
+
line-height: 0;
|
251
|
+
box-sizing: border-box;
|
252
|
+
padding: 40px 0 40px;
|
253
|
+
margin: 0 auto; }
|
254
|
+
|
255
|
+
/* The shadow behind the image */
|
256
|
+
.mfp-figure {
|
257
|
+
line-height: 0; }
|
258
|
+
.mfp-figure:after {
|
259
|
+
content: '';
|
260
|
+
position: absolute;
|
261
|
+
left: 0;
|
262
|
+
top: 40px;
|
263
|
+
bottom: 40px;
|
264
|
+
display: block;
|
265
|
+
right: 0;
|
266
|
+
width: auto;
|
267
|
+
height: auto;
|
268
|
+
z-index: -1;
|
269
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
|
270
|
+
background: #444; }
|
271
|
+
.mfp-figure small {
|
272
|
+
color: #BDBDBD;
|
273
|
+
display: block;
|
274
|
+
font-size: 12px;
|
275
|
+
line-height: 14px; }
|
276
|
+
.mfp-figure figure {
|
277
|
+
margin: 0; }
|
278
|
+
|
279
|
+
.mfp-bottom-bar {
|
280
|
+
margin-top: -36px;
|
281
|
+
position: absolute;
|
282
|
+
top: 100%;
|
283
|
+
left: 0;
|
284
|
+
width: 100%;
|
285
|
+
cursor: auto; }
|
286
|
+
|
287
|
+
.mfp-title {
|
288
|
+
text-align: left;
|
289
|
+
line-height: 18px;
|
290
|
+
color: #F3F3F3;
|
291
|
+
word-wrap: break-word;
|
292
|
+
padding-right: 36px; }
|
293
|
+
|
294
|
+
.mfp-image-holder .mfp-content {
|
295
|
+
max-width: 100%; }
|
296
|
+
|
297
|
+
.mfp-gallery .mfp-image-holder .mfp-figure {
|
298
|
+
cursor: pointer; }
|
299
|
+
|
300
|
+
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
301
|
+
/**
|
302
|
+
* Remove all paddings around the image on small screen
|
303
|
+
*/
|
304
|
+
.mfp-img-mobile .mfp-image-holder {
|
305
|
+
padding-left: 0;
|
306
|
+
padding-right: 0; }
|
307
|
+
.mfp-img-mobile img.mfp-img {
|
308
|
+
padding: 0; }
|
309
|
+
.mfp-img-mobile .mfp-figure:after {
|
310
|
+
top: 0;
|
311
|
+
bottom: 0; }
|
312
|
+
.mfp-img-mobile .mfp-figure small {
|
313
|
+
display: inline;
|
314
|
+
margin-left: 5px; }
|
315
|
+
.mfp-img-mobile .mfp-bottom-bar {
|
316
|
+
background: rgba(0, 0, 0, 0.6);
|
317
|
+
bottom: 0;
|
318
|
+
margin: 0;
|
319
|
+
top: auto;
|
320
|
+
padding: 3px 5px;
|
321
|
+
position: fixed;
|
322
|
+
box-sizing: border-box; }
|
323
|
+
.mfp-img-mobile .mfp-bottom-bar:empty {
|
324
|
+
padding: 0; }
|
325
|
+
.mfp-img-mobile .mfp-counter {
|
326
|
+
right: 5px;
|
327
|
+
top: 3px; }
|
328
|
+
.mfp-img-mobile .mfp-close {
|
329
|
+
top: 0;
|
330
|
+
right: 0;
|
331
|
+
width: 35px;
|
332
|
+
height: 35px;
|
333
|
+
line-height: 35px;
|
334
|
+
background: rgba(0, 0, 0, 0.6);
|
335
|
+
position: fixed;
|
336
|
+
text-align: center;
|
337
|
+
padding: 0; } }
|
338
|
+
|
339
|
+
@media all and (max-width: 900px) {
|
340
|
+
.mfp-arrow {
|
341
|
+
-webkit-transform: scale(0.75);
|
342
|
+
transform: scale(0.75); }
|
343
|
+
.mfp-arrow-left {
|
344
|
+
-webkit-transform-origin: 0;
|
345
|
+
transform-origin: 0; }
|
346
|
+
.mfp-arrow-right {
|
347
|
+
-webkit-transform-origin: 100%;
|
348
|
+
transform-origin: 100%; }
|
349
|
+
.mfp-container {
|
350
|
+
padding-left: 6px;
|
351
|
+
padding-right: 6px; } }
|