Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_navPanel.scss « layout « sass « assets « static - github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c40f8f51de044a370490fac4def648d90a95efa5 (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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
///
/// Massively by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///

/* Nav Panel */

	#navPanelToggle {
		@include icon;
		@include vendor('transition', (
			'color #{_duration(transition)} ease-in-out',
			'background-color #{_duration(transition)} ease-in-out',
			'box-shadow #{_duration(transition)} ease-in-out'
		));
		display: none;
		position: fixed;
		top: 0.75rem;
		right: 0.75rem;
		border: 0;
		color: _palette(invert, fg-bold);
		font-family: _font(family-heading);
		font-size: 0.9rem;
		font-weight: _font(weight-heading);
		letter-spacing: 0.075em;
		padding: 0.375rem 1.25rem;
		text-transform: uppercase;
		z-index: _misc(z-index-base) + 1;

		&:before {
			content: '\f0c9';
			margin-right: 0.5rem;
		}

		&.alt {
			background-color: transparentize(_palette(bg), 0.125);
			box-shadow: 0 0.125rem 0.75rem 0 transparentize(_palette(invert, bg), 0.75);
			color: _palette(fg-bold);

			&:hover {
				background-color: _palette(bg);
			}
		}

		@include breakpoint('<=medium') {
			display: block;
		}

		@include breakpoint('<=small') {
			font-size: 0.8rem;
			padding: 0.25rem 1rem;
		}
	}

	#navPanel {
		@include vendor('transform', 'translateX(20rem)');
		@include vendor('transition', ('transform #{_duration(menu)} ease', 'box-shadow #{_duration(menu)} ease', 'visibility #{_duration(menu)}'));
		display: none;
		-webkit-overflow-scrolling: touch;
		background: _palette(bg);
		box-shadow: none;
		color: _palette(fg-bold);
		height: 100%;
		max-width: 80%;
		overflow-y: auto;
		padding: 3rem 2rem;
		position: fixed;
		right: 0;
		top: 0;
		visibility: hidden;
		width: 20rem;
		z-index: _misc(z-index-base) + 2;

		.links {
			list-style: none;
			padding-left: 0;

			li {
				border-top: solid 2px _palette(border);

				a {
					border-bottom: 0;
					display: block;
					font-family: _font(family-heading);
					font-size: 0.9rem;
					font-size: 0.9rem;
					font-weight: _font(weight-heading);
					letter-spacing: 0.075em;
					padding: 0.75rem 0;
					text-transform: uppercase;
				}

				&:first-child {
					border-top: 0;
				}
			}
		}

		.close {
			@include icon;
			@include vendor('transition', 'color #{_duration(transition)} ease-in-out');
			-webkit-tap-highlight-color: rgba(0,0,0,0);
			border: 0;
			color: _palette(fg-light);
			cursor: pointer;
			display: block;
			height: 3.25rem;
			line-height: 3.25rem;
			padding-right: 1.25rem;
			position: absolute;
			right: 0;
			text-align: right;
			top: 0;
			vertical-align: middle;
			width: 7rem;

			&:before {
				content: '\f00d';
				font-size: 1.25rem;
			}

			&:hover {
				color: _palette(fg-bold);
			}

			@include breakpoint('<=small') {
				height: 4rem;
				line-height: 4rem;
			}
		}

		@include breakpoint('<=medium') {
			display: block;
		}

		@include breakpoint('<=small') {
			padding: 2.5rem 1.75rem;
		}
	}

	@include breakpoint('<=medium') {
		body.is-navPanel-visible {
			#wrapper {
				opacity: 0.5;
			}

			#navPanel {
				@include vendor('transform', 'translateX(0)');
				box-shadow: 0 0 1.5rem 0 rgba(0,0,0,0.2);
				visibility: visible;
			}
		}
	}