Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
| 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,7 +32,7 @@
|
|
| 32 |
display: flex;
|
| 33 |
align-items: center;
|
| 34 |
gap: 10px;
|
| 35 |
-
flex-wrap: wrap;
|
| 36 |
}
|
| 37 |
|
| 38 |
.char-header label {
|
|
@@ -40,7 +40,7 @@
|
|
| 40 |
}
|
| 41 |
|
| 42 |
#char-name {
|
| 43 |
-
flex-grow: 1;
|
| 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));
|
| 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));
|
| 87 |
-
gap: 5px 10px;
|
| 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;
|
| 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 |
-
|
| 110 |
.char-possessions h3 {
|
| 111 |
margin-bottom: 5px;
|
| 112 |
}
|
| 113 |
|
| 114 |
#char-inventory-list {
|
| 115 |
-
list-style: decimal;
|
| 116 |
margin: 0;
|
| 117 |
-
padding-left: 25px;
|
| 118 |
-
max-height: 180px;
|
| 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;
|
| 131 |
}
|
| 132 |
-
|
| 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;
|
| 140 |
}
|
| 141 |
-
|
| 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 |
-
/* ---
|
| 152 |
-
.
|
| 153 |
-
background:
|
| 154 |
-
border: 1px solid #
|
| 155 |
-
color: #
|
| 156 |
-
padding:
|
| 157 |
border-radius: 4px;
|
| 158 |
cursor: pointer;
|
| 159 |
-
font-size:
|
| 160 |
-
line-height: 1;
|
| 161 |
transition: background-color 0.2s, border-color 0.2s;
|
| 162 |
-
|
| 163 |
-
align-items: center;
|
| 164 |
-
gap: 4px; /* Space between emoji and label */
|
| 165 |
}
|
| 166 |
|
| 167 |
-
.
|
| 168 |
-
background-color: #
|
| 169 |
-
border-color: #
|
| 170 |
}
|
| 171 |
|
| 172 |
-
.
|
| 173 |
background-color: #444;
|
| 174 |
}
|
| 175 |
|
| 176 |
-
.
|
| 177 |
-
opacity: 0.
|
| 178 |
cursor: not-allowed;
|
| 179 |
-
|
| 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:
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 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 |
}
|