-
Notifications
You must be signed in to change notification settings - Fork 0
/
lht_styles.css
196 lines (158 loc) · 2.93 KB
/
lht_styles.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
@charset "utf-8";
/*
New Perspectives on HTML and CSS, 7th Edition
Tutorial 6
Case Problem 3
The Lyman Theater General Style Sheet
Filename: lht_styles.css
*/
/* HTML and Body styles */
html {
background: rgb(151, 151, 151);
font-family: Verdana, Geneva, sans-serif;
height: 100%;
}
body {
background-color: white;
box-shadow: rgb(51, 51, 51) 10px 0px 40px, rgb(51, 51, 51) -10px 0px 40px;
border-left: 1px solid gray;
border-right: 1px solid gray;
min-height: 100%;
margin: 0px auto;
min-width: 400px;
max-width: 1024px;
width: 100%;
}
/* Header styles */
header {
background: rgb(178, 97, 63);
}
header img#logoimg {
display: block;
width: 100%;
}
/* Navigation list styles */
header nav ul {
width: 100%;
}
header nav ul li {
font-size: 1em;
}
header nav ul li a {
color: white;
display: block;
padding: 5px 20px;
width: 100%;
}
header nav ul li a:hover {
color: rgb(11, 12, 145);
}
a#navicon {
display: none;
}
/* Article Styles */
article {
width: 90%;
margin: 20px auto;
}
article h1 {
color: rgb(154, 64, 3);
font-family: Cambria, "Hoefler Text", "Liberation Serif", Times,
"Times New Roman", serif;
font-weight: normal;
font-size: 2.5em;
letter-spacing: 0.03em;
line-height: 1.2em;
margin-bottom: 20px;
}
article p {
line-height: 1.5;
margin-bottom: 15px;
}
article p em {
color: rgb(154, 64, 3);
}
/* Footer styles */
footer {
clear: both;
color: white;
background: linear-gradient(to bottom, rgb(178, 97, 63), rgb(41, 41, 41));
font-size: 0.8em;
font-style: normal;
width: 100%;
}
footer nav ul,
footer section {
float: left;
padding: 20px 30px;
width: 20%;
}
footer section {
float: left;
padding: 20px 30px;
width: 40%;
}
footer nav ul a {
color: white;
}
footer nav ul a:hover {
text-decoration: underline;
}
footer::after {
display: table;
content: "";
clear: both;
}
/* ===============================
Mobile Styles: 0px to 640px
===============================
*/
@media only screen and (max-width: 640px) {
a#navicon {
display: block;
}
header nav {
padding-bottom: 5px;
}
header nav ul {
display: none;
}
header nav ul li {
font-size: 1em;
line-height: 1.3em;
height: 1.3em;
}
a#navicon:hover + ul,
header nav ul:hover {
display: block;
}
header img#logoimg {
width: 100%;
}
article {
display: none;
}
footer nav ul,
footer section {
font-size: 1.2em;
width: 100%;
}
}
/* =============================================
Tablet and Desktop Styles: greater than 640px
=============================================
*/
@media only screen and (min-width: 641px) {
header nav ul {
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-justify-content: center;
justify-content: center;
}
header nav ul li {
-webkit-flex: 0 1 auto;
flex: 0 1 auto;
}
}