awacke1 commited on
Commit
86fd324
·
verified ·
1 Parent(s): 1f6a578

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +44 -54
style.css CHANGED
@@ -1,16 +1,16 @@
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
 
@@ -32,7 +32,7 @@
32
  display: flex;
33
  align-items: center;
34
  gap: 10px;
35
- flex-wrap: wrap; /* Allow wrapping */
36
  }
37
 
38
  .char-header label {
@@ -40,7 +40,7 @@
40
  }
41
 
42
  #char-name {
43
- flex-grow: 1; /* Take remaining space */
44
  background-color: #555;
45
  border: 1px solid #777;
46
  color: #fff;
@@ -51,7 +51,7 @@
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 {
@@ -83,8 +83,8 @@
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
 
@@ -93,29 +93,28 @@
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;
@@ -127,70 +126,61 @@
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
  }
 
1
  /* --- Character Sheet Styling --- */
2
  #character-sheet-container {
3
+ background-color: #3a3a3a;
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;
11
  color: #eee;
12
+ max-width: 450px;
13
+ margin-left: auto;
14
  margin-right: auto;
15
  }
16
 
 
32
  display: flex;
33
  align-items: center;
34
  gap: 10px;
35
+ flex-wrap: wrap;
36
  }
37
 
38
  .char-header label {
 
40
  }
41
 
42
  #char-name {
43
+ flex-grow: 1;
44
  background-color: #555;
45
  border: 1px solid #777;
46
  color: #fff;
 
51
 
52
  .char-details {
53
  display: grid;
54
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
55
  gap: 8px;
56
  }
57
  .char-details label, .char-level-xp label {
 
83
 
84
  .stats-grid {
85
  display: grid;
86
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
87
+ gap: 5px 10px;
88
  margin-bottom: 10px;
89
  }
90
 
 
93
  padding: 3px 6px;
94
  border-radius: 3px;
95
  display: flex;
96
+ justify-content: space-between;
97
  align-items: center;
98
  }
99
  .stats-grid span {
100
+ margin-right: 5px;
101
  }
102
 
103
  .char-stats small {
104
  color: #aaa;
105
+ display: block;
106
  text-align: center;
107
  }
108
 
 
109
  .char-possessions h3 {
110
  margin-bottom: 5px;
111
  }
112
 
113
  #char-inventory-list {
114
+ list-style: decimal;
115
  margin: 0;
116
+ padding-left: 25px;
117
+ max-height: 180px;
118
  overflow-y: auto;
119
  background-color: #333;
120
  border-radius: 3px;
 
126
  margin-bottom: 3px;
127
  color: #ccc;
128
  padding: 2px 5px;
129
+ min-height: 1.2em;
130
  }
131
+
132
  #char-inventory-list li span:not(.item-slot) {
133
  background-color: #5a5a5a;
134
  padding: 1px 4px;
135
  border-radius: 2px;
136
  color: #fff;
137
  font-size: 0.9em;
138
+ cursor: default;
139
  }
140
+
141
  .item-slot {
142
  color: #666;
143
  font-style: italic;
144
  font-size: 0.9em;
145
+ /* Removed ::before content, put [Empty] directly in HTML */
 
 
146
  }
147
 
148
+ /* --- Updated Button Styling (was .emoji-button) --- */
149
+ .sheet-button {
150
+ background-color: #555; /* Use a background color now */
151
+ border: 1px solid #777;
152
+ color: #eee;
153
+ padding: 4px 8px; /* Adjust padding */
154
  border-radius: 4px;
155
  cursor: pointer;
156
+ font-size: 0.9rem; /* Standard text size */
157
+ line-height: 1.2;
158
  transition: background-color 0.2s, border-color 0.2s;
159
+ text-align: center;
 
 
160
  }
161
 
162
+ .sheet-button:hover:not(:disabled) {
163
+ background-color: #666;
164
+ border-color: #999;
165
  }
166
 
167
+ .sheet-button:active:not(:disabled) {
168
  background-color: #444;
169
  }
170
 
171
+ .sheet-button:disabled {
172
+ opacity: 0.6; /* Slightly more visible when disabled */
173
  cursor: not-allowed;
174
+ background-color: #484848;
175
+ border-color: #666;
176
+ color: #aaa;
 
 
 
 
 
177
  }
178
 
179
+ /* Make stat increase buttons (+) smaller and squarish */
180
  .stat-increase {
181
+ font-size: 1rem; /* Make '+' bigger */
182
+ font-weight: bold;
183
+ padding: 0px 6px; /* Adjust for '+' sign */
184
+ line-height: 1;
185
+ min-width: 25px; /* Ensure minimum width */
186
  }