refactor: resturcture files so that lincensing info can be bundled properly
This commit is contained in:
parent
699ba74840
commit
1aa284311f
484 changed files with 119 additions and 179 deletions
53
scss/components/actor/_actor_header.scss
Normal file
53
scss/components/actor/_actor_header.scss
Normal file
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/mixins";
|
||||
|
||||
.ds4-actor-header {
|
||||
display: flex;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
gap: 1em;
|
||||
|
||||
&__img {
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
&__data {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
&__data-row {
|
||||
align-content: center;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: row;
|
||||
gap: 0.5em;
|
||||
> * {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&__name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&__name-input[type="text"] {
|
||||
@include mixins.font-heading-upper;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
flex: 1;
|
||||
font-size: 1.25em;
|
||||
height: auto;
|
||||
}
|
||||
}
|
48
scss/components/actor/_actor_progression.scss
Normal file
48
scss/components/actor/_actor_progression.scss
Normal file
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
* SPDX-FileCopyrightText: 2021 Oliver Rümpelein
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/colors";
|
||||
@use "../../utils/mixins";
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-actor-progression {
|
||||
@include mixins.mark-invalid-or-disabled-input;
|
||||
display: flex;
|
||||
gap: 0.5em;
|
||||
|
||||
&__entry {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
gap: 0.25em;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
&__label {
|
||||
@include mixins.font-heading-upper;
|
||||
border: none;
|
||||
color: colors.$c-light-grey;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&__input {
|
||||
flex: 0 0 5ch;
|
||||
|
||||
&--slayer-points {
|
||||
&::-webkit-inner-spin-button,
|
||||
&::-webkit-outer-spin-button {
|
||||
-webkit-appearance: auto;
|
||||
}
|
||||
&:hover,
|
||||
&:focus {
|
||||
-moz-appearance: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
36
scss/components/actor/_actor_properties.scss
Normal file
36
scss/components/actor/_actor_properties.scss
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
* SPDX-FileCopyrightText: 2021 Oliver Rümpelein
|
||||
* SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/mixins";
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-actor-properties {
|
||||
@include mixins.mark-invalid-or-disabled-input;
|
||||
display: flex;
|
||||
gap: 0.25em;
|
||||
|
||||
&__property {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&__property-label {
|
||||
font-size: 0.9em;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&__property-select {
|
||||
width: 100%;
|
||||
height: var(--form-field-height);
|
||||
}
|
||||
|
||||
&__property-multi-input {
|
||||
display: flex;
|
||||
gap: 0.125em;
|
||||
}
|
||||
}
|
10
scss/components/actor/_actor_sheet.scss
Normal file
10
scss/components/actor/_actor_sheet.scss
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-actor-sheet {
|
||||
min-height: 625px;
|
||||
min-width: 650px;
|
||||
}
|
11
scss/components/actor/_biography.scss
Normal file
11
scss/components/actor/_biography.scss
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-biography-tab-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 3fr;
|
||||
column-gap: 1em;
|
||||
}
|
17
scss/components/actor/_check.scss
Normal file
17
scss/components/actor/_check.scss
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/mixins";
|
||||
|
||||
.ds4-check {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
&:hover {
|
||||
@include mixins.foundry-highlight-text-shadow;
|
||||
}
|
||||
}
|
13
scss/components/actor/_checks.scss
Normal file
13
scss/components/actor/_checks.scss
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-checks {
|
||||
column-gap: 2em;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
|
||||
row-gap: 0.25em;
|
||||
white-space: nowrap;
|
||||
}
|
73
scss/components/actor/_combat_value.scss
Normal file
73
scss/components/actor/_combat_value.scss
Normal file
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/mixins";
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-combat-value {
|
||||
$size: 3.75rem;
|
||||
|
||||
display: grid;
|
||||
place-items: center;
|
||||
row-gap: 0.125em;
|
||||
|
||||
&__value {
|
||||
$combat-values-icons-path: "#{variables.$official-icons-path}/combat-values";
|
||||
@include mixins.centered-content;
|
||||
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
font-size: 1.5em;
|
||||
height: $size;
|
||||
width: $size;
|
||||
|
||||
&--hitPoints {
|
||||
background-image: url("#{$combat-values-icons-path}/hit-points.png");
|
||||
}
|
||||
&--defense {
|
||||
background-image: url("#{$combat-values-icons-path}/defense.png");
|
||||
}
|
||||
&--initiative {
|
||||
background-image: url("#{$combat-values-icons-path}/initiative.png");
|
||||
}
|
||||
&--movement {
|
||||
background-image: url("#{$combat-values-icons-path}/movement-rate.png");
|
||||
}
|
||||
&--meleeAttack {
|
||||
background-image: url("#{$combat-values-icons-path}/melee-attack.png");
|
||||
}
|
||||
&--rangedAttack {
|
||||
background-image: url("#{$combat-values-icons-path}/ranged-attack.png");
|
||||
}
|
||||
&--spellcasting {
|
||||
background-image: url("#{$combat-values-icons-path}/spellcasting.png");
|
||||
}
|
||||
&--targetedSpellcasting {
|
||||
background-image: url("#{$combat-values-icons-path}/targeted-spellcasting.png");
|
||||
}
|
||||
}
|
||||
|
||||
&__label {
|
||||
@include mixins.font-heading-upper;
|
||||
font-size: 1.2em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
&__formula {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
gap: 0.15em;
|
||||
text-align: center;
|
||||
width: $size;
|
||||
}
|
||||
|
||||
&__formula-base,
|
||||
&__formula-modifier {
|
||||
flex: 1 1 4em;
|
||||
}
|
||||
}
|
15
scss/components/actor/_combat_values.scss
Normal file
15
scss/components/actor/_combat_values.scss
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-combat-values {
|
||||
border-bottom: variables.$border-groove;
|
||||
display: flex;
|
||||
margin: variables.$margin-sm 0;
|
||||
padding-bottom: variables.$margin-sm;
|
||||
justify-content: space-between;
|
||||
}
|
42
scss/components/actor/_core_value.scss
Normal file
42
scss/components/actor/_core_value.scss
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/colors";
|
||||
@use "../../utils/mixins";
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-core-value {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
||||
&__label {
|
||||
@include mixins.font-heading-upper;
|
||||
flex: 1;
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__value {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex: 1.1;
|
||||
font-size: 1.2em;
|
||||
gap: 0.15em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__value-input,
|
||||
&__value-total {
|
||||
flex: 1 1 4em;
|
||||
}
|
||||
|
||||
&--trait {
|
||||
.ds4-core-value__label {
|
||||
-webkit-text-stroke: 1px colors.$c-black;
|
||||
color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
15
scss/components/actor/_core_values.scss
Normal file
15
scss/components/actor/_core_values.scss
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/colors";
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-core-values {
|
||||
column-gap: 0.5em;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
row-gap: 0.5em;
|
||||
}
|
22
scss/components/actor/_currency.scss
Normal file
22
scss/components/actor/_currency.scss
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-currency {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
.ds4-currency-title {
|
||||
border-bottom: variables.$border-groove;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0;
|
||||
margin-top: 1em;
|
||||
padding-left: 1em;
|
||||
}
|
28
scss/components/actor/_profile.scss
Normal file
28
scss/components/actor/_profile.scss
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-profile {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5em;
|
||||
|
||||
&__entry {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__entry-input {
|
||||
&--multiline {
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
|
||||
&__entry-label {
|
||||
font-size: 0.8em;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
21
scss/components/actor/_talent_rank_equation.scss
Normal file
21
scss/components/actor/_talent_rank_equation.scss
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
* SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-talent-rank-equation {
|
||||
display: flex;
|
||||
gap: 0.5em;
|
||||
|
||||
&__value {
|
||||
&[type="number"] {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
height: auto;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
26
scss/components/dice/_dice_total.scss
Normal file
26
scss/components/dice/_dice_total.scss
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/colors";
|
||||
|
||||
// Needs to be nested in .dice-roll to win against foundry's style.css with respect to specificity
|
||||
.dice-roll .ds4-dice-total {
|
||||
@mixin color-filter($rotation) {
|
||||
filter: sepia(0.5) hue-rotate($rotation);
|
||||
}
|
||||
|
||||
&--coup {
|
||||
@include color-filter(60deg);
|
||||
background-color: colors.$c-coup-bg;
|
||||
color: colors.$c-coup;
|
||||
}
|
||||
|
||||
&--fumble {
|
||||
@include color-filter(-60deg);
|
||||
background-color: colors.$c-fumble-bg;
|
||||
color: colors.$c-fumble;
|
||||
}
|
||||
}
|
51
scss/components/item/_item_header.scss
Normal file
51
scss/components/item/_item_header.scss
Normal file
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/colors";
|
||||
@use "../../utils/mixins";
|
||||
|
||||
.ds4-item-header {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
|
||||
&__img {
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
&__data {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&__type {
|
||||
@include mixins.font-heading-upper;
|
||||
border: none;
|
||||
color: colors.$c-light-grey;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&__name {
|
||||
border: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&__name-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__name-input[type="text"] {
|
||||
@include mixins.font-heading-upper;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
font-size: 1.25em;
|
||||
height: auto;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
21
scss/components/item/_item_properties.scss
Normal file
21
scss/components/item/_item_properties.scss
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
* SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/mixins";
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-item-properties {
|
||||
@include mixins.mark-invalid-or-disabled-input;
|
||||
|
||||
&__title {
|
||||
border-bottom: variables.$border-groove;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0;
|
||||
margin-top: 1em;
|
||||
padding-left: 1em;
|
||||
}
|
||||
}
|
10
scss/components/item/_item_sheet.scss
Normal file
10
scss/components/item/_item_sheet.scss
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-item-sheet {
|
||||
min-height: 400px;
|
||||
min-width: 540px;
|
||||
}
|
16
scss/components/shared/_control_button_group.scss
Normal file
16
scss/components/shared/_control_button_group.scss
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-control-button-group {
|
||||
display: flex;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
padding: 0 calc(1em / 3);
|
||||
|
||||
&__button {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
18
scss/components/shared/_editor.scss
Normal file
18
scss/components/shared/_editor.scss
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-sheet-form {
|
||||
.editor {
|
||||
height: 100%;
|
||||
|
||||
.tox {
|
||||
.tox-toolbar-overlord,
|
||||
.tox-toolbar__primary {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
155
scss/components/shared/_embedded_document_list.scss
Normal file
155
scss/components/shared/_embedded_document_list.scss
Normal file
|
@ -0,0 +1,155 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
* SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/mixins";
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-embedded-document-list {
|
||||
@include mixins.mark-invalid-or-disabled-input;
|
||||
|
||||
$row-height: 1.75em;
|
||||
|
||||
align-items: center;
|
||||
display: grid;
|
||||
grid-column-gap: 0.5em;
|
||||
grid-row-gap: 0.2em;
|
||||
margin: 0;
|
||||
overflow-y: auto;
|
||||
padding: 0.5em 0;
|
||||
|
||||
&--weapon {
|
||||
grid-template-columns: $row-height $row-height 3ch 3fr $row-height 1fr 3ch 5fr 5ch;
|
||||
:nth-child(9n + 1),
|
||||
:nth-child(9n + 5),
|
||||
:nth-child(9n + 6),
|
||||
:nth-child(9n + 7) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
&--armor {
|
||||
grid-template-columns: $row-height $row-height 3ch 3fr 1fr 1fr 3ch 5fr 5ch;
|
||||
:nth-child(9n + 1),
|
||||
:nth-child(9n + 7) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
&--shield {
|
||||
grid-template-columns: $row-height $row-height 3ch 1fr 3ch 3fr 5ch;
|
||||
:nth-child(7n + 1),
|
||||
:nth-child(7n + 5) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
&--equipment {
|
||||
grid-template-columns: $row-height $row-height 3ch 1fr 10ch 3fr 5ch;
|
||||
:nth-child(7n + 1) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
&--loot {
|
||||
grid-template-columns: $row-height 3ch 1fr 10ch 3fr 5ch;
|
||||
}
|
||||
&--spell {
|
||||
grid-template-columns: $row-height $row-height 2fr $row-height 1fr 1fr 1fr 1fr 5ch;
|
||||
:nth-child(9n + 1),
|
||||
:nth-child(9n + 4),
|
||||
:nth-child(9n + 6),
|
||||
:nth-child(9n + 7),
|
||||
:nth-child(9n + 8) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
&--talent {
|
||||
grid-template-columns: $row-height 1fr 21ch 3fr 5ch;
|
||||
:nth-child(9n + 3) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
&--racial-ability,
|
||||
&--language,
|
||||
&--alphabet,
|
||||
&--special-creature-ability {
|
||||
grid-template-columns: $row-height 1fr 3fr 5ch;
|
||||
}
|
||||
|
||||
&--effect {
|
||||
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) {
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
&--item-effect {
|
||||
grid-template-columns: $row-height 1fr 5ch;
|
||||
}
|
||||
|
||||
&__row {
|
||||
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`
|
||||
|
||||
&--header {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
> * {
|
||||
height: $row-height;
|
||||
line-height: $row-height;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
&__image {
|
||||
border: none;
|
||||
}
|
||||
|
||||
&__editable {
|
||||
&[type="text"],
|
||||
&[type="number"] {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&--checkbox {
|
||||
&[type="checkbox"] {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__description {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
:not(:first-child) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> * {
|
||||
font-size: 0.75em;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
&__clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.ds4-embedded-document-list-title {
|
||||
border-bottom: variables.$border-groove;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0;
|
||||
margin-top: 1em;
|
||||
padding-left: 1em;
|
||||
}
|
39
scss/components/shared/_rollable_image.scss
Normal file
39
scss/components/shared/_rollable_image.scss
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-rollable-image {
|
||||
position: relative;
|
||||
|
||||
&--rollable {
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
.ds4-rollable-image__image {
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.ds4-rollable-image__overlay {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__image {
|
||||
border: none;
|
||||
transition: 0.1s ease;
|
||||
}
|
||||
|
||||
&__overlay {
|
||||
border: none;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
transition: 0.1s ease;
|
||||
}
|
||||
}
|
10
scss/components/shared/_sheet_body.scss
Normal file
10
scss/components/shared/_sheet_body.scss
Normal file
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-sheet-body {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
13
scss/components/shared/_sheet_form.scss
Normal file
13
scss/components/shared/_sheet_form.scss
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-sheet-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
font-family: var(--ds4-font-primary);
|
||||
height: 100%;
|
||||
}
|
19
scss/components/shared/_sheet_tab.scss
Normal file
19
scss/components/shared/_sheet_tab.scss
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
.ds4-sheet-tab {
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
height: 100%;
|
||||
|
||||
&[data-tab].active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
> * {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
28
scss/components/shared/_sheet_tab_nav.scss
Normal file
28
scss/components/shared/_sheet_tab_nav.scss
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
@use "../../utils/variables";
|
||||
|
||||
.ds4-sheet-tab-nav {
|
||||
border-bottom: variables.$border-groove;
|
||||
border-top: variables.$border-groove;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
height: calc(2 * var(--line-height-16));
|
||||
justify-content: space-around;
|
||||
line-height: calc(2 * var(--line-height-16));
|
||||
margin: variables.$margin-sm 0;
|
||||
|
||||
&__item {
|
||||
flex: 0 1 auto !important; // necessary to override the styling from lang-de, see https://gitlab.com/henry4k/foundryvtt-lang-de/-/issues/9
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
|
||||
&.active {
|
||||
text-shadow: 0 0 variables.$padding-md var(--color-shadow-primary);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue