-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
210 lines (166 loc) · 2.88 KB
/
main.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
/* And I don't just do HTML - but assoicated HTML as well! */
body {
width:100%;
}
/* This section of CSS provides the inial layout of the mainbody and sidebar for full-screen view. */
#mainBody {
/*float:right;*/
/*position:absolute;*/
/*left:320px;*/
top:0px;
/*display: inline-block;*/
max-width: 850px;
margin 1.5%
width:70%;
overflow: hidden;
/*display:none;*/
}
#sidebar {
width:30%;
min-width: 320px;
background-color: #bfbfbf;
/*position: fixed;*/
top:0px;left:0px;
margin:1.5%;
float:left;
overflow: hidden;
}
/* This section reverts the section removes float and 'stacks' the elements for small widths */
/* This section adds padding for smaller widths */
/* cleans up list display for items */
ol {
list-style: none
}
/*@media screen and (max-width:1081px) {
#mainBody {
position:absolute;
left:320px;
}
}*/
/* This is the formatting for the navigation menu between the body elements. */
.menu {
/*float: left;*/
display: inline-block;
text-decoration: none;
color:white;
margin-left: auto;
margin-right: auto;
}
.menu:hover {color: yellow}
.leftend {
border-top-left-radius: 5px; border-bottom-left-radius: 5px;
}
.rightend {
border-top-right-radius: 5px; border-bottom-right-radius: 5px;
}
.bar {
background-color:green;
display: inline-block;
margin-left: 0px;
margin-right: 0px;
padding-left: 40px;
padding-right: 15px;
width: 75px;
height: 25px;
padding-top: 10px;
}
.instruction-answer{
text-align: center;
}
/* This is additional styling for the footer (fixed) */
.barf {
background-color:green;
display: block;
margin-left: 0px;
margin-right: 0px;
padding-left: 20px;
padding-right: 15px;
list-style: none;
}
footer {
/*float:right;*/
/*margin-left:auto;
margin-right:auto;*/
position:fixed;
/*display:none;*/
bottom:0px;
right:0px;
}
/* This section affects the images */
#photos2display{
width: 100%
}
.fphoto{
display:inline;
width: 20%;
}
#fpright{
margin-left: 20%;
}
#pic{
width:15%;
margin-left: 22.5%;
}
.sphoto{
padding: 50px;
}
#picleft{
float:left;
width:250px;
height: 250px;
}
#picright{
float:right;
width:250px;
height: 250px;
}
#gallery{
width: 1400px;
}
/* MEDIA QUERIES */
/* pads main body and collapses nav bar */
@media screen and (max-width:700px) {
#sidebar {
float:none;
width:100%;
}
#mainBody {
width:100%;
}
.bar{
display:block;
margin-left: auto;
margin-right: auto;
padding-left: 20px;
width:200px;
height:100%;
padding-top: 0px;
}
.leftend, .rightend {
border-radius: 0px;
}
.instruction-answer{
text-align: center;
}
}
/* stacks elements of nav bar */
@media screen and (max-width: 850px){
#mainBody {
padding: 50px
}
.barf {
display: none;
}
}
@media screen and (max-width: 900px){
#picright{
padding: 0;
float: none;
display: block;
}
#picleft{
padding: 0;
float: none;
display: block;
}
}