This repository has been archived by the owner on Dec 24, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_wrapper.scss
139 lines (114 loc) · 2.33 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
///
/// Hyperspace by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Wrapper */
.wrapper {
position: relative;
> .inner {
@include padding(5em, 5em);
max-width: 100%;
width: _size(inner-width);
@include breakpoint(xlarge) {
@include padding(4em, 4em);
}
@include breakpoint(large) {
width: 100%;
}
@include breakpoint(small) {
@include padding(3em, 2em);
}
}
&.alt {
background-color: _palette(bg-alt);
}
&.style1 {
background-color: _palette(accent1);
}
&.style1-alt {
background-color: _palette(accent1-alt);
}
&.style2 {
background-color: _palette(accent2);
}
&.style2-alt {
background-color: _palette(accent2-alt);
}
&.style3 {
background-color: _palette(accent3);
}
&.style3-alt {
background-color: _palette(accent3-alt);
}
&.fullscreen {
@include vendor('display', 'flex');
@include vendor('flex-direction', 'column');
@include vendor('justify-content', 'center');
min-height: 100vh;
body.is-ie & {
height: 100vh;
}
@include breakpoint(large) {
min-height: calc(100vh - 2.5em);
body.is-ie & {
height: calc(100vh - 2.5em);
}
}
@include breakpoint(small) {
padding: 2em 0;
min-height: 0;
body.is-ie & {
height: auto;
}
}
}
&.fade-up {
> .inner {
@include vendor('transform', 'translateY(0)');
@include vendor('transition', (
'opacity #{_duration(activation)} ease',
'transform #{_duration(activation)} ease'
));
opacity: 1.0;
}
&.inactive,
body.is-loading & {
> .inner {
opacity: 0;
@include vendor('transform', 'translateY(1em)');
}
}
}
&.fade-down {
> .inner {
@include vendor('transform', 'translateY(0)');
@include vendor('transition', (
'opacity #{_duration(activation)} ease',
'transform #{_duration(activation)} ease'
));
opacity: 1.0;
}
&.inactive,
body.is-loading & {
> .inner {
opacity: 0;
@include vendor('transform', 'translateY(-1em)');
}
}
}
&.fade {
> .inner {
@include vendor('transition', (
'opacity #{_duration(activation)} ease'
));
opacity: 1.0;
}
&.inactive,
body.is-loading & {
> .inner {
opacity: 0;
}
}
}
}