-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About Page & Fancybox / Portfolio Template #352
Changes from 105 commits
405b085
f9fdac2
85f95fb
feb1c70
90cc89d
c46f790
e1897ee
564f0ac
6ea46e4
064f4e3
656ca20
ac80e53
6502387
fd32b4f
e973530
66a4b16
5dd7baf
a082c6b
57a4b48
6f87633
40d6dc0
8cfa71a
ec4f265
735f325
c752326
d2a70e0
4331260
0694d0b
f346972
94dc66d
a93ac3f
f63bca5
ea33b18
0928d37
18aec0b
4c44777
cbee65b
a73e092
39ad99b
3cecb40
3a802d5
65a65c9
2c433ec
3047b98
b1b5573
a119e86
e4d9390
615802d
28bc9e3
c3084a2
84a783a
ea28f6a
fd6b30c
2d6efb1
45ff616
713e837
01c8e64
b3ec5c5
1a82488
c9ac28e
6d5a7ac
9ea0ec7
7472b41
62105f9
7c758f9
f898af6
608e31a
516d983
ba28685
d81c839
5321ad2
a48924b
a060869
5535289
d2fbe02
cb7103c
34600fc
610996a
3fb995f
f904bf1
ef007d9
3e69f08
51cbab0
df9a5da
6b8a565
c77b608
4d3eb36
2908d73
3b9e5f0
1ca27b9
d1911cc
871fa35
180cdcd
e8dcef3
c753f14
cf06bd7
b28d851
85f9a5f
89c70d8
ab02d88
e52da61
0867c86
21330b1
27afa77
2b8c45e
adff356
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% assign gallery = page.galleries[include.gallery] %} | ||
<div class="gallery-wrapper gallery-{{ gallery.style }}"> | ||
{% if gallery.style == "carousel" or gallery.style == "carousel-box" %} | ||
<div class="category-wrapper"> | ||
<div class="category-info" markdown="1"> | ||
### {{ gallery.headline }} | ||
|
||
{{ gallery.description }} | ||
</div> | ||
<div class="carousel-wrapper"> | ||
<div class="touchcarousel touch-carousel"> | ||
<ul class="touchcarousel-container"> | ||
{% endif %} | ||
|
||
{% for image in gallery.images %} | ||
{% capture title_num %}{% increment title_num %}{% endcapture %} | ||
{% if gallery.style == "carousel" or gallery.style == "carousel-box" %} | ||
<li class="touchcarousel-item item-block"> | ||
{% else %} | ||
<div class="fancybox" style="{{ image.styles }}"> | ||
{% endif %} | ||
|
||
{% if gallery.style == "overlay" %} | ||
<a href="{{ site.github.url }}{{ image.fullsize }}" class="fancybox-media" data-title-id="title-{{ title_num }}" rel="{{ include.gallery }}"> | ||
<div class="overlay" style="display: none;"> | ||
<h3>{{ image.heading | markdownify | remove: '<p>' | remove: '</p>' }}</h3> | ||
<span class="meta">{{ image.description | markdownify | remove: '<p>' | remove: '</p>' }}</span> | ||
</div> | ||
<img src="{{ site.github.url }}{{ image.thumbnail }}" alt=""> | ||
</a> | ||
{% else %} | ||
<img src="{{ site.github.url }}{{ image.thumbnail }}" alt=""> | ||
<a href="{{ site.github.url }}{{ image.fullsize }}" class="fancybox-media" data-title-id="title-{{ title_num }}" rel="{{ include.gallery }}"> | ||
<span class="link"></span> | ||
</a> | ||
{% endif %} | ||
|
||
<div id="title-{{ title_num }}" class="info hidden"> | ||
<h2>{{ image.heading | markdownify | remove: '<p>' | remove: '</p>' }}</h2> | ||
<div class="fancybody">{{ image.description | markdownify | remove: '<p>' | remove: '</p>' }}</div> | ||
</div> | ||
|
||
{% if gallery.style == "carousel" or gallery.style == "carousel-box" %} | ||
</li> | ||
{% else %} | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% if gallery.style == "carousel" or gallery.style == "carousel-box" %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="clear"></div> | ||
{% endif %} | ||
</div> |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: redirect | ||
redirect: https://gist.github.com/PhrozenByte/c4eeb451eed175110dc0f9d79f2c98bd | ||
--- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1039,7 +1039,11 @@ ul.contact-info li i { | |
.items li img { | ||
display: block | ||
} | ||
.items li a .overlay { | ||
.fancybox img { | ||
display: inline-block; | ||
} | ||
.items li a .overlay, | ||
.fancybox .overlay { | ||
display: none; | ||
height: 100%; | ||
position: absolute; | ||
|
@@ -1049,13 +1053,15 @@ ul.contact-info li i { | |
background-color: rgba(255,103,96, 0.92); | ||
padding: 20px; | ||
} | ||
.items li a .overlay h3 { | ||
.items li a .overlay h3, | ||
.fancybox .overlay h3 { | ||
color: #FFF; | ||
font-weight: 300; | ||
font-size: 22px; | ||
text-transform: uppercase; | ||
} | ||
.items li a .overlay span.meta { | ||
.items li a .overlay span.meta, | ||
.fancybox .overlay span.meta { | ||
color: #FFF; | ||
font-weight: 300; | ||
font-style: italic; | ||
|
@@ -2124,7 +2130,7 @@ media_tag_4 {media_subcode:4} | |
/* CAROUSEL | ||
/*-----------------------------------------------------------------------------------*/ | ||
.category-wrapper { | ||
margin-bottom: 60px; | ||
margin-bottom: 20px; | ||
overflow: hidden; | ||
} | ||
.category-wrapper .category-info { | ||
|
@@ -2138,7 +2144,7 @@ media_tag_4 {media_subcode:4} | |
} | ||
.category-wrapper .carousel-wrapper { | ||
float: right; | ||
width: 830px; | ||
width: calc(100% - 280px); | ||
} | ||
.fullwidth .carousel-wrapper { | ||
width: 100%; | ||
|
@@ -2150,7 +2156,6 @@ media_tag_4 {media_subcode:4} | |
.touchcarousel { | ||
position: relative; | ||
width: 600px; | ||
height: 400px; | ||
overflow: hidden; | ||
} | ||
.touchcarousel .touchcarousel-container { | ||
|
@@ -2165,6 +2170,7 @@ media_tag_4 {media_subcode:4} | |
overflow: hidden; | ||
width: 100%; | ||
height: 100%; | ||
padding-bottom: 10px; | ||
} | ||
.touchcarousel .scrollbar-holder { | ||
position: absolute; | ||
|
@@ -2193,17 +2199,12 @@ media_tag_4 {media_subcode:4} | |
cursor: auto | ||
} | ||
.touch-carousel { | ||
width: 830px; | ||
height: 230px; | ||
width: 100%; | ||
margin: 0 auto; | ||
} | ||
.fullwidth .touch-carousel { | ||
width: 100%; | ||
} | ||
.touch-carousel .touchcarousel-item { | ||
margin-right: 10px; | ||
width: 270px; | ||
height: 220px; | ||
float: left; | ||
position: relative; | ||
} | ||
|
@@ -2213,7 +2214,8 @@ media_tag_4 {media_subcode:4} | |
.touchcarousel .touchcarousel-item:before { | ||
display: none | ||
} | ||
.touchcarousel .touchcarousel-item .link { | ||
.touchcarousel .touchcarousel-item .link, | ||
.fancybox .link { | ||
position: absolute; | ||
bottom: 10px; | ||
right: 10px; | ||
|
@@ -2233,22 +2235,26 @@ media_tag_4 {media_subcode:4} | |
-o-transition: all 200ms ease-in; | ||
-moz-transition: all 200ms ease-in; | ||
} | ||
.touchcarousel .touchcarousel-item:hover .link { | ||
.touchcarousel .touchcarousel-item:hover .link, | ||
.fancybox:hover .link { | ||
-moz-opacity: 1; | ||
filter: alpha(opacity=100); | ||
opacity: 1; | ||
} | ||
.touchcarousel .touchcarousel-item .link:hover { | ||
.touchcarousel .touchcarousel-item .link:hover, | ||
.fancybox .link:hover { | ||
background-color: #ff6760; | ||
color: #FFF; | ||
} | ||
.touchcarousel .touchcarousel-item .link:before { | ||
.touchcarousel .touchcarousel-item .link:before, | ||
.fancybox .link:before { | ||
display: block; | ||
content: "\f50d"; | ||
font-family: 'fontello'; | ||
text-align: center; | ||
} | ||
.touchcarousel .touchcarousel-item .link.chain:before { | ||
.touchcarousel .touchcarousel-item .link.chain:before, | ||
.fancybox .link.chain:before { | ||
content: "\f517"; | ||
} | ||
.touchcarousel .touchcarousel-item .caption { | ||
|
@@ -2281,7 +2287,6 @@ media_tag_4 {media_subcode:4} | |
} | ||
.touch-carousel .item-block { | ||
width: 270px; | ||
height: 220px; | ||
display: block; | ||
} | ||
.touch-carousel .item-block img { | ||
|
@@ -2301,12 +2306,44 @@ media_tag_4 {media_subcode:4} | |
background-color: #ff6760 !important; | ||
bottom: 0; | ||
} | ||
/* Carousel Box */ | ||
.gallery-carousel-box .category-wrapper { | ||
padding: 1em; | ||
border: 1px solid #ccc; | ||
border-radius: 3px; | ||
background: #f5f5f5; | ||
} | ||
.gallery-carousel-box .category-wrapper .category-info { | ||
width: 100%; | ||
height: auto; | ||
float: none; | ||
padding: 0.5em; | ||
margin-bottom: 10px; | ||
background: none; | ||
} | ||
.gallery-carousel-box .category-wrapper .category-info h3 { | ||
margin: 0 1em 0 0; | ||
} | ||
.gallery-carousel-box .category-wrapper .category-info h3, | ||
.gallery-carousel-box .category-wrapper .category-info p:first-of-type { | ||
display: inline-block; | ||
} | ||
.gallery-carousel-box .category-wrapper .carousel-wrapper { | ||
width: 100%; | ||
float: none; | ||
} | ||
.gallery-carousel-box .category-wrapper .carousel-wrapper .touch-carousel .item-block img { | ||
height: initial; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
/*-----------------------------------------------------------------------------------*/ | ||
/* FANCYBOX | ||
/*-----------------------------------------------------------------------------------*/ | ||
#fancybox-thumbs ul li img { | ||
max-width: none | ||
} | ||
#fancybox-thumbs li { | ||
margin: initial; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This breaks <= IE 10, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Of course it doesn't. 😖 |
||
} | ||
.info.hidden { | ||
display: none | ||
} | ||
|
@@ -2399,6 +2436,23 @@ media_tag_4 {media_subcode:4} | |
background-image: url(style/images/fancy-loading.gif) !important; | ||
} | ||
media_tag_5 {media_subcode:5} | ||
/* Standalone Image Styles */ | ||
.fancybox { | ||
display: inline-block; | ||
position: relative; | ||
overflow: hidden; | ||
margin: 1em; | ||
} | ||
/* Ugly Hack (see #352) */ | ||
.fancybox { | ||
line-height: 0; | ||
} | ||
.fancybox .overlay { | ||
line-height: 24px; | ||
} | ||
.fancybox .link { | ||
line-height: 20px; | ||
} | ||
/*-----------------------------------------------------------------------------------*/ | ||
/* PROGRESS BAR | ||
/*-----------------------------------------------------------------------------------*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just remembered why
3
was missing originally.development.md
was3
, but the page is hidden at the moment anyway.