-
Notifications
You must be signed in to change notification settings - Fork 39
/
ch4-layout-styles.css
131 lines (105 loc) · 2.14 KB
/
ch4-layout-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
html {
font: 1.1em/1.3 Gill Sans,Gill Sans MT,Calibri,sans-serif ;
}
body {
background-color: #fff;
color: #333;
padding: 20px;
}
img {
max-width: 100%;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
.mainheader li {
border: 1px solid #ccc;
background-color: #f2f2f2;
margin: 0 0 10px 0;
}
.mainheader li a {
display: block;
text-decoration: none;
color: #000;
padding: 10px 1em 10px 1em;
}
.box {
background-color: #f2f2f2;
padding: 10px;
border: 1px solid #ccc;
}
.box h2 {
font-weight: normal;
margin: 0;
padding: 0;
}
.box a:link, .box a:visited {
color: rgb(47,57,73);
}
.cta-list a {
text-decoration: none;
}
@media only screen and (min-width: 460px) {
.mainheader { grid-area: header; margin: 0 0 20px 0;}
.feature-pull { grid-area: featurepull ; }
.feature { grid-area: feature; }
.gallery { grid-area: secondary; }
.mainfooter { grid-area: footer; }
.wrapper {
display: grid;
width: 90%;
margin: 0 auto 0 auto;
grid-template-columns: auto;
grid-template-rows: auto ;
grid-template-areas:
"header"
"feature"
"featurepull"
"secondary"
"footer";
}
.mainheader ul {
display: flex;
}
.mainheader li {
margin: 0 10px 0 0;
}
.gallery {
display: flex;
margin: 20px 0 20px 0;
justify-content: space-between;
flex-wrap: wrap;
}
.gallery li {
width: 45%;
margin: 0 0 20px 0;
}
.cta-list li {
margin: 0 0 20px 0;
}
}
@media only screen and (min-width: 760px) {
.wrapper {
grid-template-columns: 48% 4% 48%;
grid-template-rows: auto ;
grid-template-areas:
"header header header"
"featurepull . feature"
"secondary secondary secondary"
"footer footer footer"
;
}
.gallery li {
width: 21%;
margin: 0;
}
.cta-list {
display: flex;
justify-content: space-between;
}
.cta-list li {
width: 42%;
}
}