forked from BSN-Asumiko/cq_pildora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
card-style.css
55 lines (47 loc) · 933 Bytes
/
card-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
.card-container {
width: 70rem;
height: auto;
background-color: rgb(203, 223, 223);
margin: auto;
margin-top: 3em;
display: flex;
align-items: center;
justify-content: center;
resize: horizontal;
overflow: auto;
container-type: inline-size;
container-name: card_example;
}
.card-child {
width: 90%;
border: 2px rgb(115, 172, 158) solid;
display: grid;
grid-template-columns: 1fr 2fr;
gap: 1em;
padding: 1em;
margin: 2em;
text-align: justify;
}
h3 {
font-size: 1.5em;
}
@container card_example (max-width: 550px) {
.card-child {
grid-template-columns: 1fr;
}
img {
width: 60cqw;
height: 60cqw;
margin: auto;
margin-top: 5em;
}
h3 {
text-align: center;
font-size: 2em;
margin-top: 0;
}
p {
display: none;
font-size: 3.5cqb;
}
}