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

324 lines
5.4 KiB
SCSS

.sheet-wildcard {
button.sheet-repitem__skill-roll--extra {
display: none;
}
}
.sheet-extra {
button.sheet-repitem__skill-roll--wildcard {
display: none;
}
}
fieldset,
.repcontainer {
padding: 6px 0;
min-height: 32px;
}
.repcontainer {
&:empty ~ .repcontrol .repcontrol_add::before {
content: '+ + +';
position: absolute;
top: -27px;
right: -16px;
background-color: $c-background-hover;
color: $c-text-lighter;
font-size: $fs-s;
line-height: 21px;
border-radius: 2px;
height: 20px;
width: 470px;
}
}
.repitem {
&:not(:first-child) {
margin-top: 4px;
}
input[type=text]::placeholder {
line-height: 20px;
}
}
.sheet-repitem {
position: relative;
background-color: $c-item;
border-radius: 2px;
width: 100%;
box-shadow: $shadow;
&:not(:last-child) {
margin-bottom: 4px;
}
button.sheet-repitem__skill-roll {
font-family: Pictos;
color: $c-text-light;
font-size: $fs-s;
height: 16px;
line-height: 15px;
margin-right: 4px !important;
}
&--full-field textarea {
font-size: $fs-s;
line-height: 16px;
padding: 2px 6px 2px;
min-height: 20px;
}
&__primary,
&__secondary {
display: flex;
align-items: center;
> input.sheet-stretch {
flex-grow: 1;
width: auto;
}
}
&__primary {
position: relative;
padding: 0 16px 0 6px;
height: 20px;
.sheet-toggle--note-box {
padding-right: 4px;
&::after {
padding-top: 0;
}
}
}
&__secondary {
padding-top: 1px;
height: 16px;
.sheet-toggle:not(:last-of-type) {
margin-right: 4px;
}
input[type=text]::placeholder {
line-height: 16px;
}
}
&__secondary,
&__frame {
color: $c-text-light;
font-size: 9px;
margin: 0 6px;
border-top: 1px dotted $c-outline;
input[type=text] {
color: $c-text-light;
font-size: 9px;
line-height: 16px;
&::placeholder {
font-size: 9px !important;
}
}
}
&__frame {
display: flex;
height: 64px;
&-silhouette {
background: {
repeat: no-repeat;
size: 80%;
position: center;
}
height: 100%;
width: 64px;
opacity: .25;
&-button {
height: 100% !important; // Overwrite Roll20!
width: 100%;
}
}
&-build {
flex-grow: 1;
margin-left: 8px;
height: 100%;
textarea {
padding-top: 6px;
height: 100%;
}
}
}
&__settings {
position: absolute;
bottom: 2px;
right: -1px;
z-index: 3;
background-color: $c-item;
padding: 4px 6px 0;
border: 1px solid #dbdbdb;
border-radius: 0 0 2px 2px;
border-width: 0 1px 1px;
width: calc(100% + 2px);
transform: translateY(100%);
&-content {
display: flex;
flex-wrap: wrap;
align-items: center;
border-top: 1px dotted $c-outline;
padding-top: 4px;
margin-top: -2px;
> label {
margin-bottom: 4px;
}
> :not(:last-child) {
margin-right: 4px;
}
}
}
&__label {
font-weight: 500;
margin: 0 4px 0 6px;
line-height: 16px;
&::after {
content: ':';
}
}
&__note-box {
position: absolute;
top: 4px;
right: -1px;
z-index: 3;
background-color: $c-item;
padding: 4px 6px;
border: 1px solid #dbdbdb;
border-radius: 2px 2px 0 0;
border-width: 1px 1px 0 1px;
width: calc(100% + 2px);
transform: translateY(-100%);
textarea {
border-bottom: 1px dotted $c-outline;
height: 60px;
}
}
.sheet-toggle--arrow {
&:not(:checked) ~ .sheet-repitem__weapons {
display: none;
}
}
&__subitem {
position: relative;
.sheet-repitem__primary,
input[type=text] {
font-size: 9px !important;
line-height: 16px;
height: 16px;
}
.sheet-repitem__note-box {
top: 2px;
padding: 4px 6px 2px;
}
}
.sheet-repitem__weapons {
.sheet-repitem__note-box {
right: -7px;
width: calc(100% + 14px);
}
.sheet-toggle {
&--arrow::after {
line-height: 16px;
margin: 1px 2px 0 0;
height: 16px;
width: 16px;
transform-origin: 7px 8px;
}
&--note-box::after {
padding-top: 1px;
}
}
}
&__weapons {
&-control {
&[value='0'] + .sheet-repitem__weapons {
display: none;
}
@for $i from 1 through 10 {
&[value='#{$i}'] + .sheet-repitem__weapons {
.sheet-repitem__subitem:nth-child(-n + #{$i+1}) {
@extend %show-weapon-row;
}
}
}
}
%show-weapon-row {
display: block;
}
.sheet-header {
border-bottom: 1px solid $c-outline;
&__labels {
padding-right: 30px;
width: 100%;
}
}
.sheet-repitem__subitem {
display: none;
&:not(.sheet-repitem__subitem--1) .sheet-repitem__primary {
border-top: 1px solid $c-outline;
}
}
.sheet-repitem__primary {
margin-right: 6px;
padding-right: 10px;
}
&-name {
flex-grow: 1;
text-align: left;
padding-left: 6px;
}
input[type=text].sheet-repitem__weapons-name {
padding-left: 0;
}
&-damage,
&-range {
width: 85px;
}
&-rof {
width: 30px;
}
}
}