-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
262 lines (221 loc) · 4.59 KB
/
index.css
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
/**
* Theme - Stylesheet Generator for Reddit
* Authors: Sriram Krishnan, James Kerrane, Devonnae Williams
* Created: 7/20/2017
* Team: Owl 24
* Part of the Chingu Cohort
*/
body, html {
height: 100%;
font-family: 'Open Sans', sans-serif;
}
.parallax {
background-image: url(Images/owl-24-spash.jpg);
filter: sepia(100%);
height: 50%;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
max-height: 320px;
display: flex; /* sets this element as a flex parent */
flex-direction: column; /* tells the parent to organize child elements vertically */
justify-content: center; /* center children within the parent element */
}
/* Turn off parallax scrolling for tablets and phones. Increase the pixels if needed */
@media only screen and (max-device-width: 1024px) {
.parallax {
background-attachment: scroll;
}
}
.maintext {
font-size: 60px;
text-align: center;
color: black;
background-color: white;
font-family: 'Open Sans', sans-serif;
display: flex; /* sets this element as a flex parent */
flex-direction: column; /* tells the parent to organize child elements vertically */
}
* {
margin: 0;
}
html {
margin: 0;
}
body {
margin: 0;
}
.square {
float: left;
position: relative;
width: 30%;
padding-bottom: 30%;
/* = width for a 1:1 aspect ratio */
margin: 1.66%;
background-color: #FF7F50;
overflow: hidden;
}
.content {
position: absolute;
height: 90%;
/* = 100% - 2*5% padding */
width: 90%;
/* = 100% - 2*5% padding */
padding: 5%;
}
/* For responsive images */
.content .rs {
width: auto;
height: auto;
max-height: 90%;
max-width: 100%;
}
/* For responsive images as background */
.bg {
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
/* change this to "contain" if you don't want the images to be cropped */
color: #fff;
}
img:hover {
cursor: pointer;
}
/**
* Footer Styles
*/
footer {
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
background-color: #efefef;
text-align: center;
}
a {
/* Fix text underlining */
color: blue;
text-decoration: none;
/* no underline */
}
/* GitHub Corner */
.github-corner {
position: fixed;
display: block;
top: 0;
right: 0;
z-index: 2;
}
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
@keyframes octocat-wave {
0%, 100% {
transform: rotate(0)
}
20%, 60% {
transform: rotate(-25deg)
}
40%, 80% {
transform: rotate(10deg)
}
}
@media (max-width:500px) {
.github-corner:hover .octo-arm {
animation: none
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
}
.intro-text {
text-align: justify;
max-width: 640px;
margin: auto;
padding-top: 25px;
padding-bottom: 25px;
}
.iframe {
top: 70%;
display:block;
margin: 0 auto;
padding-top: 25px;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
position: relative;
background-color: #fefefe;
margin: auto;
padding: 0;
border: 1px solid #888;
width: 80%;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s
}
/* Add Animation */
@-webkit-keyframes animatetop {
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
@keyframes animatetop {
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
/* The Close Button */
.close {
color: white;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
.modal-header {
padding: 2px 16px;
background-color: #5cb85c;
color: white;
}
.modal-footer {
padding: 2px 16px;
background-color: #5cb85c;
color: white;
}
textarea {
resize: none;
max-width: 100%;
}
.instructions {
padding-top: 20px;
padding-left: 20px;
padding-bottom: 20px;
}
.embed-image {
text-align: center;
}
.embedded-image {
max-width: 50%;
max-height: 50%;
padding-top: 20px;
}