Repository navigation
Expand file tree
/
Copy pathprojects.css
More file actions
82 lines (72 loc) · 1.43 KB
/
Copy pathprojects.css
File metadata and controls
82 lines (72 loc) · 1.43 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
.projects {
width: 100%;
padding: 0 2rem 4rem;
position: relative;
}
.projects h2 {
margin: 0;
color: var(--accent-secondary);
}
.projects h2::before,
.projects h2::after {
color: var(--light-accents);
}
.projects__grid {
list-style-type: none;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.project__details {
height: 100%;
display: grid;
/* grid-template-rows: auto;
grid-auto-rows: maxcontent; */
/* grid-auto-rows: minmax(5rem, 10rem); */
}
.project__image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 1rem;
}
.project__name {
text-align: center;
padding: 1rem;
}
.project__name h3 {
font-size: 1.4rem;
line-height: 2rem;
font-weight: 600;
font-family: "Montserrat", sans-serif;
text-transform: uppercase;
text-align: center;
}
.project__name p {
font-size: 1.6rem;
line-height: 2.4rem;
font-weight: 700;
font-style: italic;
color: var(--accent-secondary);
}
@media (min-width: 768px) {
.projects__grid {
list-style-type: none;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2.5rem;
}
.project__details {
gap: 1rem;
}
.project__image {
box-shadow: var(--generic-shadow);
}
}
@media (min-width: 1200px) {
.projects__grid {
max-width: 1500px;
margin: auto;
grid-template-columns: repeat(4, 1fr);
}
}