-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
95 lines (85 loc) · 1.46 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
body {
background-color: #fff;
color: #333;
margin: 0;
font: 1.2em / 1.2 Arial, Helvetica, sans-serif;
}
img {
max-width: 100%;
display: block;
}
.logo {
font-size: 200%;
padding: 50px 20px;
margin: 0 auto;
max-width: 980px;
}
.grid {
margin: 0 auto;
padding: 0 20px;
max-width: 980px;
/*My Code*/
display: flex;
}
nav {
background-color: #000;
padding: .5em;
/*My code*/
position: sticky;
top: 0;
}
nav ul {
margin: 0;
padding: 0;
list-style: none;
/*My Code*/
display: flex;
justify-content: space-between;
}
nav a {
color: #fff;
text-decoration: none;
padding: .5em 1em;
}
.photos {
list-style: none;
margin: 0;
padding: 0;
/*My Code*/
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
}
.feature {
width: 200px;
float: left;
margin-right: 1em;
}
/*Media Queries - stretch*/
@media screen and (max-width: 600px) {
nav {
position: static;
}
nav ul {
flex-direction: column;
}
nav ul li {
padding: .5em;
text-align: center;
}
.grid {
flex-direction: column-reverse;
}
.photos {
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 10px;
}
.feature {
float: none;
margin: 0 auto;
width: 100%;
}
article {
padding-top: 1em;
}
}