Spaces:
Running
Running
Create style.css
Browse files
style.css
CHANGED
|
@@ -1,76 +1,196 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
}
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
-
|
| 18 |
-
#container {
|
| 19 |
display: flex;
|
| 20 |
-
flex-direction: column;
|
| 21 |
-
justify-content: center;
|
| 22 |
align-items: center;
|
|
|
|
|
|
|
| 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 |
-
display:
|
|
|
|
|
|
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
}
|
| 59 |
|
| 60 |
-
|
| 61 |
-
color: #
|
|
|
|
| 62 |
}
|
| 63 |
|
| 64 |
-
.
|
| 65 |
-
|
| 66 |
-
box-sizing: border-box;
|
| 67 |
-
border: solid 2px;
|
| 68 |
}
|
| 69 |
|
| 70 |
-
.
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
}
|