Skip to content

Commit

Permalink
feat(sheet) - change skill order
Browse files Browse the repository at this point in the history
  • Loading branch information
Armaklan authored and mattraykowski committed Jun 7, 2022
1 parent ff935e6 commit 31dc0fc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 50 deletions.
50 changes: 23 additions & 27 deletions css/svnsea2e.css
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ input[type='range']::-webkit-slider-thumb {
border: 0;
}

.dialog .roll-dialog input[type="number"] {
.dialog .roll-dialog input[type='number'] {
max-width: 3rem;
text-align: center;
}
Expand Down Expand Up @@ -614,6 +614,8 @@ input[type='range']::-webkit-slider-thumb {
}

.svnsea2e .tabs .item {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
font-weight: bold;
text-transform: uppercase;
Expand All @@ -626,8 +628,6 @@ input[type='range']::-webkit-slider-thumb {
padding: 4px;
margin: 4px 4px 0 4px;
background: #143a54;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}

Expand All @@ -645,29 +645,6 @@ input[type='range']::-webkit-slider-thumb {
color: #000;
}

.sheet {
/*.favor input[type="text"],
.trait input[type="text"],
.skill input[type="text"] {
text-align: center;
border-radius: $circle-size;
height: $circle-size;
max-width: $circle-size;
padding: $padding-sm;
background: white;
border: $brd-s-md-dk;
}
.sheet-header .favor,
.sheet-header .trait,
.skills .skill,
.traits .trait {
background-image: linear-gradient(to right, $g-c-dk 90%, $g-c-lt 10%);
padding: 0;
border-radius: $circle-size;
}*/
}

.sheet img {
border: 0 solid transparent;
}
Expand Down Expand Up @@ -754,7 +731,8 @@ input[type='range']::-webkit-slider-thumb {
text-align: right;
}

.sheet .sheet-header .herospts, .sheet .sheet-header .wealth {
.sheet .sheet-header .herospts,
.sheet .sheet-header .wealth {
max-width: 30px;
margin-right: 10px;
}
Expand Down Expand Up @@ -902,6 +880,24 @@ input[type='range']::-webkit-slider-thumb {
text-shadow: none;
}

.sheet .skills {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 140px;
gap: 4px;
}

.sheet .skill {
height: 19px;
}

.actor .sheet-header {
-webkit-box-flex: 0;
-ms-flex: 0 0 195px;
Expand Down
33 changes: 12 additions & 21 deletions scss/components/_sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,27 +182,6 @@ nav.sheet-tabs {
}
}

/*.favor input[type="text"],
.trait input[type="text"],
.skill input[type="text"] {
text-align: center;
border-radius: $circle-size;
height: $circle-size;
max-width: $circle-size;
padding: $padding-sm;
background: white;
border: $brd-s-md-dk;
}
.sheet-header .favor,
.sheet-header .trait,
.skills .skill,
.traits .trait {
background-image: linear-gradient(to right, $g-c-dk 90%, $g-c-lt 10%);
padding: 0;
border-radius: $circle-size;
}*/

.favor-label,
.skill-name,
.trait-name {
Expand All @@ -220,3 +199,15 @@ nav.sheet-tabs {
.brute h2.ability-title {
text-shadow: none;
}

.skills {
display: flex;
flex-wrap: wrap;
flex-direction: column;
height: 140px;
gap: 4px;
}

.skill {
height: 19px;
}
4 changes: 2 additions & 2 deletions templates/actors/parts/actor-traits.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3 class="trait-title">{{localize "SVNSEA2E.Traits"}}</h3>
</div>
{{#if hasSkills}}
<h3 class="skill-title">{{localize "SVNSEA2E.Skills"}}</h3>
<div class="skills grid grid-3col">
<div class="skills">
{{#each skills as |skill key|}}
<div class="skill flexrow flex-group flex-left">
<span class="skill-name rollable" data-roll="{{skill.value}}" data-label="{{skill.name}}">
Expand All @@ -39,7 +39,7 @@ <h3 class="skill-title">{{localize "SVNSEA2E.Skills"}}</h3>
</div>
{{/each}}
</div>
<div class="skills grid grid-3col">
<div class="skills-comment grid grid-3col">
<div class="skill flexrow flex-group flex-left">{{localize "SVNSEA2E.SkillRank3"}}</div>
<div class="skill flexrow flex-group flex-left">{{localize "SVNSEA2E.SkillRank4"}}</div>
<div class="skill flexrow flex-group flex-left">{{localize "SVNSEA2E.SkillRank5"}}</div>
Expand Down

0 comments on commit 31dc0fc

Please sign in to comment.