2021-06-26 22:02:00 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
* SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2022-01-21 03:22:17 +01:00
|
|
|
@use "../../utils/mixins";
|
|
|
|
@use "../../utils/variables";
|
2021-02-24 04:52:32 +01:00
|
|
|
|
2021-07-23 01:11:42 +02:00
|
|
|
.ds4-embedded-document-list {
|
2021-02-26 03:17:27 +01:00
|
|
|
@include mixins.mark-invalid-or-disabled-input;
|
|
|
|
|
2021-02-24 04:52:32 +01:00
|
|
|
$row-height: 1.75em;
|
2021-02-25 19:07:25 +01:00
|
|
|
|
2021-02-24 04:52:32 +01:00
|
|
|
display: grid;
|
|
|
|
grid-column-gap: 0.5em;
|
|
|
|
grid-row-gap: 0.2em;
|
2022-01-21 03:22:17 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0.5em 0;
|
2021-02-25 19:07:25 +01:00
|
|
|
|
|
|
|
&--weapon {
|
2021-03-04 08:51:13 +01:00
|
|
|
grid-template-columns: $row-height $row-height 3ch 3fr $row-height 1fr 3ch 5fr 5ch;
|
2021-07-23 01:11:42 +02:00
|
|
|
:nth-child(9n + 1),
|
|
|
|
:nth-child(9n + 5),
|
|
|
|
:nth-child(9n + 6),
|
|
|
|
:nth-child(9n + 7) {
|
|
|
|
justify-self: center;
|
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 19:07:25 +01:00
|
|
|
&--armor {
|
2021-03-04 08:51:13 +01:00
|
|
|
grid-template-columns: $row-height $row-height 3ch 3fr 1fr 1fr 3ch 5fr 5ch;
|
2021-07-23 01:11:42 +02:00
|
|
|
:nth-child(9n + 1),
|
|
|
|
:nth-child(9n + 7) {
|
|
|
|
justify-self: center;
|
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 19:07:25 +01:00
|
|
|
&--shield {
|
2021-03-04 08:51:13 +01:00
|
|
|
grid-template-columns: $row-height $row-height 3ch 1fr 3ch 3fr 5ch;
|
2021-07-23 01:11:42 +02:00
|
|
|
:nth-child(7n + 1),
|
|
|
|
:nth-child(7n + 5) {
|
|
|
|
justify-self: center;
|
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 19:07:25 +01:00
|
|
|
&--equipment {
|
2021-03-04 08:51:13 +01:00
|
|
|
grid-template-columns: $row-height $row-height 3ch 1fr 10ch 3fr 5ch;
|
2021-07-23 01:11:42 +02:00
|
|
|
:nth-child(7n + 1) {
|
|
|
|
justify-self: center;
|
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 19:07:25 +01:00
|
|
|
&--loot {
|
2021-03-04 08:51:13 +01:00
|
|
|
grid-template-columns: $row-height 3ch 1fr 10ch 3fr 5ch;
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 19:07:25 +01:00
|
|
|
&--spell {
|
2021-03-04 08:51:13 +01:00
|
|
|
grid-template-columns: $row-height $row-height 2fr $row-height 1fr 1fr 1fr 1fr 5ch;
|
2021-07-23 01:11:42 +02:00
|
|
|
:nth-child(9n + 1),
|
2022-08-15 16:11:59 +02:00
|
|
|
:nth-child(9n + 4) {
|
2021-07-23 01:11:42 +02:00
|
|
|
justify-self: center;
|
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 22:22:05 +01:00
|
|
|
&--talent {
|
2022-11-10 03:32:52 +01:00
|
|
|
grid-template-columns: $row-height 1fr 4ch 3fr 5ch;
|
2021-07-23 01:11:42 +02:00
|
|
|
:nth-child(9n + 3) {
|
|
|
|
justify-self: center;
|
|
|
|
}
|
2021-02-25 22:22:05 +01:00
|
|
|
}
|
|
|
|
&--racial-ability,
|
|
|
|
&--language,
|
2021-02-25 22:38:35 +01:00
|
|
|
&--alphabet,
|
|
|
|
&--special-creature-ability {
|
2021-03-04 08:51:13 +01:00
|
|
|
grid-template-columns: $row-height 1fr 3fr 5ch;
|
2021-02-25 22:22:05 +01:00
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
|
2021-07-23 01:11:42 +02:00
|
|
|
&--effect {
|
2021-09-12 18:35:07 +02:00
|
|
|
grid-template-columns: $row-height $row-height $row-height 3fr 2fr $row-height 5ch;
|
|
|
|
:nth-child(7n + 1),
|
|
|
|
:nth-child(7n + 2),
|
|
|
|
:nth-child(7n + 6) {
|
2021-07-23 01:11:42 +02:00
|
|
|
justify-self: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-21 03:22:17 +01:00
|
|
|
&--item-effect {
|
|
|
|
grid-template-columns: $row-height 1fr 5ch;
|
|
|
|
}
|
|
|
|
|
2021-02-25 19:07:25 +01:00
|
|
|
&__row {
|
2021-02-26 02:30:58 +01:00
|
|
|
display: contents; // TODO: Once chromium supports `grid-template-columns: subgrid` (https://bugs.chromium.org/p/chromium/issues/detail?id=618969), switch to `display: grid; grid: 1/-1; grid-template-columns: subgrid`
|
2021-02-24 04:52:32 +01:00
|
|
|
|
2021-02-25 19:07:25 +01:00
|
|
|
&--header {
|
2021-02-24 04:52:32 +01:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
height: $row-height;
|
|
|
|
line-height: $row-height;
|
2022-08-15 15:02:31 +02:00
|
|
|
overflow: hidden;
|
2021-03-08 09:58:26 +01:00
|
|
|
text-overflow: ellipsis;
|
2022-08-15 15:02:31 +02:00
|
|
|
white-space: nowrap;
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 19:07:25 +01:00
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
|
2021-02-26 03:17:27 +01:00
|
|
|
&__image {
|
2021-03-04 08:51:13 +01:00
|
|
|
border: none;
|
2021-02-26 03:17:27 +01:00
|
|
|
}
|
|
|
|
|
2021-02-25 19:07:25 +01:00
|
|
|
&__editable {
|
2022-01-21 03:22:17 +01:00
|
|
|
&[type="text"],
|
|
|
|
&[type="number"] {
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
2022-05-13 17:10:01 +02:00
|
|
|
height: 100%;
|
2022-01-21 03:22:17 +01:00
|
|
|
}
|
2021-02-26 03:17:27 +01:00
|
|
|
|
2021-02-25 19:07:25 +01:00
|
|
|
&--checkbox {
|
2022-01-21 03:22:17 +01:00
|
|
|
&[type="checkbox"] {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
2021-02-25 19:07:25 +01:00
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
|
2021-02-25 19:07:25 +01:00
|
|
|
&__description {
|
2021-02-24 04:52:32 +01:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-02-26 03:17:27 +01:00
|
|
|
|
2021-02-24 04:52:32 +01:00
|
|
|
:not(:first-child) {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-02-26 03:17:27 +01:00
|
|
|
|
2021-02-24 04:52:32 +01:00
|
|
|
> * {
|
|
|
|
font-size: 0.75em;
|
|
|
|
margin: 0;
|
2021-02-26 03:17:27 +01:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
|
|
|
}
|
2021-11-06 01:41:31 +01:00
|
|
|
|
|
|
|
&__clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|
|
|
|
|
2021-07-23 01:11:42 +02:00
|
|
|
.ds4-embedded-document-list-title {
|
2021-02-24 12:55:30 +01:00
|
|
|
border-bottom: variables.$border-groove;
|
2021-02-24 04:52:32 +01:00
|
|
|
font-weight: bold;
|
2021-02-26 03:17:27 +01:00
|
|
|
margin-bottom: 0;
|
|
|
|
margin-top: 1em;
|
|
|
|
padding-left: 1em;
|
2021-02-24 04:52:32 +01:00
|
|
|
}
|