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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue