mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
duality tpl
This commit is contained in:
parent
21b528e56c
commit
36bbfc52fb
10 changed files with 990 additions and 511 deletions
692
styles/chat.less
692
styles/chat.less
|
|
@ -1,59 +1,339 @@
|
|||
.chat-message {
|
||||
&.duality {
|
||||
border-color: black;
|
||||
padding: 8px 0 0 0;
|
||||
// &.duality {
|
||||
// border-color: black;
|
||||
// padding: 8px 0 0 0;
|
||||
|
||||
.message-header {
|
||||
color: var(--color-light-3);
|
||||
padding: 0 8px;
|
||||
}
|
||||
// .message-header {
|
||||
// color: var(--color-light-3);
|
||||
// padding: 0 8px;
|
||||
// }
|
||||
|
||||
.duality-data {
|
||||
// .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);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
.duality-modifiers, .duality-result, .dice-title {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.daggerheart.chat {
|
||||
&.downtime {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.downtime-title-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.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;
|
||||
.downtime-subtitle {
|
||||
font-size: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
.duality-modifiers {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
margin-bottom: 4px;
|
||||
padding: 0 8px;
|
||||
.downtime-image {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.duality-modifier {
|
||||
padding: 2px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid;
|
||||
background: var(--color-dark-6);
|
||||
font-size: 12px;
|
||||
}
|
||||
.downtime-refresh-container {
|
||||
margin-top: @fullMargin;
|
||||
width: 100%;
|
||||
|
||||
.refresh-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.duality-line {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
padding: 0 8px;
|
||||
|
||||
&.simple {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.dice-outer-container {
|
||||
&.roll {
|
||||
.dice-flavor {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
.dice-tooltip {
|
||||
.dice-rolls {
|
||||
> .roll {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.dice-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -137,195 +417,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.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 {
|
||||
/* .dice-rolls.duality {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
|
|
@ -397,7 +491,7 @@
|
|||
.attack-roll-advantage-container {
|
||||
text-align: end;
|
||||
font-weight: bold;
|
||||
}
|
||||
} */
|
||||
}
|
||||
|
||||
.dice-total {
|
||||
|
|
@ -559,3 +653,143 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.theme-colorfull {
|
||||
.chat-message.duality {
|
||||
border-color: black;
|
||||
padding: 8px 0 0 0;
|
||||
.message-header {
|
||||
color: var(--color-light-3);
|
||||
padding: 0 8px;
|
||||
}
|
||||
&.hope {
|
||||
background: linear-gradient(0, rgba(165, 42, 42, 0.6) 40px, rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
&.fear {
|
||||
background: linear-gradient(0, @fearBackgroundEnd, @fearBackgroundStart);
|
||||
}
|
||||
&.critical {
|
||||
background: linear-gradient(0, @criticalBackgroundEnd, @criticalBackgroundStart);
|
||||
}
|
||||
.chat-message header {
|
||||
color: var(--color-light-3);
|
||||
}
|
||||
> * {
|
||||
padding: 0 8px;
|
||||
}
|
||||
.message-content {
|
||||
.duality-modifiers, .duality-result, .dice-title {
|
||||
display: flex;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
}
|
||||
.dice-flavor {
|
||||
color: var(--color-light-1);
|
||||
text-shadow: 0 0 1px black;
|
||||
border-bottom: 1px solid;
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
padding: 0 8px;
|
||||
margin: 0 -8px 2px;
|
||||
font-weight: unset;
|
||||
}
|
||||
.dice-result {
|
||||
.duality-modifiers {
|
||||
display: flex; // Default => display: none;
|
||||
gap: 2px;
|
||||
margin-bottom: 4px;
|
||||
.duality-modifier {
|
||||
padding: 2px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid;
|
||||
background: var(--color-dark-6);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
.dice-formula, > .dice-total, .part-header {
|
||||
display: none;
|
||||
}
|
||||
.dice-tooltip {
|
||||
grid-template-rows: 1fr;
|
||||
.wrapper {
|
||||
.tooltip-part {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
gap: .25rem;
|
||||
.dice {
|
||||
.dice-rolls {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
margin-bottom: 0;
|
||||
li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
background: unset;
|
||||
line-height: unset;
|
||||
font-weight: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.target-section {
|
||||
margin: 4px 0;
|
||||
border: 2px solid;
|
||||
margin-top: 5px;
|
||||
.dice-total {
|
||||
box-shadow: unset;
|
||||
border: unset;
|
||||
border-radius: unset;
|
||||
font-size: var(--font-size-18);
|
||||
}
|
||||
}
|
||||
.dice-actions {
|
||||
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;
|
||||
margin-left: -8px;
|
||||
flex: unset;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
margin-right: -8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue