awacke1 commited on
Commit
6e26371
·
verified ·
1 Parent(s): 2af3e63

Create style.css

Browse files
Files changed (1) hide show
  1. style.css +169 -49
style.css CHANGED
@@ -1,76 +1,196 @@
1
- * {
2
- box-sizing: border-box;
3
- padding: 0;
4
- margin: 0;
5
- font-family: sans-serif;
 
 
 
 
 
 
 
 
 
6
  }
7
 
8
- html,
9
- body {
10
- height: 100%;
 
 
 
11
  }
12
 
13
- body {
14
- padding: 32px;
 
 
15
  }
16
 
17
- body,
18
- #container {
19
  display: flex;
20
- flex-direction: column;
21
- justify-content: center;
22
  align-items: center;
 
 
23
  }
24
 
25
- #container {
26
- position: relative;
27
- gap: 0.4rem;
28
 
29
- width: 640px;
30
- height: 640px;
31
- max-width: 100%;
32
- max-height: 100%;
 
 
 
 
 
33
 
34
- border: 2px dashed #D1D5DB;
35
- border-radius: 0.75rem;
36
- overflow: hidden;
37
- cursor: pointer;
38
- margin: 1rem;
 
 
 
 
 
 
 
39
 
40
- background-size: 100% 100%;
41
- background-position: center;
42
- background-repeat: no-repeat;
43
- font-size: 18px;
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
 
46
- #upload {
47
- display: none;
 
 
 
48
  }
49
 
50
- svg {
51
- pointer-events: none;
 
 
 
 
 
 
 
 
52
  }
53
 
54
- #example {
55
- font-size: 14px;
56
- text-decoration: underline;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  cursor: pointer;
 
 
 
 
 
 
58
  }
59
 
60
- #example:hover {
61
- color: #2563EB;
 
62
  }
63
 
64
- .bounding-box {
65
- position: absolute;
66
- box-sizing: border-box;
67
- border: solid 2px;
68
  }
69
 
70
- .bounding-box-label {
71
- color: white;
72
- position: absolute;
73
- font-size: 12px;
74
- margin: -16px 0 0 -2px;
75
- padding: 1px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
 
1
+ /* --- Character Sheet Styling --- */
2
+ #character-sheet-container {
3
+ background-color: #3a3a3a; /* Slightly lighter than main background */
4
+ border: 1px solid #555;
5
+ padding: 15px;
6
+ margin-top: 20px;
7
+ border-radius: 5px;
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 15px; /* Spacing between sections */
11
+ color: #eee;
12
+ max-width: 450px; /* Adjust width as needed */
13
+ margin-left: auto; /* Example positioning */
14
+ margin-right: auto;
15
  }
16
 
17
+ #character-sheet-container h2,
18
+ #character-sheet-container h3 {
19
+ margin: 0 0 10px 0;
20
+ color: #f0f0f0;
21
+ border-bottom: 1px solid #666;
22
+ padding-bottom: 5px;
23
  }
24
 
25
+ .char-section {
26
+ background-color: #444;
27
+ padding: 10px;
28
+ border-radius: 4px;
29
  }
30
 
31
+ .char-header {
 
32
  display: flex;
 
 
33
  align-items: center;
34
+ gap: 10px;
35
+ flex-wrap: wrap; /* Allow wrapping */
36
  }
37
 
38
+ .char-header label {
39
+ font-weight: bold;
40
+ }
41
 
42
+ #char-name {
43
+ flex-grow: 1; /* Take remaining space */
44
+ background-color: #555;
45
+ border: 1px solid #777;
46
+ color: #fff;
47
+ padding: 4px 6px;
48
+ border-radius: 3px;
49
+ min-width: 100px;
50
+ }
51
 
52
+ .char-details {
53
+ display: grid;
54
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
55
+ gap: 8px;
56
+ }
57
+ .char-details label, .char-level-xp label {
58
+ font-weight: bold;
59
+ color: #ccc;
60
+ }
61
+ .char-details span, .char-level-xp span {
62
+ color: #fff;
63
+ }
64
 
65
+
66
+ .char-level-xp {
67
+ display: flex;
68
+ justify-content: space-around;
69
+ align-items: center;
70
+ gap: 15px;
71
+ flex-wrap: wrap;
72
+ }
73
+ .char-level-xp div{
74
+ display: flex;
75
+ align-items: center;
76
+ gap: 5px;
77
+ }
78
+
79
+
80
+ .char-stats h3 {
81
+ margin-bottom: 5px;
82
  }
83
 
84
+ .stats-grid {
85
+ display: grid;
86
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Responsive grid */
87
+ gap: 5px 10px; /* Row and column gap */
88
+ margin-bottom: 10px;
89
  }
90
 
91
+ .stats-grid div {
92
+ background-color: #333;
93
+ padding: 3px 6px;
94
+ border-radius: 3px;
95
+ display: flex;
96
+ justify-content: space-between; /* Align items nicely */
97
+ align-items: center;
98
+ }
99
+ .stats-grid span {
100
+ margin-right: 5px; /* Space before button */
101
  }
102
 
103
+ .char-stats small {
104
+ color: #aaa;
105
+ display: block; /* Make it take its own line */
106
+ text-align: center;
107
+ }
108
+
109
+
110
+ .char-possessions h3 {
111
+ margin-bottom: 5px;
112
+ }
113
+
114
+ #char-inventory-list {
115
+ list-style: decimal; /* Use numbers */
116
+ margin: 0;
117
+ padding-left: 25px; /* Space for numbers */
118
+ max-height: 180px; /* Limit height and make scrollable */
119
+ overflow-y: auto;
120
+ background-color: #333;
121
+ border-radius: 3px;
122
+ padding-top: 5px;
123
+ padding-bottom: 5px;
124
+ }
125
+
126
+ #char-inventory-list li {
127
+ margin-bottom: 3px;
128
+ color: #ccc;
129
+ padding: 2px 5px;
130
+ min-height: 1.2em; /* Ensure empty slots have height */
131
+ }
132
+ /* Style for actual items in the list */
133
+ #char-inventory-list li span:not(.item-slot) {
134
+ background-color: #5a5a5a;
135
+ padding: 1px 4px;
136
+ border-radius: 2px;
137
+ color: #fff;
138
+ font-size: 0.9em;
139
+ cursor: default; /* Indicate it's not interactive (unless you add features) */
140
+ }
141
+ /* Style for empty slots */
142
+ .item-slot {
143
+ color: #666;
144
+ font-style: italic;
145
+ font-size: 0.9em;
146
+ }
147
+ .item-slot::before {
148
+ content: '[Empty]';
149
+ }
150
+
151
+ /* --- Emoji Button Styling --- */
152
+ .emoji-button {
153
+ background: none;
154
+ border: 1px solid #666;
155
+ color: #ddd;
156
+ padding: 3px 5px;
157
+ border-radius: 4px;
158
  cursor: pointer;
159
+ font-size: 1.1em; /* Adjust emoji size */
160
+ line-height: 1; /* Prevent extra spacing */
161
+ transition: background-color 0.2s, border-color 0.2s;
162
+ display: inline-flex; /* Align emoji and label */
163
+ align-items: center;
164
+ gap: 4px; /* Space between emoji and label */
165
  }
166
 
167
+ .emoji-button:hover:not(:disabled) {
168
+ background-color: #555;
169
+ border-color: #888;
170
  }
171
 
172
+ .emoji-button:active:not(:disabled) {
173
+ background-color: #444;
 
 
174
  }
175
 
176
+ .emoji-button:disabled {
177
+ opacity: 0.5;
178
+ cursor: not-allowed;
179
+ border-color: #444;
180
+ }
181
+
182
+ .emoji-button .btn-label {
183
+ font-size: 0.7rem; /* Smaller text label */
184
+ line-height: 1;
185
+ display: inline-block; /* Or none if you prefer only icons */
186
+ color: #ccc;
187
+ }
188
+
189
+ /* Make stat increase buttons smaller */
190
+ .stat-increase {
191
+ font-size: 0.9em;
192
+ padding: 1px 3px;
193
+ }
194
+ .stat-increase .btn-label {
195
+ display: none; /* Hide label for stat buttons */
196
  }