Ran prettier

This commit is contained in:
WBHarry 2025-05-23 18:45:22 +02:00
parent 5fc5d988e6
commit 48ab150a4e
133 changed files with 13852 additions and 12549 deletions

View file

@ -1,12 +1,15 @@
form.daggerheart.views.downtime { // Shouldn't be needed, but DEFAULT_OPTIONS doesn't accept Height: 'auto'
form.daggerheart.views.downtime {
// Shouldn't be needed, but DEFAULT_OPTIONS doesn't accept Height: 'auto'
height: auto !important;
}
div.daggerheart.views.death-move { // Shouldn't be needed, but DEFAULT_OPTIONS doesn't accept Height: 'auto'
div.daggerheart.views.death-move {
// Shouldn't be needed, but DEFAULT_OPTIONS doesn't accept Height: 'auto'
height: auto !important;
}
div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS doesn't accept Height: 'auto'
div.daggerheart.views.multiclass {
// Shouldn't be needed, but DEFAULT_OPTIONS doesn't accept Height: 'auto'
height: auto !important;
}
@ -19,7 +22,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
justify-content: center;
font-size: 32px;
margin-bottom: 4px;
.level-title {
text-decoration: underline;
}
@ -27,7 +30,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
.level-display {
display: flex;
align-items: center;
i {
margin: 0 @halfMargin;
}
@ -97,7 +100,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
position: relative;
display: flex;
align-items: center;
input {
&:disabled:checked::before {
opacity: 0.4;
@ -126,7 +129,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
padding: 8px 0;
}
}
}
}
}
}
@ -153,7 +156,8 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
margin-right: 8px;
cursor: pointer;
&:hover, &.selected {
&:hover,
&.selected {
filter: drop-shadow(0 0 6px gold);
}
}
@ -173,7 +177,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
}
}
}
&.downtime {
.activity-text-area {
resize: none;
@ -199,22 +203,23 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
}
.roll-dialog-container {
.disadvantage, .advantage {
.disadvantage,
.advantage {
border: 2px solid @secondaryAccent;
border-radius: 6px;
display: flex;
align-items: center;
padding: 4px;
margin-bottom: 6px;
&.selected {
filter: drop-shadow(0px 0px 3px @mainShadow);
}
input {
border: 0;
}
button {
flex: 0;
border-radius: 50%;
@ -225,11 +230,11 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
justify-content: center;
margin: 2px 0 2px 4px;
padding: 12px;
i {
margin: 0;
}
}
}
}
.roll-dialog-experience-container {
@ -237,7 +242,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
align-items: center;
flex-wrap: wrap;
gap: @halfMargin;
.roll-dialog-chip {
border: @thinBorder solid black;
border-radius: 6px;
@ -252,11 +257,11 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
background: grey;
overflow: hidden;
font-weight: bold;
&.hover {
filter: drop-shadow(0 0 3px @mainShadow);
}
span {
overflow: hidden;
white-space: nowrap;
@ -272,7 +277,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
}
}
}
.hope-container {
display: flex;
gap: @fullMargin;
@ -297,7 +302,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
align-items: center;
flex: 1;
.dice-inner-container{
.dice-inner-container {
position: relative;
display: flex;
align-items: center;
@ -305,13 +310,13 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
i {
font-size: 18px;
}
img {
border: 0;
position: relative;
left: 1px;
}
.dice-number {
position: absolute;
top: calc(50% - 14px);
@ -330,7 +335,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
gap: @halfMargin;
flex: 2;
height: 100%;
.roll-dialog-chip {
border: @thinBorder solid black;
border-radius: 6px;
@ -342,11 +347,11 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
padding: @fullPadding;
background: grey;
overflow: hidden;
&.hover {
filter: drop-shadow(0 0 3px @mainShadow);
}
span {
overflow: hidden;
white-space: nowrap;
@ -370,38 +375,40 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
}
.multiclass-class-choices {
display: flex;
width: 100%;
height: 100%;
display: flex;
width: 100%;
height: 100%;
flex-wrap: wrap;
}
.multiclass-spaced-choices {
display: flex;
display: flex;
justify-content: space-around;
width: 100%;
height: 100%;
width: 100%;
height: 100%;
}
.multiclass-class-choice {
display: flex;
display: flex;
align-items: center;
flex-basis: 33.33%;
font-weight: bold;
font-weight: bold;
font-size: 24px;
cursor: pointer;
&.selected:not(.disabled), &:hover:not(.disabled) {
&.selected:not(.disabled),
&:hover:not(.disabled) {
filter: drop-shadow(0 0 3px gold);
}
&.inactive, &.disabled {
&.inactive,
&.disabled {
cursor: initial;
opacity: 0.4;
}
img {
width: 80px;
width: 80px;
height: 80px;
margin-right: @largeMargin;
}
@ -460,27 +467,27 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
width: 100%;
display: flex;
flex-wrap: wrap;
.ancestry-inner-container {
flex-basis: 25%;
display: flex;
flex-direction: column;
align-items: center;
.image-container {
img {
width: 120px;
border: 4px solid black;
border-radius: 50%;
&.selected {
border-color: @secondaryShadow;
}
&:hover:not(.selected) {
&:hover:not(.selected) {
filter: drop-shadow(0 0 3px @secondaryShadow);
}
&.disabled {
opacity: 0.3;
}
@ -556,7 +563,7 @@ div.daggerheart.views.multiclass { // Shouldn't be needed, but DEFAULT_OPTIONS d
}
}
}
}
}
}
}
}
}

View file

@ -68,7 +68,7 @@
color: white;
-webkit-text-stroke-color: @disadvantage;
-webkit-text-stroke-width: 1.5px;
font-weight: 400;
font-weight: 400;
}
&.advantage {
color: white;
@ -118,7 +118,7 @@
.target-section {
margin-top: 5px;
.target-container {
display: flex;
transition: all 0.2s ease-in-out;
@ -146,8 +146,8 @@
width: 22px;
height: 22px;
margin-left: 8px;
align-self: center;
border-color: transparent;
align-self: center;
border-color: transparent;
}
.target-inner-container {
@ -199,7 +199,7 @@
border-color: black;
flex-basis: calc(50% - 2px);
&:nth-of-type(n+3){
&:nth-of-type(n + 3) {
margin-top: @tinyMargin;
}
}
@ -209,4 +209,4 @@
width: 80px;
}
}
}
}

View file

@ -2,4 +2,4 @@
.editor {
height: 500px;
}
}
}

View file

@ -16,11 +16,11 @@
width: 40px;
padding: 0 4px;
border: @thinBorder solid black;
&:hover {
filter: drop-shadow(0 0 3px red);
}
input:checked {
opacity: 0;
width: 0;
@ -42,4 +42,4 @@
transform: translateX(0);
}
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,14 +1,14 @@
@import "./variables/variables.less";
@import "./class.less";
@import "./pc.less";
@import "./ui.less";
@import "./chat.less";
@import "./item.less";
@import "./application.less";
@import "./sheets//sheets.less";
@import "./components.less";
@import "./dialog.less";
@import "../node_modules/@yaireo/tagify/dist/tagify.css";
@import './variables/variables.less';
@import './class.less';
@import './pc.less';
@import './ui.less';
@import './chat.less';
@import './item.less';
@import './application.less';
@import './sheets//sheets.less';
@import './components.less';
@import './dialog.less';
@import '../node_modules/@yaireo/tagify/dist/tagify.css';
#logo {
content: url(../assets/DaggerheartLogo.webp);
@ -52,7 +52,7 @@
}
/****/
img[data-edit="img"] {
img[data-edit='img'] {
min-width: 64px;
min-height: 64px;
}
@ -84,8 +84,7 @@
opacity: 0.6;
}
&:hover:not(.disabled){
&:hover:not(.disabled) {
cursor: pointer;
filter: drop-shadow(0 0 3px @mainShadow);
@ -118,15 +117,15 @@
.fear-control {
font-size: 10px;
&.disabled {
opacity: 0.4;
}
&:hover:not(.disabled) {
cursor: pointer;
filter: drop-shadow(0 0 3px @mainShadow);
}
}
}
}
}

View file

@ -1,12 +1,12 @@
.item-button {
&.checked {
&.checked {
background: green;
}
.item-icon {
opacity: 0;
transition: opacity 0.2s;
transition: opacity 0.2s;
&.checked {
opacity: 1;
}
}
}
}

View file

@ -53,8 +53,8 @@
font-weight: bold;
}
input[type="checkbox"] {
input[type='checkbox'] {
margin: 0;
}
}
}
}

View file

@ -4,7 +4,7 @@
div[data-application-part] {
display: flex;
flex-direction: column;
.pc-sheet-header {
display: flex;
gap: @halfMargin;
@ -118,7 +118,7 @@
}
}
.level-container{
.level-container {
position: relative;
bottom: 4px;
flex: none;
@ -147,7 +147,8 @@
font-weight: bold;
font-size: 20px;
text-align: center;
&:not(:hover), &:not(:focus) {
&:not(:hover),
&:not(:focus) {
border: none;
}
}
@ -177,7 +178,7 @@
font-size: 12px;
&.levelup {
color:gold;
color: gold;
filter: drop-shadow(0px 0px 3px orange);
font-weight: bold;
cursor: pointer;
@ -258,7 +259,7 @@
align-items: center;
flex-basis: 33.33%;
// flex: 1;
.attribute-banner {
position: relative;
top: 8px;
@ -315,7 +316,8 @@
}
}
& i.selected, &:hover i.selected {
& i.selected,
&:hover i.selected {
color: green;
opacity: 1;
}
@ -397,7 +399,7 @@
position: relative;
padding: @fullPadding;
max-width: 100px;
img {
border: none;
max-width: 80px;
@ -411,7 +413,8 @@
font-weight: bold;
font-size: 30px;
text-align: center;
&:not(:hover), &:not(:focus) {
&:not(:hover),
&:not(:focus) {
border: none;
}
}
@ -463,7 +466,7 @@
position: relative;
}
}
.weapon-section {
padding-top: 8px;
}
@ -473,7 +476,7 @@
display: flex;
align-items: center;
align-self: center;
.threshold-box {
position: relative;
width: 30px;
@ -507,7 +510,7 @@
.death-save {
position: absolute;
right: -22px;
&:hover:not(.disabled) {
filter: drop-shadow(0 0 3px @mainShadow);
cursor: pointer;
@ -606,14 +609,14 @@
.disabled-experience {
border: @thinBorder solid @borderTertiary;
background: rgba(0, 0, 0, 0.20);
background: rgba(0, 0, 0, 0.2);
}
}
.gold-section {
width: calc(100% - 8px);
display: flex;
justify-content: space-between;
fieldset.gold-fieldset {
padding-right: 0;
padding-left: 0;
@ -644,7 +647,8 @@
gap: @tinyMargin;
}
.gold-row, .gold-column {
.gold-row,
.gold-column {
img {
min-width: 14px;
min-height: 14px;
@ -654,7 +658,8 @@
&:hover {
cursor: pointer;
filter: invert(0%) sepia(100%) saturate(0%) hue-rotate(21deg) brightness(17%) contrast(103%) drop-shadow(0 0 3px @mainShadow);
filter: invert(0%) sepia(100%) saturate(0%) hue-rotate(21deg) brightness(17%)
contrast(103%) drop-shadow(0 0 3px @mainShadow);
}
}
@ -663,7 +668,8 @@
filter: drop-shadow(0 0 3px @mainShadow);
}
img:not(.owned), i:not(.owned) {
img:not(.owned),
i:not(.owned) {
opacity: 0.4;
}
}
@ -696,7 +702,7 @@
justify-content: space-between;
padding: @fullPadding;
margin-bottom: 0;
.feature-img {
max-width: 42px;
}
@ -728,8 +734,8 @@
background: rgba(0, 0, 0, 0.05);
display: flex;
justify-content: center;
&:hover:not(.disabled):not(.used){
&:hover:not(.disabled):not(.used) {
cursor: pointer;
filter: drop-shadow(0 0 3px @mainShadow);
}
@ -752,7 +758,7 @@
&.used::after {
position: absolute;
content: "/";
content: '/';
color: @borderTertiary;
font-weight: 700;
font-size: 1.7em;
@ -816,7 +822,7 @@
color: black;
}
&:not(:last-of-type){
&:not(:last-of-type) {
margin-right: @tinyMargin;
}
}
@ -912,7 +918,7 @@
background: rgb(122, 121, 113);
border-color: black;
margin: 0;
&:hover {
background: red;
}
@ -925,7 +931,8 @@
}
}
.inventory-armor-section, .inventory-weapon-section {
.inventory-armor-section,
.inventory-weapon-section {
width: 100%;
margin-bottom: @fullMargin;
text-transform: uppercase;
@ -941,14 +948,14 @@
display: flex;
align-items: center;
margin-bottom: @halfMargin;
.page-selector {
margin-left: 4px;
display: flex;
align-items: center;
i {
&:hover:not(.disabled){
&:hover:not(.disabled) {
cursor: pointer;
filter: drop-shadow(0px 0px 3px red);
}
@ -1040,8 +1047,8 @@
.inventory-items {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
display: flex;
flex-direction: column;
justify-content: space-between;
}
@ -1078,7 +1085,7 @@
.top-card-row {
flex: 1;
display: flex;
justify-content: space-around;
justify-content: space-around;
}
.domain-card.outlined {
@ -1099,7 +1106,7 @@
flex-wrap: wrap;
overflow-y: auto;
height: 100%;
.vault-card {
flex: 0;
flex-basis: calc(33.33% - 16px);
@ -1108,7 +1115,7 @@
min-height: calc(50% - 16px);
}
}
.domain-card-menu {
flex: 0;
width: 120px;
@ -1120,7 +1127,7 @@
button {
margin-bottom: @tinyMargin;
}
}
}
}
}
@ -1213,14 +1220,14 @@
bottom: -9px;
z-index: 1;
.abilities-card-type-text{
.abilities-card-type-text {
padding: 0px 4px;
border: 1px solid black;
border-radius: 6px;
background: gold;
}
}
.abilities-card-title {
flex: 0;
display: flex;
@ -1260,7 +1267,7 @@
.abilities-card-effect {
cursor: pointer;
&:hover {
background: rgb(47 79 79 / 25%);
}
@ -1284,14 +1291,14 @@
&:hover {
background: rgb(47 79 79 / 25%);
}
> * {
margin: 0;
}
}
}
}
&:hover .abilities-card-menu{
&:hover .abilities-card-menu {
height: 40px;
left: 0px;
}
@ -1328,7 +1335,7 @@
}
.heritage-card {
flex-basis: 33.33%;
flex-basis: 33.33%;
margin: @fullMargin;
display: flex;
align-items: center;
@ -1389,7 +1396,7 @@
overflow: auto;
.inventory-item-list {
list-style-type:none;
list-style-type: none;
padding: 0 @largePadding;
margin-top: 0;
@ -1503,4 +1510,4 @@
}
}
}
}
}

View file

@ -66,7 +66,7 @@
cursor: pointer;
&:hover {
filter: drop-shadow(0 0 3px red),
filter: drop-shadow(0 0 3px red);
}
}
}
@ -118,7 +118,7 @@
.statistic-resource-container {
display: flex;
align-items: center;
label {
min-width: 44px;
}
@ -161,7 +161,7 @@
cursor: pointer;
&:hover {
filter: drop-shadow(0 0 3px red),
filter: drop-shadow(0 0 3px red);
}
}
}
@ -214,12 +214,12 @@
cursor: pointer;
&:hover {
background: @hoverBackground;
background: @hoverBackground;
}
.moves-name {
font-weight: bold;
text-decoration: none;;
text-decoration: none;
}
.move-description {
@ -230,13 +230,12 @@
}
.moves-edit-container {
i {
margin-left: 4px;
cursor: pointer;
&:hover {
filter: drop-shadow(0 0 3px red),
filter: drop-shadow(0 0 3px red);
}
}
}
@ -278,4 +277,4 @@
background: white;
}
}
}
}

View file

@ -22,7 +22,7 @@
}
.trait-input {
text-align: center;
text-align: center;
min-width: 24px;
}
@ -72,18 +72,18 @@
}
.guide-section-title-centered {
font-weight: bold;
font-weight: bold;
font-size: 18px;
}
.inventory-section {
width: 100%;
border: 2px solid black;
border-style: dotted;
border: 2px solid black;
border-style: dotted;
min-height: 80px;
.inventory-title {
font-weight: bold;
font-weight: bold;
font-size: 14px;
text-align: center;
}
@ -109,11 +109,11 @@
}
img {
margin-left: 8px;
height: 20px;
margin-left: 8px;
height: 20px;
width: 20px;
}
}
}
}
}
}

View file

@ -2,5 +2,4 @@
.editor {
height: 200px;
}
}
}

View file

@ -1,6 +1,6 @@
@import "./heritage.less";
@import "./class.less";
@import "./adversary.less";
@import './heritage.less';
@import './class.less';
@import './adversary.less';
.daggerheart.sheet {
.title-container {
@ -53,7 +53,7 @@
.ability-title {
width: 100%;
display: flex;
h2 {
flex: 1;
}
@ -117,7 +117,7 @@
position: relative;
width: calc(100% - 2px);
background: rgba(0, 0, 0, 0.05);
height: var(--form-field-height);;
height: var(--form-field-height);
display: flex;
border: 1px solid rgb(122, 121, 113);
border-radius: 3px;
@ -177,10 +177,9 @@
width: 40px;
background: inherit;
border: 0;
i {
}
}
}
}
}

View file

@ -22,7 +22,7 @@
i {
margin: 0 @tinyMargin;
font-size: 16px;
&.disabled {
opacity: 0.6;
}
@ -63,8 +63,7 @@
opacity: 0.6;
}
&:hover:not(.disabled){
&:hover:not(.disabled) {
cursor: pointer;
filter: drop-shadow(0 0 3px @mainShadow);
}

View file

@ -21,4 +21,4 @@
@primaryAccent: #778899;
@secondaryAccent: #708090;
@formBackground: #782e22;
@hoverBackground: #2f4f4f40;
@hoverBackground: #2f4f4f40;

View file

@ -23,4 +23,4 @@
@largePadding: 8px;
/* Inputs */
@inputSingleMinWidth: 26px;
@inputSingleMinWidth: 26px;

View file

@ -1,2 +1,2 @@
@import "./colors.less";
@import "./values.less";
@import './colors.less';
@import './values.less';