mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 06:26:13 +01:00
[Feature] RollTable Improvements (#1552)
* Initial - Branch Test * reorganized path for better usage * something to mess with * registration things * . * root-template error * pushing in for the day * hook? * help? * . * implementation initial * updated comment * overcomplicated it * . * Added Formula select to view mode * . * Prettied up roll-results template * Removed SRD table descriptions * Improved draw result description css * Fallback for default dark dice * . --------- Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
This commit is contained in:
parent
fdb6412c8c
commit
a78ef1f70c
20 changed files with 660 additions and 10 deletions
|
|
@ -15,6 +15,14 @@
|
|||
.message-header .message-header-main .message-sub-header-container h4 {
|
||||
color: @dark-blue;
|
||||
}
|
||||
|
||||
.message-content {
|
||||
.table-draw {
|
||||
.table-description {
|
||||
color: @dark;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -83,6 +91,7 @@
|
|||
|
||||
.message-content {
|
||||
padding-bottom: 8px;
|
||||
|
||||
.flavor-text {
|
||||
font-size: var(--font-size-12);
|
||||
line-height: 20px;
|
||||
|
|
@ -90,6 +99,33 @@
|
|||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.table-draw {
|
||||
.table-flavor {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 0.5rem;
|
||||
font-size: var(--font-size-12);
|
||||
}
|
||||
|
||||
.table-description {
|
||||
color: @beige;
|
||||
font-style: italic;
|
||||
|
||||
&.flavor-spaced {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.table-results {
|
||||
.description {
|
||||
flex-basis: min-content;
|
||||
|
||||
> p:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,5 @@
|
|||
@import './items/heritage.less';
|
||||
@import './items/item-sheet-shared.less';
|
||||
|
||||
@import './rollTables/sheet.less';
|
||||
@import './actions/actions.less';
|
||||
|
|
|
|||
29
styles/less/sheets/rollTables/sheet.less
Normal file
29
styles/less/sheets/rollTables/sheet.less
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
.application.sheet.roll-table-sheet {
|
||||
.formulas-section {
|
||||
legend {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.formulas-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 40px;
|
||||
gap: 10px;
|
||||
text-align: center;
|
||||
|
||||
.formula-button {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.roll-table-view-formula-container {
|
||||
width: fit-content;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue