aboutsummaryrefslogtreecommitdiff
path: root/assets/sass/layout/_wrapper.scss
blob: 21ed22526d331dcfa13067ec8b10161392c1a653 (plain)
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
///
/// Ethereal 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('display', 'flex');
		@include vendor('flex-direction', 'row');
		@include vendor('transition', (
			'opacity 1s ease-out',
			'transform 0.75s ease-out'
		));
		@include vendor('transition-delay', '0.25s');
		cursor: default;
		position: relative;
		height: 32rem;
		box-shadow: 0 2rem 4rem 0.25rem transparentize(_palette(bg), 0.425);

		> .scrollZone {
			position: fixed;
			width: 6rem;
			height: inherit;
			cursor: -moz-grab;
			cursor: -webkit-grab;
			cursor: -ms-grab;
			cursor: grab;
			z-index: _misc(z-index-base) + 100;

			&.left {
				left: 0;
			}

			&.right {
				right: 0;
			}
		}

		> .copyright {
			position: absolute;
			bottom: -3rem;
			right: 0;
			font-size: 0.8rem;
			color: transparentize(_palette(bg), 0.625);
			margin-bottom: 0;

			a {
				&:hover {
					color: inherit;
				}
			}
		}

		&.is-dragging {
			@include vendor('user-select', 'none');
			cursor: -moz-grab;
			cursor: -webkit-grab;
			cursor: -ms-grab;
			cursor: grab;

			* {
				@include vendor('user-select', 'none');
			}

			*:not(a, .image) {
				cursor: -moz-grab;
				cursor: -webkit-grab;
				cursor: -ms-grab;
				cursor: grab;
			}
		}

		&.is-dragged {
			* {
				@include vendor('pointer-events', 'none');
			}
		}

		body.is-loading & {
			@include vendor('transform', 'translateX(2rem)');
			opacity: 0;
		}
	}

	@include breakpoint(small) {
		#wrapper {
			@include vendor('flex-direction', 'column');
			height: auto;
			margin: 0 0 5rem 0;
			box-shadow: 0 0.25rem 1.5rem 0.25rem transparentize(_palette(bg), 0.5);

			> .scrollZone {
				display: none;
			}

			> .copyright {
				display: block;
				width: 100%;
				text-align: center;
			}

			body.is-loading & {
				@include vendor('transform', 'translateY(1rem)');
			}
		}
	}

	@include breakpoint(xsmall) {
		#wrapper {
			box-shadow: none;

			body.is-loading & {
				@include vendor('transform', 'none');
			}
		}
	}