-
Notifications
You must be signed in to change notification settings - Fork 0
/
_wrapper.scss
64 lines (57 loc) · 1.53 KB
/
_wrapper.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
///
/// Massively by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Wrapper */
#wrapper {
@include vendor('transition', 'opacity #{_duration(menu)} ease');
position: relative;
z-index: 1;
overflow: hidden;
> .bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: _palette(wrapper-bg);
background-image: url('../../images/overlay.png'), linear-gradient(0deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../../images/bg.jpg');
background-size: auto, auto, 100% auto;
background-position: center, center, top center;
background-repeat: repeat, no-repeat, no-repeat;
background-attachment: scroll, scroll, scroll;
z-index: -1;
&.fixed {
position: fixed;
width: 100vw;
height: 100vh;
}
}
&.fade-in {
&:before {
@include vendor('pointer-events', 'none');
@include vendor('transition', 'opacity 1s ease-in-out');
@include vendor('transition-delay', '0.75s');
background: _palette(invert, bg);
content: '';
display: block;
height: 100%;
left: 0;
opacity: 0;
position: fixed;
top: 0;
width: 100%;
}
body.is-preload & {
&:before {
opacity: 1;
}
}
}
@include orientation(portrait) {
> .bg {
background-size: auto, auto, auto 175%;
}
}
}