-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
192 lines (149 loc) · 2.86 KB
/
style.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
body {
background: #f5f6f7;
color: #1b1b32;
font-family: Helvetica;
}
/*
The logo will be at least 100px wide.
But will grow with viewport.
And will 18% of VW, if VW greater than 1000px
*/
#logo {
width: max(100px, 18vw);
aspect-ratio: 35/4;
padding: 0.4em;
background-color: black;
}
/* use *Flexbox* to put space between the children, and vertically center*/
header {
justify-content: space-between;
display: flex;
flex-direction: row;
background-color: #1b1b32;
height: 50px;
width: 100%;
align-items : center;
position: fixed;
top:0;
}
main {
padding-top: 50px;
}
h1 {
color: #f1be32;
font-size : min(5vw, 1.2em);
text-align: center;
}
nav {
width: 50%;
max-width: 300px;
height: 50px;
}
nav > ul {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
align-items: center;
padding-inline-start: 0;
margin-block: 0;
height: 100%;
}
/*Change the font color of all the anchor elements within the list elements to a contrast ratio of at least 7:1 */
nav a {
color: #fcfcfc;
text-decoration: none;
}
nav li:hover {
color: #1b1b32;
background-color: #dfdfe2;
cursor: pointer;
}
nav li {
color: #dfdfe2;
margin: 0 0.2rem;
padding: 0.2rem;
display: block;
}
h1, h2 {
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h2 {
border-bottom: 4px solid #dfdfe2;
padding-top : 60px;
margin-top : 0;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
/*To prevent unnecessary repetition, target the before pseudo-element of the p element, and give it a content property of "Question #" */
p::before {
content: "Question #";
}
section {
width: max 80% ;
max-width: 600px;
margin: 0 0 10px 0;
}
.info {
padding : 50px 0 0 100px;
}
.formrow {
margin-top : 100px ;
padding : 0 100px 0 100px;
}
input {
font-size: 25px;
}
.info > input {
width: 50%;
text-align: left;
}
.info label {
width: 10%;
min-width: 55px;
text-align : right;
}
.info input, .info label{
display: inline-block;
}
.question-block {
text-align: left;
display: block;
width: 100%;
margin-top: 20px;
padding-top: 5px;
}
/*Make the paragraph to stand out.*/
p {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
}
/*Remove the border and padding from the question class.*/
.question {
border: 0px none;
padding-bottom: 0px;
}
/*Remove the bullet styling for the items with the unordered list, and remove the unordered list padding.*/
.answers-list {
list-style: none;
padding : 0;
}
/*Give the `button` a freeCodeCamp-style design.*/
button {
display: block;
margin: 40px auto;
width: 40%;
padding: 15px;
font-size: 23px;
background: #d0d0d5;
border: 3px solid #3b3b4f;
}