Files
roll20-character-sheets/Savage Worlds - Graph Paper/source/styles/_integrity.scss
T

123 lines
1.9 KiB
SCSS

.sheet-integrity {
display: flex;
align-items: center;
justify-content: space-between;
&__status {
width: 320px;
}
&__progress {
position: relative;
display: flex;
justify-content: flex-end;
background-color: $c-outline;
border-radius: 2px;
height: 8px;
width: 100%;
overflow: hidden;
&-fill {
background-color: $c-background-dark;
height: 100%;
width: 100%; // Default; will be overwritten!
transition: width .3s ease-in-out;
}
}
@for $i from 0 through 80 {
&__bar-width[value="#{$i}"] {
& ~ .sheet-integrity__progress-fill {
width: #{$i*4}px;
}
}
}
&__marker {
position: absolute;
top: 0;
background-color: $c-white;
width: 2px;
height: 10px;
transform: translateX(-50%);
&--70 {
left: 40px;
}
&--60 {
left: 80px;
}
&--50 {
left: 120px;
}
&--40 {
left: 160px;
}
&--30 {
left: 200px;
}
&--20 {
left: 240px;
}
&--10 {
left: 280px;
}
}
&__loss-effects {
display: flex;
align-items: center;
justify-content: space-between;
font-size: $fs-s;
margin: 8px 0;
height: 16px;
width: 100%;
> span {
display: block;
color: $c-text-gray;
font-weight: 500;
white-space: nowrap;
transition: color .3s ease-in-out;
}
input[type=checkbox]:checked + span {
color: $c-text-light;
}
}
&__hexfields {
display: flex;
align-items: center;
.sheet-large-label {
max-width: 83px;
}
.sheet-container {
position: relative;
}
.sheet-hexfield {
position: absolute;
bottom: -28px;
&--integrity-maximum {
right: -6px;
transform: translateX(-100%);
}
&--integrity-mod {
left: -5px;
transform: translateX(100%);
}
}
}
}