mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Remove fieldset from top level notes (#2048)
This commit is contained in:
parent
8c6a470d84
commit
2cc52fae1f
7 changed files with 49 additions and 23 deletions
|
|
@ -12,6 +12,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.daggerheart.dh-style {
|
.daggerheart.dh-style {
|
||||||
|
/** Not an actual scrollbar width (it can't be configured on all browsers) but actually a compensation value for scrollbar gutter purposes */
|
||||||
|
--scrollbar-width: 10px;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
scrollbar-color: light-dark(@dark-blue, @golden) transparent;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
@import '../utils/colors.less';
|
@import '../utils/colors.less';
|
||||||
@import '../utils/fonts.less';
|
@import '../utils/fonts.less';
|
||||||
|
@import '../utils/mixin.less';
|
||||||
|
|
||||||
.application.daggerheart {
|
.application.daggerheart {
|
||||||
prose-mirror {
|
prose-mirror {
|
||||||
|
|
@ -12,6 +13,7 @@
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
.editor-content {
|
.editor-content {
|
||||||
|
.with-scroll-shadows();
|
||||||
h1 {
|
h1 {
|
||||||
font-size: var(--font-size-32);
|
font-size: var(--font-size-32);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,37 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab.notes.active {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
margin-top: -10px; // will be removed once tab-navigation bottom margin is removed on all actor sheets
|
||||||
|
scrollbar-gutter: unset;
|
||||||
|
|
||||||
|
// Add padding around top level level prosemirrors used for note tabs
|
||||||
|
> prose-mirror {
|
||||||
|
@right-padding: calc(16px - var(--scrollbar-width));
|
||||||
|
.editor-content {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
padding-right: @right-padding;
|
||||||
|
}
|
||||||
|
&.inactive {
|
||||||
|
button.toggle {
|
||||||
|
top: 16px;
|
||||||
|
}
|
||||||
|
.editor-content {
|
||||||
|
padding: 16px @right-padding 4px 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.active {
|
||||||
|
padding: 8px 0 4px 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.artist-attribution {
|
||||||
|
padding-left: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.search-section {
|
.search-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
<section
|
<section
|
||||||
class='tab {{tabs.notes.cssClass}} {{tabs.notes.id}}'
|
class="tab {{tabs.notes.cssClass}} {{tabs.notes.id}}"
|
||||||
data-tab='{{tabs.notes.id}}'
|
data-tab="{{tabs.notes.id}}"
|
||||||
data-group='{{tabs.notes.group}}'
|
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}}
|
{{formInput notes.field value=notes.value enriched=notes.enriched toggled=true}}
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{#if (and showAttribution document.system.attribution.artist)}}
|
{{#if (and showAttribution document.system.attribution.artist)}}
|
||||||
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,7 @@
|
||||||
data-tab='{{tabs.notes.id}}'
|
data-tab='{{tabs.notes.id}}'
|
||||||
data-group='{{tabs.notes.group}}'
|
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}}
|
{{formInput notes.field value=notes.value enriched=notes.value toggled=true}}
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{#if (and showAttribution document.system.attribution.artist)}}
|
{{#if (and showAttribution document.system.attribution.artist)}}
|
||||||
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<section
|
<section
|
||||||
class='tab {{tabs.notes.cssClass}} {{tabs.notes.id}}'
|
class="tab {{tabs.notes.cssClass}} {{tabs.notes.id}}"
|
||||||
data-tab='{{tabs.notes.id}}'
|
data-tab="{{tabs.notes.id}}"
|
||||||
data-group='{{tabs.notes.group}}'
|
data-group="{{tabs.notes.group}}"
|
||||||
>
|
>
|
||||||
{{formInput notes.field value=notes.value enriched=notes.enriched toggled=true}}
|
{{formInput notes.field value=notes.value enriched=notes.enriched toggled=true}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
<section
|
<section
|
||||||
class='tab {{tabs.notes.cssClass}} {{tabs.notes.id}}'
|
class="tab {{tabs.notes.cssClass}} {{tabs.notes.id}}"
|
||||||
data-tab='{{tabs.notes.id}}'
|
data-tab="{{tabs.notes.id}}"
|
||||||
data-group='{{tabs.notes.group}}'
|
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}}
|
{{formInput notes.field value=notes.value enriched=notes.value toggled=true}}
|
||||||
</fieldset>
|
|
||||||
</section>
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue