| 1 | [role="toolbar"] { |
| 2 | display: flex; |
| 3 | flex-direction: row; |
| 4 | position: sticky; |
| 5 | top: 0; |
| 6 | min-height: 2.5em; |
| 7 | padding: 0 1em; |
| 8 | align-items: center; |
| 9 | } |
| 10 | [role="toolbar"] button { |
| 11 | height: 1.75em; |
| 12 | width: 1.75em; |
| 13 | padding: 2px; |
| 14 | border: 0; |
| 15 | background-color: transparent; |
| 16 | cursor: pointer; |
| 17 | } |
| 18 | .toolbar-btn:hover, [role="toolbar"] button:hover { |
| 19 | color: var(--color-fg-accent); |
| 20 | background-color: var(--color-bg-hover); |
| 21 | } |
| 22 | [role="toolbar"] button svg { |
| 23 | display: block; |
| 24 | width: 70%; |
| 25 | height: 70%; |
| 26 | margin: auto; |
| 27 | } |
| 28 | [role="toolbar"] button .popup-label, .hint-block button .popup-label { |
| 29 | position: absolute; |
| 30 | left: -200vw; |
| 31 | } |
| 32 | .spacer-left { |
| 33 | margin-left: auto; |
| 34 | } |
| 35 | .table { |
| 36 | display: table; |
| 37 | empty-cells: show; |
| 38 | } |
| 39 | .table-header { |
| 40 | display: table-header-group; |
| 41 | font-weight: bold; |
| 42 | } |
| 43 | .table-body { |
| 44 | display: table-row-group; |
| 45 | } |
| 46 | .table-row { |
| 47 | display: table-row; |
| 48 | } |
| 49 | .table-cell { |
| 50 | display: table-cell; |
| 51 | } |
| 52 | .colspanned { |
| 53 | position: relative; |
| 54 | } |
| 55 | .colspanned .table-cell:first-child { |
| 56 | position: absolute; |
| 57 | left: 0; |
| 58 | right: 0; |
| 59 | } |
| 60 | .dialog { |
| 61 | display: inline-block; |
| 62 | position: fixed; |
| 63 | top: 0; |
| 64 | left: 0; |
| 65 | right: 0; |
| 66 | bottom: 0; |
| 67 | } |
| 68 | .dialog .container { |
| 69 | display: flex; |
| 70 | flex-direction: column; |
| 71 | height: 100%; |
| 72 | text-align: left; |
| 73 | white-space: normal; |
| 74 | background-color: var(--color-bg-dialog); |
| 75 | } |
| 76 | .dialog form { |
| 77 | margin: auto 0; |
| 78 | padding: 1em; |
| 79 | overflow: auto; |
| 80 | } |
| 81 | .hint-block { |
| 82 | display: flex; |
| 83 | } |
| 84 | |
| 85 | .hint-block button { |
| 86 | width: 1.2em; |
| 87 | height: 1.2em; |
| 88 | margin: auto; |
| 89 | padding: 0; |
| 90 | color: var(--color-fg-muted); |
| 91 | line-height: 0; |
| 92 | border-radius: .6em; |
| 93 | background-color: transparent; |
| 94 | cursor: pointer; |
| 95 | } |
| 96 | .hint-block button:hover { |
| 97 | background-color: var(--color-bg-hover); |
| 98 | } |
| 99 | #stat-block ul { |
| 100 | position: relative; |
| 101 | } |
| 102 | .hint-content { |
| 103 | position: absolute; |
| 104 | display: block; |
| 105 | top: 150%; |
| 106 | left: 50%; |
| 107 | font-family: "Noto Sans", "Open Sans", sans-serif; |
| 108 | padding: .75em; |
| 109 | min-width: 10em; |
| 110 | min-height: 8em; |
| 111 | border: 1px solid var(--color-br-strong); |
| 112 | border-radius: 5px; |
| 113 | background-color: var(--color-bg-dialog); |
| 114 | box-shadow: 0 0 6px var(--color-sh-default); |
| 115 | transform: translateX(-50%); |
| 116 | z-index: 1; |
| 117 | } |
| 118 | .hint-content::after, .hint-content::before { |
| 119 | content: ""; |
| 120 | display: block; |
| 121 | position: absolute; |
| 122 | left: 50%; |
| 123 | width: 0; |
| 124 | border-width: 0 8px 8px; |
| 125 | border-style: solid; |
| 126 | transform: translateX(-50%); |
| 127 | } |
| 128 | .hint-content::after { |
| 129 | top: -7px; |
| 130 | border-color: var(--color-bg-dialog) transparent; |
| 131 | } |
| 132 | .hint-content::before { |
| 133 | top: -9px; |
| 134 | border-color: var(--color-br-strong) transparent; |
| 135 | } |
| 136 | .hint-content h4 { |
| 137 | margin-bottom: 1em; |
| 138 | padding-bottom: 1em; |
| 139 | border-bottom: 1px dotted var(--color-br-strong); |
| 140 | } |
| 141 | .hint-content h5 { |
| 142 | margin: 1em 0; |
| 143 | } |
| 144 | .hint-content h4, .hint-content h5 { |
| 145 | font-size: 85%; |
| 146 | text-align: center; |
| 147 | } |
| 148 | .hint-content ul { |
| 149 | display: flex; |
| 150 | flex-direction: column; |
| 151 | gap: .5em; |
| 152 | } |
| 153 | .hint-block .hint-content li { |
| 154 | display: flex; |
| 155 | gap: 1em; |
| 156 | align-items: end; |
| 157 | } |
| 158 | .hint-content li span:first-child { |
| 159 | flex: 1; |
| 160 | text-align: left; |
| 161 | white-space: nowrap; |
| 162 | } |
| 163 | .hint-content .spinner { |
| 164 | margin-top: 1em; |
| 165 | } |
| 166 | .titled-input { |
| 167 | display: flex; |
| 168 | flex-direction: column; |
| 169 | row-gap: .7em; |
| 170 | } |
| 171 | .titled-input > label { |
| 172 | display: flex; |
| 173 | flex-direction: column; |
| 174 | row-gap: .2em; |
| 175 | } |
| 176 | .titled-input > label > select { |
| 177 | width: 100%; |
| 178 | } |
| 179 | .dialog-buttons { |
| 180 | display: flex; |
| 181 | flex-flow: column; |
| 182 | justify-content: center; |
| 183 | gap: 1em; |
| 184 | margin: 1em 0 0 0; |
| 185 | } |
| 186 | form.vertical-content .dialog-buttons { |
| 187 | margin: 0; |
| 188 | } |
| 189 | @media screen and (min-width:35em) { |
| 190 | .dialog { |
| 191 | position: static; |
| 192 | max-width: min(45em, 98%); |
| 193 | } |
| 194 | .dialog .container { |
| 195 | border: 1px solid #888; |
| 196 | } |
| 197 | .report-dialog .dialog { |
| 198 | min-width: 28em; |
| 199 | } |
| 200 | .titled-input { |
| 201 | display: table; |
| 202 | margin: -.5em 0; |
| 203 | border-spacing: 1em .5em; |
| 204 | } |
| 205 | .titled-input > label { |
| 206 | display: table-row; |
| 207 | } |
| 208 | .titled-input > label > * { |
| 209 | display: table-cell; |
| 210 | vertical-align: middle; |
| 211 | } |
| 212 | fieldset.titled-input { |
| 213 | margin-bottom: 0; |
| 214 | } |
| 215 | .dialog-buttons { |
| 216 | flex-flow: row wrap; |
| 217 | } |
| 218 | } |
| 219 | .dialog-overlay { |
| 220 | display: flex; |
| 221 | position: fixed; |
| 222 | top: 0; |
| 223 | left: 0; |
| 224 | width: 100%; |
| 225 | height: 100%; |
| 226 | overflow: auto; |
| 227 | background-color: rgba(0,0,0,0.3); |
| 228 | align-items: center; |
| 229 | justify-content: center; |
| 230 | white-space: nowrap; |
| 231 | z-index: 100; |
| 232 | } |
| 233 | .dialog .title { |
| 234 | display: flex; |
| 235 | align-items: center; |
| 236 | justify-content: center; |
| 237 | min-height: 2em; |
| 238 | background-color: var(--color-bg-title); |
| 239 | white-space: nowrap; |
| 240 | } |
| 241 | .dialog .title-text { |
| 242 | margin: auto; |
| 243 | padding-left: 0.7em; |
| 244 | } |
| 245 | .dialog .close-btn { |
| 246 | margin-right: 0.1em; |
| 247 | color: var(--color-fg-default); |
| 248 | font-size: 1.2rem; |
| 249 | font-weight: 700; |
| 250 | opacity: 0.5; |
| 251 | text-shadow: 0 1px 0 #fff; |
| 252 | cursor: pointer; |
| 253 | border: 0; |
| 254 | background-color: transparent; |
| 255 | } |
| 256 | .dialog-buttons button { |
| 257 | min-width: 7em; |
| 258 | } |
| 259 | .table-cell.sortable { |
| 260 | cursor: pointer; |
| 261 | } |
| 262 | .sortable.arrows::before, .sortable.arrows::after { |
| 263 | content: ''; |
| 264 | border-style: solid; |
| 265 | border-width: 6px 5px; |
| 266 | border-color: transparent; |
| 267 | height: 0; |
| 268 | position: absolute; |
| 269 | right: 0.6em; |
| 270 | width: 0; |
| 271 | } |
| 272 | .sortable.arrows::before { |
| 273 | border-bottom-color: #bbb; |
| 274 | top: 0; |
| 275 | } |
| 276 | .sortable.arrows::after { |
| 277 | border-top-color: #bbb; |
| 278 | bottom: 0; |
| 279 | } |
| 280 | .sortable.arrows.sorted-asc::before { |
| 281 | border-bottom-color: #777; |
| 282 | } |
| 283 | .sortable.arrows.sorted-des::after { |
| 284 | border-top-color: #777; |
| 285 | } |
| 286 | multi-select { |
| 287 | position: relative; |
| 288 | } |
| 289 | multi-select.active .multiselect-wrapper { |
| 290 | border-bottom-left-radius: 0; |
| 291 | border-bottom-right-radius: 0; |
| 292 | } |
| 293 | .multiselect-wrapper { |
| 294 | display: flex; |
| 295 | align-items: start; |
| 296 | } |
| 297 | .multiselect-input { |
| 298 | display: flex; |
| 299 | flex-direction: column; |
| 300 | gap: .3em; |
| 301 | flex: 1; |
| 302 | } |
| 303 | .multiselect-tags { |
| 304 | display: flex; |
| 305 | flex-flow: row wrap; |
| 306 | gap: .3em; |
| 307 | } |
| 308 | .multiselect-tags:empty { |
| 309 | display: none; |
| 310 | } |
| 311 | .multiselect-tag { |
| 312 | display: flex; |
| 313 | max-width: 15em; |
| 314 | color: #fff; |
| 315 | background-color: var(--color-bg-selected2); |
| 316 | border-radius: 5px; |
| 317 | } |
| 318 | .multiselect-tag>span { |
| 319 | padding: 0 .25em 0 .5em; |
| 320 | flex: 1; |
| 321 | overflow-x: hidden; |
| 322 | text-overflow: ellipsis; |
| 323 | } |
| 324 | .multiselect-tag>i { |
| 325 | display: inline-block; |
| 326 | border-radius: 5px; |
| 327 | width: 1.35em; |
| 328 | color: #020; |
| 329 | text-align: center; |
| 330 | transition: all .2s ease; |
| 331 | } |
| 332 | multi-select:not([disabled]) .multiselect-tag>i:hover { |
| 333 | color: #fff; |
| 334 | background-color: var(--color-bg-hover2); |
| 335 | } |
| 336 | multi-select:not([disabled]) .multiselect-tag>i, multi-select:not([disabled]) .multiselect-select { |
| 337 | cursor: pointer; |
| 338 | } |
| 339 | multi-select[disabled] .multiselect-tags *, multi-select[disabled] .multiselect-select { |
| 340 | opacity: .5; |
| 341 | } |
| 342 | .multiselect-tag>i::before { |
| 343 | content: "\D7"; |
| 344 | font-weight: bold; |
| 345 | } |
| 346 | .multiselect-search { |
| 347 | position: absolute; |
| 348 | padding: 0; |
| 349 | margin: 0 0 0 .2em; |
| 350 | width: 0; |
| 351 | font-size: 100%; |
| 352 | border: 0; |
| 353 | background-color: transparent; |
| 354 | } |
| 355 | .multiselect-search.active:not([disabled]) { |
| 356 | position: static; |
| 357 | width: 100%; |
| 358 | } |
| 359 | .multiselect-search:focus-visible { |
| 360 | outline: none; |
| 361 | } |
| 362 | .multiselect-select { |
| 363 | position: relative; |
| 364 | width: 1em; |
| 365 | height: 1.4em; |
| 366 | margin: 0 -.25em 0 .5em; |
| 367 | text-align: center; |
| 368 | transition: transform .2s ease; |
| 369 | } |
| 370 | .multiselect-select[aria-expanded="true"] { |
| 371 | transform: rotate(180deg); |
| 372 | } |
| 373 | .multiselect-select::before { |
| 374 | content: ""; |
| 375 | position: relative; |
| 376 | top: 65%; |
| 377 | border-style: solid; |
| 378 | border-width: 5px 5px 0; |
| 379 | border-color: var(--color-fg-default) transparent transparent; |
| 380 | } |
| 381 | .multiselect-options { |
| 382 | position: absolute; |
| 383 | padding: 0; |
| 384 | box-sizing: border-box; |
| 385 | top: 100%; |
| 386 | left: 0; |
| 387 | width: 100%; |
| 388 | max-height: 10em; |
| 389 | overflow-y: auto; |
| 390 | border-top: none; |
| 391 | border-top-left-radius: 0; |
| 392 | border-top-right-radius: 0; |
| 393 | } |
| 394 | .multiselect-options li { |
| 395 | padding: .3em .5em; |
| 396 | user-select: none; |
| 397 | } |
| 398 | .multiselect-options li[aria-selected="true"] { |
| 399 | font-weight: bold; |
| 400 | } |
| 401 | .multiselect-options li.focused { |
| 402 | background-color: var(--color-bg-selected2); |
| 403 | } |
| 404 | .multiselect-options li[aria-selected="true"].focused { |
| 405 | background-color: var(--color-bg-deleted); |
| 406 | } |
| 407 | .spinner { |
| 408 | display: inline-block; |
| 409 | } |
| 410 | .spinner > div { |
| 411 | display: inline-block; |
| 412 | background-color: currentColor; |
| 413 | width: 4px; |
| 414 | height: 1em; |
| 415 | margin: 0 2px; |
| 416 | animation: line-scale 1.1s infinite ease; |
| 417 | text-align: center; |
| 418 | } |
| 419 | .spinner > div:nth-child(1) { |
| 420 | animation-delay: -1.2s; |
| 421 | } |
| 422 | .spinner > div:nth-child(2) { |
| 423 | animation-delay: -1.1s; |
| 424 | } |
| 425 | .spinner > div:nth-child(3) { |
| 426 | animation-delay: -1s; |
| 427 | } |
| 428 | .spinner > div:nth-child(4) { |
| 429 | animation-delay: -.9s; |
| 430 | } |
| 431 | .spinner > div:nth-child(5) { |
| 432 | animation-delay: -.8s; |
| 433 | } |
| 434 | @keyframes line-scale { |
| 435 | 0%, 40%, 100% { |
| 436 | transform: scaleY(.4); |
| 437 | } |
| 438 | 20% { |
| 439 | transform: scaleY(1); |
| 440 | } |
| 441 | } |