This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.scss
156 lines (146 loc) · 3.33 KB
/
main.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
@import 'variables';
* {
box-sizing: border-box;
font-family: raleway, sans-serif;
}
.container {
width: 100%;
}
/* Hero Image etc */
.hero {
position: relative;
// idea for fully scaling background-img comes from
// https://www.smashingmagazine.com/2013/07/simple-responsive-images-with-css-background-images/
// TODO: implement <img srcset> and create different sized images
// http://www.responsivebreakpoints.com/
#hamburger {
display: none;
}
#banner {
width: 100%;
display: inline-block;
vertical-align: middle;
font: 0/0 serif;
text-shadow: none;
color: transparent;
background-size: 100%;
background-position: 50% 50%;
background-repeat: no-repeat;
transition: 3s;
.inner {
padding-top: 20%;
/* height/width of image, assumging 5:1 ratio */
display: block;
height: 0;
}
}
.overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
.logo {
width: 5vw;
height: auto;
color: $hero-text;
}
h1 {
color: $hero-text;
font-family: expletus, serif;
font-size: 4vw;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.7);
margin: .5vw 0;
}
h3 {
color: $hero-text;
font-size: 2vw;
margin: .3vw 0;
}
}
}
// Fix menu hamburger on top left
#hamburger,
#close-btn {
position: absolute;
top: 10px;
left: 10px;
color: $navbar-link-color;
// overlay is 2, so this makes it stay clickable
z-index: 3;
}
#hamburger {
color: white;
}
// Menu styling
//
.sidenav {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background: $navbar-bg;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
// border-right: 5px solid lighten($navbar-link-color,20%);
box-shadow: 9px 0px 15px -4px rgba(0, 0, 0, 0.75);
ul {
list-style: none;
padding-left: 0px;
}
li {
a {
color: $navbar-link-color;
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: $navbar-link-color;
display: block;
transition: 0.3s;
&:hover {
letter-spacing: 2px;
font-weight: bold;
box-shadow: 9px 0px 15px -4px rgba(0, 0, 0, 0.75);
}
}
}
#social {
margin: 30px 20px;
display: flex;
justify-content: space-around;
a {
color: $navbar-link-color;
}
}
}
.sidenav-open {
width: 250px;
}
.move-right {
margin-left: 250px;
// background-color: rgba(0,0,0,0.5);
}
#main {
height: 100vh;
transition: margin-left .5s;
background: $main-bg;
color: $main-text;
.text-content {
margin: 10px 20px;
}
h2 {
font-family: expletus, serif;
text-decoration: underline;
}
}