-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
97 lines (83 loc) · 1.8 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
:root {
--space: 2rem;
--space-xs: calc(var(--space) / 3);
--space-sm: calc(var(--space) / 2);
--space-md: calc(var(--space) * 2);
}
* {
box-sizing: border-box;
}
body {
margin: 0 auto;
padding: 0 var(--space);
font-family: "Helvetica Neue", sans-serif;
font-size: 1.25rem;
line-height: 1.4;
max-width: 1800px;
}
main {
margin-top: 1rem;
margin-bottom: calc(var(--space-md) * -1);
margin-left: calc(var(--space-md) * -1);
display: flex;
flex-wrap: wrap;
}
main > * {
margin-bottom: var(--space-md);
margin-left: var(--space-md);
}
article > * + * {
margin-top: var(--space);
}
article {
min-width: 60%;
max-width: 80%;
}
.sidebar {
--offset: var(--space);
background-color: #fff;
align-self: start;
position: sticky;
top: var(--offset);
}
.component {
margin-bottom: .5rem;
display: grid;
grid-template-rows: auto 1fr auto;
position: relative;
border: 1px solid var(#ddd);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04),
0 4px 8px rgba(0, 0, 0, 0.03), 0 8px 16px rgba(0, 0, 0, 0.03),
0 16px 32px rgba(0, 0, 0, 0.02), 0 32px 64px rgba(0, 0, 0, 0.02);
}
.component img {
width: 4rem;
height: 4rem;
}
.character-sheet {
display: flex;
flex-direction: column;
width: 50%;
}
.character-sheet input {
margin-bottom: 1rem;
max-width: 4rem;
border: 2px solid;
border-radius: 4px;
font-size: 1rem;
font-weight: bolder;
padding: 0.5rem;
transition: background-color 0.5s ease-out;
}
.character-sheet .stats {
display: flex;
flex-wrap: wrap;
}
.character-sheet .stats .stat-container {
width: 50%;
}
.fight {
margin-top: 2rem;
display: flex;
flex-direction: column;
}