-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylesheet.css
348 lines (293 loc) · 6.75 KB
/
stylesheet.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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
/***********************************************/
/* stylesheet.css */
/***********************************************/
/***********************************************/
/* HTML tag styles */
/***********************************************/
#question { text-transform: capitalise; }
body{
font-family: Calibri, Arial, sans-serif;
color: #333333;
line-height: 1.166;
/*margin: 0px;
padding: 0px;*/
background: url(handprint_background2.png) fixed;
/*font-size: 20px;*/
/*Stops backround appearing tiled*/
background-size: cover;
/*Make sure the background does not tile or repeat:*/
background-repeat: no-repeat;
/*Stops the background scrolling
background-attachment: fixed;*/
}
/***********************************************/
/* Layout Divs */
/***********************************************/
/*DIV to help centre the layout of the website*/
.main-content{
margin-left: auto;
margin-right: auto;
}
.container{
position:relative;
/*height: 681px;*/
height: 100%;
background-color: #ffffff;
/*width: 650px;*/
/*The calc helps me create the width in a way it start off with 100% but due to the margin it will equally distribute the 2 sides
if I didn't have the margin set it will take 70px off the right*/
width: calc(100% - 70px);
margin: 35px 35px 35px 35px;
border-radius: 10px;
padding: 10px;
}
/* Name of website*/
.masthead{
}
/* Content - questions/text*/
.content {
position: relative;
padding: 20px;
top: 10%;
text-align:justify;
font-size: 4vh;
margin: 10px;
/*Add animation to the speech box so it rotates 360 degrees
This is its starting position*/
/*transform: rotate(0deg);
transition: transform 2s;*/
border-color: #000000;
border: 8px solid #666;
border-radius: 60px;
box-shadow: 2px 2px 4px #888;
}
.content:hover
{
/*Rotates the speech box when you hover over it*/
transform: rotate(360deg);
}
/*Before and after pseudo code helps to display a border radius that had a transaparent triangle*/
.content:before
{
content: ' ';
position: absolute;
width: 0;
height: 0;
right: -50px;
top: 56px;
border: 25px solid;
border-color: #666 transparent transparent #666;
}
.content:after
{
content: ' ';
position: absolute;
width: 0;
height: 0;
right: -30px;
top: 64px;
border: 20px solid;
border-color: white transparent transparent white;
}
/* Display layout for the submit button*/
.submit{
padding: 10px;
}
/* Make the image and the speech box float on the page together so that they remain together*/
.question-area{
/*float: left;*/
padding-right: 258px;
position: relative;
}
/*The custom alert message based on the user's input*/
#msgBox{
width: 12em;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 200%;
border-radius: 1em;
padding: 1.5em;
background: #dddddd;
}
#closeMsg{
position: fixed;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
}
#backgroundMsgBox{
background-color: grey;
width: 100%;
position: fixed;
height: 100vh;
top: 0;
left: 0;
display: none;
opacity: 0.9;
/*using view port saves you specifying the percentage of the body and html tags as if you do this you have to specify each parent*/
}
/************** pageName styles ****************/
.pageName{
padding: 0px 0px 14px 10px;
}
.pageName h2{
font: bold 175% Arial,sans-serif;
color: #000000;
margin:0px;
padding: 0px;
}
/***********************************************/
/* Component Divs */
/***********************************************/
.siteName{
margin: 0px;
padding: 16px 0px 8px 16px;
color: black;
font-weight: bold;
}
/************** image-container styles *****************/
.image-container{
position: absolute;
padding: 10px 10px 10px 10px;
float: left;
/*top: 0px;*/
top: 50px;
right: 0px;
}
#main-image{
top: 0px;
}
/************** siteInfo styles ****************/
.siteInfo{
position: relative;
clear: both;
border-top: 1px solid #cccccc;
font-size: small;
color: #cccccc;
padding: 10px 10px 10px 10px;
}
.siteInfo img{
padding: 4px 4px 4px 0px;
vertical-align: middle;
}
/******* hyperlink and anchor tag styles *******/
a:link, a:visited{
color: #005FA9;
text-decoration: none;
}
a:hover{
text-decoration: underline;
}
/************** header tag styles **************/
h1{
font: bold 120% Calibri, Arial,sans-serif;
color: #334d55;
font-size: 4vw;
}
h2{
font: bold 114% Calibri, Arial,sans-serif;
color: #006699;
font-size: 3vw;
}
h3{
font: bold 100% Calibri, Arial,sans-serif;
color: #334d55;
font-size: 2vw;
}
h4{
font: 100% Calibri, Arial,sans-serif;
color: #333333;
}
h5{
font: 100% Calibri, Arial,sans-serif;
color: #334d55;
}
/********* form and related tag styles *********/
.important{
font-weight: bold;
}
.starArray{
display: none;
width:400px;
height: 400px;
background-image: url('star.png');
margin: 12px;
}
/***********************************************/
/* Button styles */
/***********************************************/
.generalBtn{
font-size: 20px;
border: 0;
border-radius: 20px;
line-height: 40px;
background-color: #15978E;
color: #FFF;
padding: 0 15px;
}
.generalBtn:hover{
background-color: #106963;
}
.submitBtn{
margin-right: 10px;
}
/***********************************************/
/* Media queries */
/***********************************************/
@media (min-width: 768px)
.container {
width: calc(100% - 70px);
}
.nav {
padding-left: 0;
margin-bottom: 11px;
list-style: none;
font-size: 3vh;
}
.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover {
color: #fff;
background-color: #337ab7;
}
.nav-pills>li>a {
border-radius: 4px;
}
.nav>li>a {
position: relative;
display: block;
padding: 10px 15px;
}
.row {
margin-right: -15px;
margin-left: -15px;
font-size: 3vh;
padding: 10px;
}
.col-md-6{
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 40px;
}
/***********************************************/
/* Input text */
/***********************************************/
.form-control {
display: block;
width: 100%;
height: 50px;
font-size: 4vh;
padding: 6px 12px;
line-height: 1.42857143;
color: black;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}