1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+
6
+ html , body , div , span , applet , object , iframe ,
7
+ h1 , h2 , h3 , h4 , h5 , h6 , p , blockquote , pre ,
8
+ a , abbr , acronym , address , big , cite , code ,
9
+ del , dfn , em , img , ins , kbd , q , s , samp ,
10
+ small , strike , strong , sub , sup , tt , var ,
11
+ b , u , i , center ,
12
+ dl , dt , dd , ol , ul , li ,
13
+ fieldset , form , label , legend ,
14
+ table , caption , tbody , tfoot , thead , tr , th , td ,
15
+ article , aside , canvas , details , embed ,
16
+ figure , figcaption , footer , header , hgroup ,
17
+ menu , nav , output , ruby , section , summary ,
18
+ time , mark , audio , video {
19
+ margin : 0 ;
20
+ padding : 0 ;
21
+ border : 0 ;
22
+ font-size : 100% ;
23
+ font : inherit;
24
+ vertical-align : baseline;
25
+ }
26
+ /* HTML5 display-role reset for older browsers */
27
+ article , aside , details , figcaption , figure ,
28
+ footer , header , hgroup , menu , nav , section {
29
+ display : block;
30
+ }
31
+ body {
32
+ line-height : 1 ;
33
+ }
34
+ ol , ul {
35
+ list-style : none;
36
+ }
37
+ blockquote , q {
38
+ quotes : none;
39
+ }
40
+ blockquote : before , blockquote : after ,
41
+ q : before , q : after {
42
+ content : '' ;
43
+ content : none;
44
+ }
45
+ table {
46
+ border-collapse : collapse;
47
+ border-spacing : 0 ;
48
+ }
49
+
50
+ /* Code written by Jessica Barnett */
51
+ /* CUSTOM STYLES */
52
+ : root {
53
+ --red : # bf3636 ;
54
+ --orange : # d04936 ;
55
+ --yellow : # ffcc14 ;
56
+ --green : # 5a5a23 ;
57
+ --blue : # 303464 ;
58
+ --lighter-blue : # 414686 ;
59
+ --pink : # fe4b7a ;
60
+ --purple : # 741a60 ;
61
+ --brown : # 40130e ;
62
+ --light-gray : # eaeaea ;
63
+ --med-gray : # 555 ;
64
+ --dark-gray : # 222 ;
65
+ font-size : 16px ;
66
+ }
67
+
68
+ body {
69
+ background-color : var (--light-gray );
70
+ font-family : Montserrat, sans-serif;
71
+ line-height : 1.3 ;
72
+ }
73
+
74
+ header , footer {
75
+ padding : 2rem ;
76
+ background-color : var (--blue );
77
+ color : white;
78
+ }
79
+
80
+ header {
81
+ box-shadow : 3px 3px 3px # aaa ;
82
+ }
83
+
84
+ footer {
85
+ box-shadow : -3px -3px 3px # aaa ;
86
+ }
87
+
88
+ main {
89
+ width : calc (100% - 2rem );
90
+ max-width : 1200px ;
91
+ margin : 2rem auto;
92
+ padding : 1rem ;
93
+ display : grid;
94
+ grid-template-columns : repeat (auto-fill, minmax (300px , 1fr ));
95
+ grid-gap : 1rem ;
96
+ }
97
+
98
+ h1 {
99
+ font-size : 2rem ;
100
+ }
101
+
102
+ h1 , h2 , h3 {
103
+ text-align : center;
104
+ margin : 0.25rem 0 ;
105
+ font-weight : bold;
106
+ }
107
+ /*
108
+ h2{
109
+ grid-column: 1/-1;
110
+ font-size: 1.4rem;
111
+ background-color: white;
112
+ padding: 1rem;
113
+ box-shadow: 5px 5px 5px #aaa;
114
+ } */
115
+
116
+ h3 {
117
+ font-size : 1.2rem ;
118
+ }
119
+
120
+ .sr-only {
121
+ position : absolute;
122
+ left : -10000px ;
123
+ top : auto;
124
+ width : 1px ;
125
+ height : 1px ;
126
+ overflow : hidden;
127
+ }
128
+
129
+ section {
130
+ width : calc (100% - 2rem );
131
+ min-height : 300px ;
132
+ margin : 0 auto;
133
+ background-color : white;
134
+ box-shadow : 5px 5px 5px # aaa ;
135
+ padding : 1rem ;
136
+ }
137
+
138
+ a {
139
+ display : block;
140
+ font-size : 1.1rem ;
141
+ padding : 0.75rem ;
142
+ margin : 1rem 0 ;
143
+ background-color : var (--blue );
144
+ color : white;
145
+ text-decoration : none;
146
+ box-shadow : 3px 3px 6px var (--med-gray );
147
+ }
148
+
149
+ a : hover {
150
+ background-color : var (--lighter-blue );
151
+ box-shadow : 6px 6px 10px var (--med-gray );
152
+ }
153
+
154
+ .span {
155
+ grid-column : 1 / -1 ;
156
+ display : grid;
157
+ grid-template-columns : repeat (auto-fill, minmax (300px , 1fr ));
158
+ grid-column-gap : 1rem ;
159
+ width : calc (100% - 2rem );
160
+ max-width : calc (1200px - 4rem );
161
+ }
162
+
163
+ .span h3 {
164
+ grid-column : 1 / -1 ;
165
+ }
166
+
167
+ .span a {
168
+ margin : 0.5rem 0 ;
169
+ }
170
+
171
+ p {
172
+ padding : 1em ;
173
+ font-size : 1.1em ;
174
+ }
175
+
176
+ footer a {
177
+ display : inline;
178
+ box-shadow : none;
179
+ background-color : var (--blue );
180
+ }
181
+
182
+ footer a : hover {
183
+ text-decoration : underline;
184
+ box-shadow : none;
185
+ }
186
+
187
+ @media screen and (min-width : 964px ){
188
+ .span {
189
+ grid-column : 2 / -1 ;
190
+ }
191
+ }
0 commit comments