Reverted /img back to /images, fixed urls in sass (fixes #8)

This commit is contained in:
Seth 2017-03-14 17:06:39 -04:00
parent 7c3437044a
commit 62103c306f
15 changed files with 1128 additions and 1571 deletions

File diff suppressed because it is too large Load diff

View file

Before

Width:  |  Height:  |  Size: 566 KiB

After

Width:  |  Height:  |  Size: 566 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before After
Before After

View file

@ -14,7 +14,7 @@
&:before {
@include vendor('pointer-events', 'none');
background-image: url('../../images/overlay.png');
background-image: url('/images/overlay.png');
background-color: _palette(bg-overlay);
border-radius: _size(border-radius);
content: '';
@ -84,4 +84,4 @@
margin: (_size(element-margin) * 0.75) 0;
}
}
}
}

View file

@ -6,63 +6,63 @@
/* BG */
#bg {
@include vendor('transform', 'scale(1.0)');
-webkit-backface-visibility: hidden;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: 1;
#bg {
@include vendor('transform', 'scale(1.0)');
-webkit-backface-visibility: hidden;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: 1;
&:before, &:after {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
&:before, &:after {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
&:before {
@include vendor('transition', 'background-color #{_duration(bg)} ease-in-out');
@include vendor('transition-delay', '#{_duration(intro)}');
background-image: linear-gradient(to top, #{_palette(bg-overlay)}, #{_palette(bg-overlay)}),
url('../../images/overlay.png');
background-size: auto,
256px 256px;
background-position: center,
center;
background-repeat: no-repeat,
repeat;
z-index: 2;
}
&:before {
@include vendor('transition', 'background-color #{_duration(bg)} ease-in-out');
@include vendor('transition-delay', '#{_duration(intro)}');
background-image: linear-gradient(to top, #{_palette(bg-overlay)}, #{_palette(bg-overlay)}),
url('/images/overlay.png');
background-size: auto,
256px 256px;
background-position: center,
center;
background-repeat: no-repeat,
repeat;
z-index: 2;
}
&:after {
@include vendor('transform', 'scale(1.125)');
@include vendor('transition', (
'transform #{_duration(article)} ease-in-out',
'filter #{_duration(article)} ease-in-out'
));
background-image: url('../../images/bg.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
z-index: 1;
}
&:after {
@include vendor('transform', 'scale(1.125)');
@include vendor('transition', (
'transform #{_duration(article)} ease-in-out',
'filter #{_duration(article)} ease-in-out'
));
background-image: url('/images/bg.jpg');
background-position: center;
background-size: cover;
background-repeat: no-repeat;
z-index: 1;
}
body.is-article-visible & {
&:after {
@include vendor('transform', 'scale(1.0825)');
@include vendor('filter', 'blur(0.2rem)');
}
}
body.is-article-visible & {
&:after {
@include vendor('transform', 'scale(1.0825)');
@include vendor('filter', 'blur(0.2rem)');
}
}
body.is-loading & {
&:before {
background-color: _palette(bg-alt);
}
}
}
body.is-loading & {
&:before {
background-color: _palette(bg-alt);
}
}
}