mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Styling pass for scrollbars, fieldsets, and scroll shadows
This commit is contained in:
parent
cc16a726bf
commit
80b5cda9ba
33 changed files with 203 additions and 111 deletions
|
|
@ -261,10 +261,14 @@
|
|||
|
||||
fieldset {
|
||||
align-items: center;
|
||||
margin-top: 5px;
|
||||
border-radius: 6px;
|
||||
border-color: @color-fieldset-border;
|
||||
|
||||
/* Left and right side spacing is set up so that content starts at 15px left indent */
|
||||
margin-top: 5px;
|
||||
padding-inline: 7px;
|
||||
margin-inline: 6px;
|
||||
|
||||
&.glassy {
|
||||
background-color: light-dark(@dark-blue-10, @golden-10);
|
||||
border-color: transparent;
|
||||
|
|
@ -501,7 +505,7 @@
|
|||
height: 1px;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid @color-border;
|
||||
mask-image: linear-gradient(270deg, transparent 0%, black 50%, transparent 100%);
|
||||
mask-image: linear-gradient(270deg, transparent 0%, black 35%,black 50%, black 65%, transparent 100%);
|
||||
}
|
||||
|
||||
side-line-div {
|
||||
|
|
|
|||
|
|
@ -283,6 +283,22 @@
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Styles for the non-compact version so that the hover looks nicer.
|
||||
* Because of overflow, it is best if the containing element has some top and left padding.
|
||||
*/
|
||||
.inventory-item:not(.inventory-item-compact) {
|
||||
.inventory-item-header {
|
||||
padding-top: 3px;
|
||||
margin-top: -3px;
|
||||
}
|
||||
> * {
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
margin-left: -3px;
|
||||
}
|
||||
}
|
||||
|
||||
.card-item {
|
||||
position: relative;
|
||||
height: 120px;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
.application.daggerheart {
|
||||
prose-mirror {
|
||||
--menu-padding: 0;
|
||||
--menu-height: var(--menu-button-height);
|
||||
height: 100% !important;
|
||||
width: 100%;
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ body.game:is(.performance-low, .noblur) {
|
|||
position: relative;
|
||||
min-height: -webkit-fill-available;
|
||||
transition: opacity 0.3s ease;
|
||||
padding-bottom: 20px;
|
||||
padding-bottom: 16px;
|
||||
|
||||
.tab {
|
||||
padding: 0 10px;
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
.window-header > .attribution-header-label {
|
||||
margin-right: var(--spacer-4);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.tab.inventory {
|
||||
|
|
@ -46,7 +47,7 @@
|
|||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
gap: 10px;
|
||||
padding: 10px 10px 0;
|
||||
padding: 12px 12px 0 10px;
|
||||
|
||||
.input {
|
||||
color: light-dark(@dark, @beige);
|
||||
|
|
|
|||
|
|
@ -3,13 +3,20 @@
|
|||
|
||||
.application.sheet.daggerheart.actor.dh-style.adversary {
|
||||
.tab.effects {
|
||||
margin-top: var(--spacer-12);
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
.effects-sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
fieldset {
|
||||
margin-right: 0; // scroll gutter compensation
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,14 +3,17 @@
|
|||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.adversary {
|
||||
.tab.features {
|
||||
.tab.features.active {
|
||||
position: relative;
|
||||
margin-top: var(--spacer-8);
|
||||
padding: var(--spacer-8) 2px 0 var(--left-indent);
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
.feature-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
width: 100%;
|
||||
|
||||
> *:not(line-div, .tab-navigation) {
|
||||
padding-left: 15px;
|
||||
padding-left: var(--left-indent);
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
|
|
@ -75,6 +75,7 @@
|
|||
|
||||
.tab-navigation {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
button[data-action="openSettings"] {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,47 @@
|
|||
@import './features.less';
|
||||
@import '../../../utils/colors.less';
|
||||
@import '../../../utils/fonts.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.adversary {
|
||||
--left-indent: 15px;
|
||||
|
||||
.window-content {
|
||||
display: grid;
|
||||
grid-template-columns: 275px 1fr;
|
||||
grid-template-rows: auto 1fr;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.adversary-sidebar-sheet {
|
||||
grid-row: 1 / span 2;
|
||||
grid-column: 1;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.adversary-header-sheet {
|
||||
grid-row: 1;
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.tab {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
&.active {
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
margin-right: 1px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import './header.less';
|
||||
@import './sheet.less';
|
||||
@import './features.less';
|
||||
@import './sidebar.less';
|
||||
@import './effects.less';
|
||||
@import './notes.less';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
.application.sheet.daggerheart.actor.dh-style.adversary .tab.notes.active {
|
||||
padding-bottom: 20px;
|
||||
padding-top: var(--spacer-16);
|
||||
padding-left: var(--left-indent);
|
||||
.editor-content {
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,36 +0,0 @@
|
|||
@import '../../../utils/colors.less';
|
||||
@import '../../../utils/fonts.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.adversary {
|
||||
.window-content {
|
||||
display: grid;
|
||||
grid-template-columns: 275px 1fr;
|
||||
grid-template-rows: auto 1fr;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding-bottom: 0;
|
||||
|
||||
.adversary-sidebar-sheet {
|
||||
grid-row: 1 / span 2;
|
||||
grid-column: 1;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.adversary-header-sheet {
|
||||
grid-row: 1;
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.tab {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
&.active {
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11,8 +11,9 @@
|
|||
height: 100%;
|
||||
overflow-y: auto;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 20px;
|
||||
padding-bottom: 4px;
|
||||
height: 100%;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
@import './sheet.less';
|
||||
@import './biography.less';
|
||||
@import './effects.less';
|
||||
@import './features.less';
|
||||
@import './header.less';
|
||||
@import './inventory.less';
|
||||
@import './loadout.less';
|
||||
@import './sheet.less';
|
||||
@import './sidebar.less';
|
||||
|
|
|
|||
|
|
@ -4,13 +4,18 @@
|
|||
|
||||
.application.sheet.daggerheart.actor.dh-style.character {
|
||||
.tab.inventory {
|
||||
padding-right: 0;
|
||||
.search-section {
|
||||
padding-right: 14px;
|
||||
}
|
||||
.items-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
padding-bottom: 4px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
.application.sheet.daggerheart.actor.dh-style.character {
|
||||
.tab.loadout {
|
||||
.search-section {
|
||||
padding-right: 14px;
|
||||
.btn-toggle-view {
|
||||
background: light-dark(@dark-blue-10, @dark-blue);
|
||||
border: 1px solid @color-border;
|
||||
|
|
@ -52,8 +53,9 @@
|
|||
gap: 10px;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
padding-bottom: 4px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,28 +10,31 @@
|
|||
width: 100%;
|
||||
padding-bottom: 0;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.character-sidebar-sheet {
|
||||
grid-row: 1 / span 2;
|
||||
grid-column: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.character-sidebar-sheet {
|
||||
grid-row: 1 / span 2;
|
||||
grid-column: 1;
|
||||
.character-header-sheet {
|
||||
position: relative;
|
||||
grid-row: 1;
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.tab {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
padding-right: 0;
|
||||
margin-right: 2px;
|
||||
margin-bottom: 12px;
|
||||
&.active {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.character-header-sheet {
|
||||
position: relative;
|
||||
grid-row: 1;
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.tab {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
&.active {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
@import '../../../utils/colors.less';
|
||||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.companion {
|
||||
.tab.effects {
|
||||
margin-right: 2px;
|
||||
padding-right: 0;
|
||||
.effects-sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 20px;
|
||||
padding-bottom: 4px;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,12 +4,14 @@
|
|||
|
||||
.application.sheet.daggerheart.actor.dh-style.environment {
|
||||
.tab.features {
|
||||
position: relative;
|
||||
.feature-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 4px;
|
||||
padding: 4px 8px;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
@import './sheet.less';
|
||||
@import './features.less';
|
||||
@import './header.less';
|
||||
@import './potentialAdversaries.less';
|
||||
@import './sheet.less';
|
||||
@import './notes.less';
|
||||
|
|
|
|||
11
styles/less/sheets/actors/environment/notes.less
Normal file
11
styles/less/sheets/actors/environment/notes.less
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.environment {
|
||||
.tab.notes {
|
||||
padding: 6px 0 4px 15px;
|
||||
.editor-content {
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
@import '../../../utils/colors.less';
|
||||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.environment {
|
||||
.tab.potentialAdversaries {
|
||||
|
|
@ -7,7 +8,8 @@
|
|||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 4px;
|
||||
padding: 0 4px 4px 4px;
|
||||
scrollbar-gutter: stable;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
.tab {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding-right: 0;
|
||||
margin-right: 2px;
|
||||
|
||||
&.active {
|
||||
overflow: hidden;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
@import './sheet.less';
|
||||
@import './header.less';
|
||||
@import './party-members.less';
|
||||
@import './sheet.less';
|
||||
@import './inventory.less';
|
||||
@import './notes.less';
|
||||
|
|
@ -4,11 +4,17 @@
|
|||
|
||||
.application.sheet.daggerheart.actor.dh-style.party {
|
||||
.tab.inventory {
|
||||
padding-right: 0;
|
||||
.search-section {
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
.items-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
margin-top: 20px;
|
||||
padding-bottom: 4px;
|
||||
.with-scroll-shadows();
|
||||
|
|
|
|||
12
styles/less/sheets/actors/party/notes.less
Normal file
12
styles/less/sheets/actors/party/notes.less
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
@import '../../../utils/mixin.less';
|
||||
|
||||
.application.sheet.daggerheart.actor.dh-style.party {
|
||||
.tab.notes {
|
||||
padding: 16px 0 4px 15px;
|
||||
.editor-content {
|
||||
scrollbar-gutter: stable;
|
||||
padding-left: 8px;
|
||||
.with-scroll-shadows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
.application.sheet.daggerheart.actor.dh-style.party .tab.partyMembers {
|
||||
overflow: auto;
|
||||
.with-scroll-shadows();
|
||||
|
||||
.actors-list {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@
|
|||
flex: 1;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
margin-right: 2px;
|
||||
padding-right: 8px;
|
||||
|
||||
&.active {
|
||||
overflow: auto;
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
|
||||
data-group='{{tabs.features.group}}'>
|
||||
<div class="feature-section">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title=tabs.features.label
|
||||
type='feature'
|
||||
collection=@root.features
|
||||
hideContextMenu=true
|
||||
hideModifyControls=true
|
||||
canCreate=@root.editable
|
||||
showActions=@root.editable
|
||||
}}
|
||||
{{#each @root.features as |item|}}
|
||||
{{> 'daggerheart.inventory-item'
|
||||
item=item
|
||||
type='feature'
|
||||
actorType=@root.document.type
|
||||
hideContextMenu=true
|
||||
hideModifyControls=true
|
||||
showActions=@root.editable
|
||||
}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
data-tab='{{tabs.notes.id}}'
|
||||
data-group='{{tabs.notes.group}}'
|
||||
>
|
||||
<fieldset class="fit-height">
|
||||
<legend>{{localize tabs.notes.label}}</legend>
|
||||
{{formInput notes.field value=notes.value enriched=notes.enriched toggled=true}}
|
||||
</fieldset>
|
||||
{{formInput notes.field value=notes.value enriched=notes.enriched class="aaa" toggled=true}}
|
||||
|
||||
{{#if (and showAttribution document.system.attribution.artist)}}
|
||||
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
||||
|
|
|
|||
|
|
@ -4,14 +4,15 @@
|
|||
data-group='{{tabs.features.group}}'
|
||||
>
|
||||
<div class="feature-section">
|
||||
{{> 'daggerheart.inventory-items'
|
||||
title=tabs.features.label
|
||||
type='feature'
|
||||
collection=@root.features
|
||||
hideContextMenu=true
|
||||
hideModifyControls=true
|
||||
canCreate=@root.editable
|
||||
showActions=@root.editable
|
||||
}}
|
||||
{{#each @root.features as |item|}}
|
||||
{{> 'daggerheart.inventory-item'
|
||||
item=item
|
||||
type='feature'
|
||||
actorType=@root.document.type
|
||||
hideContextMenu=true
|
||||
hideModifyControls=true
|
||||
showActions=@root.editable
|
||||
}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -3,10 +3,7 @@
|
|||
data-tab='{{tabs.notes.id}}'
|
||||
data-group='{{tabs.notes.group}}'
|
||||
>
|
||||
<fieldset class="fit-height">
|
||||
<legend>{{localize tabs.notes.label}}</legend>
|
||||
{{formInput notes.field value=notes.value enriched=notes.value toggled=true}}
|
||||
</fieldset>
|
||||
{{formInput notes.field value=notes.value enriched=notes.value toggled=true}}
|
||||
|
||||
{{#if (and showAttribution document.system.attribution.artist)}}
|
||||
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,5 @@
|
|||
data-tab='{{tabs.notes.id}}'
|
||||
data-group='{{tabs.notes.group}}'
|
||||
>
|
||||
<fieldset class="fit-height">
|
||||
<legend>{{localize tabs.notes.label}}</legend>
|
||||
{{formInput notes.field value=notes.value enriched=notes.value toggled=true}}
|
||||
</fieldset>
|
||||
{{formInput notes.field value=notes.value enriched=notes.value toggled=true}}
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue