-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
110 lines (93 loc) · 1.65 KB
/
index.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
@import url(./fonts/Raleway/Raleway.css);
@import url(./fonts/Inter/Inter.css);
*,
*::after,
*::before {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Inter", sans-serif;
}
body {
display: flex;
flex-direction: column;
row-gap: 2rem;
margin-block-end: 3rem;
}
header {
padding: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
background-color: rebeccapurple;
}
header > h1 {
font-family: "Raleway", sans-serif;
font-weight: normal;
font-size: 1.5rem;
color: white;
}
header > h1 > a {
text-decoration: none;
color: inherit;
}
header > a > img {
--image-dimension: 2rem;
display: block;
height: var(--image-dimension);
width: var(--image-dimension);
}
main {
margin: 0 2rem;
display: flex;
flex-direction: column;
row-gap: 3rem;
}
summary::marker {
content: "";
}
summary {
cursor: pointer;
}
summary a {
/* text-decoration: none; */
color: inherit;
}
summary > h2 {
display: flex;
column-gap: 5px;
cursor: pointer;
}
ul {
margin-block-start: 1rem;
list-style-type: none;
display: grid;
column-gap: 1rem;
row-gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(30ch, 1fr));
}
/* Temp fix for intermediate list only has 1 item */
.intermediate-list {
grid-template-columns: repeat(auto-fit, minmax(30ch, 0.245fr));
}
.card {
padding: 1rem;
display: flex;
flex-direction: column;
row-gap: 0.5rem;
color: #4b2c75;
background-color: #e6e6fa;
text-decoration: none;
border-radius: 22px;
}
.card > img {
width: 100%;
height: 10rem;
border-radius: 6px;
}
.card > h3 {
font-size: 1.3rem;
}
.card > p {
font-size: 1rem;
}