-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardComponent.module.css
112 lines (98 loc) · 1.68 KB
/
CardComponent.module.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
111
112
.card {
color: black;
position: relative;
width: 100%;
max-width: 30rem;
aspect-ratio: 750 / 1050;
background-color: white;
border-radius: 1rem;
overflow: hidden;
}
.backgroundImage {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
opacity: 0.15;
z-index: 0;
}
.cardContent {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
padding: 2rem;
gap: 1rem;
font-size: 1rem;
height: 100%;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.titleAndAlignment {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.1rem;
}
.sizeAndAlignment {
display: flex;
gap: 0.2rem;
align-items: center;
font-style: italic;
font-size: 1rem;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.title {
font-size: 1.5rem;
color: black;
}
.allStats {
display: flex;
width: 100%;
gap: 1rem;
}
.abilityScores {
display: flex;
justify-content: space-around;
width: 70%;
gap: 0.5rem;
}
.armorAndHitPoints {
display: flex;
justify-content: space-between;
flex-direction: column;
width: 30%;
gap: 0.5rem;
}
.hitPoints {
display: flex;
flex-direction: column;
text-align: center;
}
.basicValue {
display: flex;
justify-content: center;
align-items: center;
padding: 0.5rem;
gap: 0.5rem;
border-radius: 1rem;
background-color: #f0efeb;
}
.basicValue p:first-of-type {
font-weight: bold;
}
.feats {
display: flex;
flex-direction: column;
justify-content: space-around;
gap: 0.5rem;
flex-grow: 1;
}
.feat {
text-align: start;
gap: 0.5rem;
}
.feat span {
font-weight: bold;
}