-
Notifications
You must be signed in to change notification settings - Fork 432
/
styles.css
156 lines (129 loc) · 2.78 KB
/
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
/*
---------------------------------------------------------------
Add your name to this file below:
NAME:
---------------------------------------------------------------
*/
/* Remember, the root element is where you can declare CSS variables */
:root{
/* Theme colors in CSS variables */
--lime: #41c84c;
--mint: #9ee3a4;
--teal: #41c8b1;
--tiffany: #9ee3d7;
--plum: #6e2275;
--amethyst: #bc41c8;
/* text and background colors */
--white: #fff;
--lt-gray: #eaeaea;
--med-gray: #555;
--dk-gray: #222;
/* Font Stacks */
/* add the two font stacks here */
}
body{
/* set the font family to Lato, Arial, sans-serif (--body-fonts) */
/* Set the line height to 1.5 */
/* set the font size to 1.1rem */
/* set the font color to #222 (--dk-gray) */
margin: 0;
padding: 0;
}
header{
padding: 1rem;
background-color: var(--plum);
color: var(--white);
border-bottom: 8px solid var(--teal);
}
h1, h2, h3{
/* center align the text */
/* use a web font here (instructions on page) */
/* make the heading text all small caps style */
}
h2{
margin: 0;
padding: 4px;
text-decoration: dotted underline var(--teal) 4px;
}
h3{
margin: 0;
padding: 4px;
/* add an underline like the one on the h2s to the h3s, but make it solid and mint color */
}
nav{
margin: 0 auto;
padding: 0.5rem 0;
}
nav ul{
list-style-type: none;
padding-left: 0;
}
nav a{
/* make these display as block level elements */
margin: 1rem auto;
padding: 1rem;
background-color: var(--tiffany);
/* set the font color to #222 (--dk-gray) */
/* center align the text */
/* remove the underline */
/* make the font's size 1.2rem */
/* make the font bolder (600) */
}
nav a:hover{
color: var(--dk-gray);
background-color: var(--teal);
}
main{
padding: 2rem 1rem;
}
section{
padding: 1rem;
}
#fonts, #text{
border-bottom: 4px solid var(--plum);
}
p{
/* set a max-width of 55 characters */
/* add an indent on the first line of 2rem */
/* center those paragraphs (not the text) on the page */
padding: 0.5rem;
}
a{
color: var(--plum);
}
a:hover{
color: var(--lime);
}
dl, ol, main ul{
/* limit the width of these lists to 55 characters */
margin: 1rem auto;
}
dt{
/* make this font display in bold weight */
}
dt::before{
color: var(--amethyst);
content: "\2605";
padding-right: 4px;
}
footer{
padding: 1rem;
background-color: var(--plum);
color: var(--white);
text-align: center;
border-top: 8px solid var(--teal);
}
/*
THIS CODE IS A MEDIA QUERY, USED TO ADD STYLES BASED ON HOW WIDE THE SCREEN IS. IT IS PART OF WHAT IS MAKING THE SITE RESPONSIVE
LEARN MORE ABOUT RESPONSIVE DEVELOPMENT IN GIT414
*/
@media screen and (min-width: 450px){
nav{
width: fit-content;
}
nav ul{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
}