Repository navigation
Expand file tree
/
Copy pathmedia-query.css
More file actions
116 lines (88 loc) · 1.69 KB
/
Copy pathmedia-query.css
File metadata and controls
116 lines (88 loc) · 1.69 KB
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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
background-color: #f1f1f1;
font-family: Arial, Helvetica, sans-serif;
}
header {
background-color: #333;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
}
nav ul {
display: flex;
list-style: none;
}
nav ul li {
margin: 0 10px;
}
nav ul a {
color: #fff;
text-decoration: none;
}
footer{
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
position: fixed;
width: 100%;
bottom: 0;
}
.hero {
display: grid;
grid-template-columns: repeat(2, 1fr);
padding: 20px;
gap: 20px;
width: 70%;
margin: 0 auto;
}
@media (min-width: 414px){
header {
flex-direction: column;
flex-align: center;
}
.hero {
grid-template-columns: repeat(1, 1fr);
width: 100;
text-align: justify;
}
.hero img {
width: 100;
height: auto;
}
@media (min-width: 576px) {
header {
flex-direction: row;
justify-content: space-evenly;
}
}
@media (min-width : 992px) {
.hero {
grid-template-columns: repeat(2,1fr);
line-height: 2rem;
}
.item:nth-child(even){
display: grid;
gap: 4rem;
}
}
@media (min-width 1200px) {
header {
justify-content: space-between;
}
.hero {
width: 80%;
height: auto;
}
.hero{
width: 85%;
}
}
}
}