-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
101 lines (88 loc) · 1.65 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
96
97
98
99
100
101
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
}
body {
background-color: #A40102;
}
.header {
text-align: center;
margin: 1rem auto;
color: #FEAA00;
}
.container {
width: 90%;
max-width: 1240px;
margin: 0 auto;
margin-bottom: 1rem;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
grid-gap: 1rem;
}
.card {
background-color: white;
text-decoration: none;
color: black;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
height: 450px;
border: 1px solid white;
border-radius: 1rem;
position: relative;
top: 0;
}
.card:hover {
box-shadow: 5px 5px 5px #FEAA00;
}
.card article {
padding: 1rem;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card p {
flex-grow: 1;
font-weight: 600;
line-height: 1.1rem;
}
.card span {
font-size: .8rem;
font-weight: bold;
color: #999;
text-transform: uppercase;
letter-spacing: 0.05rem;
margin-top: 2rem;
}
.card img {
height: 300px;
border-top-left-radius: 1rem;
border-top-right-radius: 1rem;
}
@media (min-width: 1240px) {
.item-1 {
grid-column: 1 / span 2;
}
.item-6 {
grid-area: 2 / 3 / 3 / 5;
}
}
@media (min-width: 475px) {
.container {
grid-template-columns: 1fr 1fr;
}
}
@media (min-width: 792px) {
.container {
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 992px) {
.container {
grid-template-columns: repeat(4, 1fr);
}
}