Tweak the template/css structure
This commit is contained in:
parent
1afffb0a73
commit
56fe115407
24 changed files with 10 additions and 7 deletions
109
templates/Apps/HeroSkillsCardV1/content.hbs
Normal file
109
templates/Apps/HeroSkillsCardV1/content.hbs
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
<div class="HeroSkillsCardV1">
|
||||
<div class="label col-header list-header gait-skills-header">
|
||||
<span>{{ rc-i18n "RipCrypt.Apps.grit-skills" }}</span>
|
||||
<span class="small">{{ rc-i18n "RipCrypt.common.rank" }}</span>
|
||||
</div>
|
||||
<ol class="num-before skill-list even grit-skills">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ol>
|
||||
|
||||
<div class="label col-header list-header gait-skills-header">
|
||||
<span>{{ rc-i18n "RipCrypt.Apps.gait-skills" }}</span>
|
||||
<span class="small">{{ rc-i18n "RipCrypt.common.rank" }}</span>
|
||||
</div>
|
||||
<ol class="num-before skill-list even gait-skills">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ol>
|
||||
|
||||
<div class="label col-header list-header grip-skills-header">
|
||||
<span>{{ rc-i18n "RipCrypt.Apps.grip-skills" }}</span>
|
||||
<span class="small">{{ rc-i18n "RipCrypt.common.rank" }}</span>
|
||||
</div>
|
||||
<ol class="num-before skill-list odd grip-skills">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ol>
|
||||
|
||||
<div class="label col-header list-header glim-skills-header">
|
||||
<span>{{ rc-i18n "RipCrypt.Apps.glim-skills" }}</span>
|
||||
<span class="small">{{ rc-i18n "RipCrypt.common.rank" }}</span>
|
||||
</div>
|
||||
<ol class="num-before skill-list odd glim-skills">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ol>
|
||||
|
||||
<div class="label col-header list-header">
|
||||
<span>{{ rc-i18n "RipCrypt.common.gear" }}</span>
|
||||
<span class="small">{{ rc-i18n "RipCrypt.common.slot" }}</span>
|
||||
</div>
|
||||
<ol class="num-after gear-list">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ol>
|
||||
|
||||
<div class="currencies">
|
||||
<div class="currency half-pill">
|
||||
<{{{ifThen meta.editable "label" "div" }}}
|
||||
for="{{meta.idp}}-gold"
|
||||
class="label"
|
||||
>
|
||||
{{ rc-i18n "RipCrypt.common.currency.gold"}}
|
||||
</{{{ifThen meta.editable "label" "div" }}}>
|
||||
<input
|
||||
type="number"
|
||||
id="{{meta.idp}}-gold"
|
||||
class="input"
|
||||
value="0"
|
||||
>
|
||||
</div>
|
||||
<div class="currency half-pill">
|
||||
<{{{ifThen meta.editable "label" "div" }}}
|
||||
for="{{meta.idp}}-silver"
|
||||
class="label"
|
||||
>
|
||||
{{ rc-i18n "RipCrypt.common.currency.silver"}}
|
||||
</{{{ifThen meta.editable "label" "div" }}}>
|
||||
<input
|
||||
type="number"
|
||||
id="{{meta.idp}}-silver"
|
||||
class="input"
|
||||
value="0"
|
||||
>
|
||||
</div>
|
||||
<div class="currency half-pill">
|
||||
<{{{ifThen meta.editable "label" "div" }}}
|
||||
for="{{meta.idp}}-copper"
|
||||
class="label"
|
||||
>
|
||||
{{ rc-i18n "RipCrypt.common.currency.copper"}}
|
||||
</{{{ifThen meta.editable "label" "div" }}}>
|
||||
<input
|
||||
type="number"
|
||||
id="{{meta.idp}}-copper"
|
||||
class="input"
|
||||
value="0"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
121
templates/Apps/HeroSkillsCardV1/style.css
Normal file
121
templates/Apps/HeroSkillsCardV1/style.css
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
.ripcrypt .HeroSkillsCardV1 {
|
||||
|
||||
/* Foundry Variable Tweaks */
|
||||
--input-height: 1rem;
|
||||
--col-gap: 8px;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
grid-template-rows: repeat(13, minmax(0, 1fr));
|
||||
column-gap: var(--col-gap);
|
||||
|
||||
background: var(--base-background);
|
||||
color: var(--base-text);
|
||||
|
||||
.col-header {
|
||||
background: var(--section-header-background);
|
||||
color: var(--section-header-text);
|
||||
}
|
||||
.row-alt {
|
||||
background: var(--alt-row-background);
|
||||
color: var(--alt-row-text);
|
||||
}
|
||||
|
||||
label, .label {
|
||||
box-sizing: border-box;
|
||||
padding: 2px 4px;
|
||||
text-transform: uppercase;
|
||||
font-size: var(--font-size-14);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.list-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.skill-list {
|
||||
display: grid;
|
||||
grid-template-rows: subgrid;
|
||||
|
||||
& > li {
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
&.even > :nth-child(even),
|
||||
&.odd > :nth-child(odd) {
|
||||
background: var(--alt-row-background);
|
||||
color: var(--alt-row-text);
|
||||
}
|
||||
}
|
||||
|
||||
.grit-skills {
|
||||
grid-column: 1 / span 1;
|
||||
grid-row: 2 / span 4;
|
||||
}
|
||||
|
||||
.gait-skills {
|
||||
grid-column: 2 / span 1;
|
||||
grid-row: 2 / span 4;
|
||||
}
|
||||
|
||||
.grip-skills-header {
|
||||
grid-column: 1 / span 1;
|
||||
grid-row: 6 / span 1;
|
||||
}
|
||||
.grip-skills {
|
||||
grid-column: 1 / span 1;
|
||||
grid-row: 7 / span 4;
|
||||
}
|
||||
|
||||
.glim-skills-header {
|
||||
grid-column: 2 / span 1;
|
||||
grid-row: 6 / span 1;
|
||||
}
|
||||
.glim-skills {
|
||||
grid-column: 2 / span 1;
|
||||
grid-row: 7 / span 4;
|
||||
}
|
||||
|
||||
.gear-list {
|
||||
grid-row: span 12;
|
||||
display: grid;
|
||||
grid-template-rows: subgrid;
|
||||
list-style-type: none;
|
||||
|
||||
> :nth-child(even) {
|
||||
background: var(--alt-row-background);
|
||||
color: var(--alt-row-text);
|
||||
}
|
||||
}
|
||||
|
||||
.currencies {
|
||||
grid-column: 1 / span 2;
|
||||
grid-row: 13 / span 1;
|
||||
display: grid;
|
||||
column-gap: var(--col-gap);
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
|
||||
.currency {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
|
||||
align-items: center;
|
||||
background: var(--section-header-background);
|
||||
color: var(--section-header-text);
|
||||
--input-background: var(--base-background);
|
||||
--input-text: var(--base-text);
|
||||
|
||||
.input {
|
||||
margin: 2px;
|
||||
border-radius: 999px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.half-pill {
|
||||
border-radius: 0 999px 999px 0;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue