mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 19:51:08 +01:00
* Moved the roll total to bottom right. A bunch of label fixes * Fixed broken attack-roll damage button * Added AppearanceMenu allowing modification of DiceSoNice Duality presets
556 lines
16 KiB
Text
556 lines
16 KiB
Text
.chat-message {
|
|
&.duality {
|
|
border-color: black;
|
|
padding: 8px 0 0 0;
|
|
|
|
.message-header {
|
|
color: var(--color-light-3);
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.duality-data {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.duality-title {
|
|
color: var(--color-light-1);
|
|
text-shadow: 0 0 1px black;
|
|
border-bottom: 1px solid;
|
|
margin-bottom: 2px;
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.duality-modifiers {
|
|
display: flex;
|
|
gap: 2px;
|
|
margin-bottom: 4px;
|
|
padding: 0 8px;
|
|
|
|
.duality-modifier {
|
|
padding: 2px;
|
|
border-radius: 6px;
|
|
border: 1px solid;
|
|
background: var(--color-dark-6);
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.duality-line {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
|
|
&.simple {
|
|
padding-right: 0;
|
|
}
|
|
|
|
.dice-outer-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-bottom: 4px;
|
|
|
|
.dice-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
|
|
.dice-title {
|
|
color: var(--color-light-1);
|
|
text-shadow: 0 0 1px black;
|
|
}
|
|
|
|
.dice-inner-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
|
|
.dice-wrapper {
|
|
height: 24px;
|
|
width: 24px;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
clip-path: polygon(
|
|
50% 0%,
|
|
80% 10%,
|
|
100% 35%,
|
|
100% 70%,
|
|
80% 90%,
|
|
50% 100%,
|
|
20% 90%,
|
|
0% 70%,
|
|
0% 35%,
|
|
20% 10%
|
|
);
|
|
|
|
.dice {
|
|
height: 26px;
|
|
width: 26px;
|
|
max-width: unset;
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
.dice-value {
|
|
position: absolute;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
&.hope {
|
|
.dice-wrapper {
|
|
background: black;
|
|
|
|
.dice {
|
|
filter: brightness(0) saturate(100%) invert(79%) sepia(79%) saturate(333%)
|
|
hue-rotate(352deg) brightness(102%) contrast(103%);
|
|
}
|
|
}
|
|
|
|
.dice-value {
|
|
color: var(--color-dark-1);
|
|
text-shadow: 0 0 4px white;
|
|
}
|
|
}
|
|
|
|
&.fear {
|
|
.dice-wrapper {
|
|
background: white;
|
|
|
|
.dice {
|
|
filter: brightness(0) saturate(100%) invert(12%) sepia(88%) saturate(4321%)
|
|
hue-rotate(221deg) brightness(92%) contrast(110%);
|
|
}
|
|
}
|
|
|
|
.dice-value {
|
|
color: var(--color-light-1);
|
|
text-shadow: 0 0 4px black;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.advantage-container {
|
|
padding-top: 21px;
|
|
|
|
.dice-wrapper {
|
|
height: 24px;
|
|
width: 24px;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.dice {
|
|
height: 26px;
|
|
width: 26px;
|
|
max-width: unset;
|
|
position: absolute;
|
|
}
|
|
|
|
.dice-value {
|
|
position: absolute;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
&.advantage {
|
|
.dice-wrapper {
|
|
.dice {
|
|
filter: brightness(0) saturate(100%) invert(18%) sepia(92%) saturate(4133%)
|
|
hue-rotate(96deg) brightness(104%) contrast(107%);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.disadvantage {
|
|
.dice-wrapper {
|
|
.dice {
|
|
filter: brightness(0) saturate(100%) invert(9%) sepia(78%) saturate(6903%)
|
|
hue-rotate(11deg) brightness(93%) contrast(117%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.duality-modifier {
|
|
padding-top: 21px;
|
|
color: var(--color-light-1);
|
|
text-shadow: 0 0 1px black;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.duality-result {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: end;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
color: var(--color-light-1);
|
|
text-shadow: 0 0 1px black;
|
|
font-weight: bold;
|
|
background: var(--color-dark-1);
|
|
padding: 4px 4px 0 4px;
|
|
border-radius: 6px 0 0 0;
|
|
}
|
|
|
|
.duality-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.duality-action {
|
|
color: var(--color-light-1);
|
|
text-shadow: 0 0 1px black;
|
|
font-weight: bold;
|
|
background: var(--color-dark-1);
|
|
padding: 4px;
|
|
border-radius: 0 6px 0 0;
|
|
border-color: black;
|
|
min-height: unset;
|
|
height: 26px;
|
|
|
|
&:hover {
|
|
background: var(--button-hover-background-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.target-section {
|
|
margin: 4px 4px;
|
|
border: 2px solid;
|
|
|
|
.target-container {
|
|
display: flex;
|
|
align-items: center;
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
&:hover {
|
|
filter: drop-shadow(0 0 3px @secondaryShadow);
|
|
border-color: gold;
|
|
}
|
|
|
|
&.hit {
|
|
background: @hit;
|
|
}
|
|
|
|
&.miss {
|
|
background: @miss;
|
|
}
|
|
|
|
img {
|
|
flex: 0;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-left: 8px;
|
|
align-self: center;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.target-inner-container {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-right: @hugeMargin;
|
|
font-weight: bold;
|
|
font-size: 17px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.hope {
|
|
background: linear-gradient(0, @hopeBackgroundEnd 40px, @hopeBackgroundStart);
|
|
}
|
|
&.fear {
|
|
background: linear-gradient(0, @fearBackgroundEnd, @fearBackgroundStart);
|
|
}
|
|
&.critical {
|
|
background: linear-gradient(0, @criticalBackgroundEnd, @criticalBackgroundStart);
|
|
}
|
|
|
|
.dice-roll {
|
|
color: var(--color-dark-1);
|
|
|
|
.dice-flavor {
|
|
color: var(--color-light-1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.daggerheart.chat {
|
|
&.downtime {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
.downtime-title-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
.downtime-subtitle {
|
|
font-size: 17px;
|
|
}
|
|
}
|
|
|
|
.downtime-image {
|
|
width: 80px;
|
|
}
|
|
|
|
.downtime-refresh-container {
|
|
margin-top: @fullMargin;
|
|
width: 100%;
|
|
|
|
.refresh-title {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.roll {
|
|
.dice-flavor {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
}
|
|
.dice-tooltip {
|
|
.dice-rolls.duality {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.dice-hope-container {
|
|
display: flex;
|
|
|
|
.roll.die:not(:last-of-type) {
|
|
margin-right: @fullMargin;
|
|
}
|
|
}
|
|
|
|
.modifiers-container {
|
|
display: flex;
|
|
|
|
.modifier-value:not(:last-of-type) {
|
|
margin-right: @fullMargin;
|
|
}
|
|
}
|
|
|
|
.roll.die {
|
|
&.hope {
|
|
color: white;
|
|
-webkit-text-stroke-color: @hope;
|
|
-webkit-text-stroke-width: 1.5px;
|
|
font-weight: 400;
|
|
&:not(.discarded) {
|
|
filter: none;
|
|
}
|
|
}
|
|
&.fear {
|
|
color: white;
|
|
-webkit-text-stroke-color: @fear;
|
|
-webkit-text-stroke-width: 1.5px;
|
|
font-weight: 400;
|
|
&:not(.discarded) {
|
|
filter: none;
|
|
}
|
|
}
|
|
&.disadvantage {
|
|
color: white;
|
|
-webkit-text-stroke-color: @disadvantage;
|
|
-webkit-text-stroke-width: 1.5px;
|
|
font-weight: 400;
|
|
}
|
|
&.advantage {
|
|
color: white;
|
|
-webkit-text-stroke-color: @advantage;
|
|
-webkit-text-stroke-width: 1.5px;
|
|
font-weight: 400;
|
|
}
|
|
//V1.3
|
|
// &.advantage {
|
|
// filter: drop-shadow(0 -4px 4px gold);
|
|
// cursor: pointer;
|
|
// }
|
|
|
|
&.unused {
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
|
|
.modifier-value {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
.attack-roll-advantage-container {
|
|
text-align: end;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.dice-total {
|
|
&.duality {
|
|
&.hope {
|
|
border-color: @hope;
|
|
border-width: 3px;
|
|
background: rgba(@hope, 0.5);
|
|
}
|
|
&.fear {
|
|
border-color: @fear;
|
|
border-width: 3px;
|
|
background: rgba(@fear, 0.5);
|
|
}
|
|
&.critical {
|
|
border-color: @critical;
|
|
border-width: 3px;
|
|
background: rgba(@critical, 0.5);
|
|
}
|
|
}
|
|
|
|
.dice-total-value {
|
|
.hope {
|
|
color: @hope;
|
|
}
|
|
.fear {
|
|
color: @fear;
|
|
}
|
|
.critical {
|
|
color: @critical;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dice-total-label {
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
font-variant: all-small-caps;
|
|
margin: -@fullMargin 0;
|
|
}
|
|
|
|
.target-section {
|
|
margin-top: 5px;
|
|
|
|
.target-container {
|
|
display: flex;
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
&:hover {
|
|
filter: drop-shadow(0 0 3px @secondaryShadow);
|
|
border-color: gold;
|
|
}
|
|
|
|
&.hidden {
|
|
display: none;
|
|
border: 0;
|
|
}
|
|
|
|
&.hit {
|
|
background: @hit;
|
|
}
|
|
|
|
&.miss {
|
|
background: @miss;
|
|
}
|
|
|
|
img {
|
|
flex: 0;
|
|
width: 22px;
|
|
height: 22px;
|
|
margin-left: 8px;
|
|
align-self: center;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.target-inner-container {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-right: @hugeMargin;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dice-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
|
|
button {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
.dice-result {
|
|
.roll-damage-button,
|
|
.damage-button {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
.dice-actions {
|
|
margin-top: 5px;
|
|
display: flex;
|
|
|
|
button {
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.domain-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
.domain-card-title {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
div {
|
|
font-size: 20px;
|
|
font-variant: small-caps;
|
|
font-weight: bold;
|
|
}
|
|
|
|
h2 {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.ability-card-footer {
|
|
display: flex;
|
|
width: 100%;
|
|
margin-top: @fullMargin;
|
|
flex-wrap: wrap;
|
|
|
|
button {
|
|
border-radius: 6px;
|
|
background: @positive;
|
|
border-color: black;
|
|
flex-basis: calc(50% - 2px);
|
|
|
|
&:nth-of-type(n + 3) {
|
|
margin-top: @tinyMargin;
|
|
}
|
|
}
|
|
}
|
|
|
|
img {
|
|
width: 80px;
|
|
}
|
|
}
|
|
}
|