-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
167 lines (155 loc) · 2.59 KB
/
style.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
157
158
159
160
161
162
163
164
165
166
167
@import 'https://fonts.googleapis.com/css?family=Fauna+One|Playfair+Display';
/*Define some values*/
$white: #fff;
/*Define some values*/
/*Define the media query sizes*/
:root {
margin: 0;
padding: 0;
font: {
family: 'Fauna One', serif;
size: 13px;
}
}
@media screen and (min-width: 760px) {
:root {
font-size: 15px;
}
}
@media screen and (min-width: 820px) {
:root {
font-size: 16px;
}
}
@media screen and (min-width: 900px) {
:root {
font-size: 17px;
}
}
@media screen and (min-width: 980px) {
:root {
font-size: 18px;
}
}
@media screen and (min-width: 1060px) {
:root {
font-size: 19px;
}
}
@media screen and (min-width: 1220px) {
:root {
font-size: 20px;
}
}
@media screen and (min-width: 1400px) {
:root {
font-size: 22px;
}
}
/*Define the media query sizes*/
/*Do a simple reset*/
html,
body,
#app {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
/*Start building the app*/
#app {
position: relative;
animation: fadeIn 500ms ease-in-out forwards;
}
/*Notice the indenting that allows more consice wording*/
.selectors {
position: absolute;
top: 0;
left: 0;
width: 30px;
background: rgba(0, 0, 0, 0.1);
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1;
.selector {
border: 1px solid $white;
background: none;
width: 11px;
height: 11px;
border-radius: 50%;
margin: 5px 0;
opacity: 0.6;
cursor: pointer;
transition: background .3s ease-in-out, opacity .3s ease-in-out;
&:hover,
&.active {
background: white;
opacity: 0.9;
}
}
}
section.wrapper {
width: 100%;
height: 100%;
background-size: cover;
transition: background-image 500ms ease-in-out;
}
aside.panel {
width: 40vw;
height: 100%;
opacity: 0.9;
color: $white;
box-shadow: 5px 0 25px 0 rgba(0, 0, 0, 0.3);
transition: background 500ms ease-in-out;
h2.panel-header,
p.panel-info {
margin: 0;
padding: 1.3rem 3.5rem;
}
h2.panel-header {
padding-top: 2em;
font: {
weight: normal;
size: 2.5rem;
}
text-transform: capitalize;
}
p.panel-info {
font: {
size: 1.2rem;
}
line-height: 1.8em;
}
button.panel-button {
margin: 1.3rem 3.5rem;
padding: 0.8em 1.3em;
background: none;
border: 1px solid $white;
color: $white;
font: {
family: 'Montserrat';
size: 0.8rem;
weight: 700;
}
text-transform: uppercase;
transition: box-shadow 0.5s ease-in-out, color 0.5s ease-in-out;
&:hover {
box-shadow: inset 0 0 1.5em 1.5em $white;
}
&:focus {
outline: none;
}
}
}
/*Set animation fades*/
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}