chore: reformat with 2 spaces

This commit is contained in:
Johannes Loher 2023-07-10 22:23:13 +02:00
parent d659e4bed9
commit 7670d7f808
No known key found for this signature in database
GPG key ID: 7CB0A9FB553DA045
1577 changed files with 70010 additions and 70042 deletions

View file

@ -5,5 +5,5 @@
*/
.ds4-add-button {
padding: 0 calc(1em / 3);
padding: 0 calc(1em / 3);
}

View file

@ -5,23 +5,23 @@
*/
.ds4-checkbox-grid {
$gap: 3px;
$gap: 3px;
gap: $gap;
display: grid;
font-size: var(--font-size-12);
grid-template-columns: 1fr 1fr;
&__item {
align-items: center;
display: flex;
gap: $gap;
display: grid;
font-size: var(--font-size-12);
grid-template-columns: 1fr 1fr;
&__item {
align-items: center;
display: flex;
gap: $gap;
justify-content: flex-start;
> * {
flex: 0 0 auto;
}
justify-content: flex-start;
> * {
flex: 0 0 auto;
}
}
&__checkbox[type="checkbox"] {
margin: 0;
}
&__checkbox[type="checkbox"] {
margin: 0;
}
}

View file

@ -5,12 +5,12 @@
*/
.ds4-control-button-group {
display: flex;
text-align: center;
width: 100%;
padding: 0 calc(1em / 3);
display: flex;
text-align: center;
width: 100%;
padding: 0 calc(1em / 3);
&__button {
flex: 1;
}
&__button {
flex: 1;
}
}

View file

@ -5,14 +5,14 @@
*/
.ds4-sheet-form {
.editor {
height: 100%;
.editor {
height: 100%;
.tox {
.tox-toolbar-overlord,
.tox-toolbar__primary {
background: transparent;
}
}
.tox {
.tox-toolbar-overlord,
.tox-toolbar__primary {
background: transparent;
}
}
}
}

View file

@ -9,144 +9,144 @@
@use "../../utils/variables";
.ds4-embedded-document-list {
@include mixins.mark-invalid-or-disabled-input;
@include mixins.mark-invalid-or-disabled-input;
$row-height: 1.75em;
$row-height: 1.75em;
display: grid;
grid-column-gap: 0.5em;
grid-row-gap: 0.2em;
margin: 0;
padding: 0.5em 0;
display: grid;
grid-column-gap: 0.5em;
grid-row-gap: 0.2em;
margin: 0;
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;
}
&--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;
}
}
&--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;
}
}
&--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;
}
}
&--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;
}
&--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) {
justify-self: center;
}
&--spell {
grid-template-columns: $row-height $row-height 2fr $row-height 1fr 1fr 1fr 1fr 5ch;
:nth-child(9n + 1),
:nth-child(9n + 4) {
justify-self: center;
}
}
&--talent {
grid-template-columns: $row-height 1fr 4ch 3fr 5ch;
:nth-child(9n + 3) {
justify-self: center;
}
&--talent {
grid-template-columns: $row-height 1fr 4ch 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;
}
&--racial-ability,
&--language,
&--alphabet,
&--special-creature-ability {
grid-template-columns: $row-height 1fr 3fr 5ch;
}
&--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;
}
&--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;
}
> * {
height: $row-height;
line-height: $row-height;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
&__image {
border: none;
}
&__editable {
&[type="text"],
&[type="number"] {
background-color: transparent;
border: 0;
padding: 0;
height: 100%;
}
&--item-effect {
grid-template-columns: $row-height 1fr 5ch;
&--checkbox {
&[type="checkbox"] {
width: 100%;
height: 100%;
margin: 0px;
}
}
}
&__description {
overflow: hidden;
text-overflow: ellipsis;
:not(:first-child) {
display: none;
}
&__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;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
> * {
font-size: 0.75em;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
}
}
&__image {
border: none;
}
&__editable {
&[type="text"],
&[type="number"] {
background-color: transparent;
border: 0;
padding: 0;
height: 100%;
}
&--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;
}
&__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;
border-bottom: variables.$border-groove;
font-weight: bold;
margin-bottom: 0;
margin-top: 1em;
padding-left: 1em;
}

View file

@ -5,23 +5,23 @@
*/
.ds4-form-group {
clear: both;
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 3px 0;
align-items: center;
clear: both;
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin: 3px 0;
align-items: center;
&--start {
align-items: flex-start;
}
&--start {
align-items: flex-start;
}
& > * {
flex: 3;
}
& > * {
flex: 3;
}
&__label {
flex: 2;
line-height: var(--form-field-height);
}
&__label {
flex: 2;
line-height: var(--form-field-height);
}
}

View file

@ -5,35 +5,35 @@
*/
.ds4-rollable-image {
position: relative;
position: relative;
&--rollable {
cursor: pointer;
&--rollable {
cursor: pointer;
&:hover {
.ds4-rollable-image__image {
opacity: 0.25;
}
&:hover {
.ds4-rollable-image__image {
opacity: 0.25;
}
.ds4-rollable-image__overlay {
opacity: 1;
}
}
.ds4-rollable-image__overlay {
opacity: 1;
}
}
}
&__image {
border: none;
transition: 0.1s ease;
}
&__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;
}
&__overlay {
border: none;
bottom: 0;
left: 0;
opacity: 0;
position: absolute;
right: 0;
top: 0;
transition: 0.1s ease;
}
}

View file

@ -5,6 +5,6 @@
*/
.ds4-sheet-body {
height: 100%;
overflow-y: auto;
height: 100%;
overflow-y: auto;
}

View file

@ -5,9 +5,9 @@
*/
.ds4-sheet-form {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
font-family: var(--ds4-font-primary);
height: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
font-family: var(--ds4-font-primary);
height: 100%;
}

View file

@ -5,15 +5,15 @@
*/
.ds4-sheet-tab {
flex-direction: column;
flex-wrap: nowrap;
height: 100%;
flex-direction: column;
flex-wrap: nowrap;
height: 100%;
&[data-tab].active {
display: flex;
}
&[data-tab].active {
display: flex;
}
> * {
flex-shrink: 0;
}
> * {
flex-shrink: 0;
}
}

View file

@ -7,22 +7,22 @@
@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;
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;
&__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);
}
&.active {
text-shadow: 0 0 variables.$padding-md var(--color-shadow-primary);
}
}
}