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

254 lines
3.9 KiB
SCSS

.sheet-extra {
width: 100%;
.sheet-buttons {
padding-bottom: 1px;
width: 100%;
> div {
margin-right: 8px;
}
}
.sheet-block {
margin-top: 16px;
}
.sheet-simple-trait {
&:not(:last-child) {
margin-right: 8px;
}
}
&-meta {
display: flex;
margin-bottom: 19px;
.sheet-meta-field:first-child {
flex-grow: 1;
}
.sheet-meta-field input[type=text].sheet-meta-field__input--name {
width: 100%;
}
}
.sheet-features {
margin-top: 16px;
}
.repcontainer {
&:empty ~ .repcontrol .repcontrol_add::before {
width: 474px;
}
}
.sheet-footer {
opacity: 0;
}
.sheet-quick-notes {
width: 100%;
margin-bottom: 16px;
span {
min-height: 32px;
}
textarea {
height: calc(100% - 16px);
}
}
}
.sheet-extra-attributes {
position: relative;
.sheet-container {
display: flex;
padding-top: 8px;
}
}
.sheet-extra-skills {
position: relative;
.sheet-container {
display: flex;
flex-wrap: wrap;
padding-top: 8px;
&::after {
content: '';
display: block;
flex-grow: 1000000;
}
}
&__selection-toggle {
&::after {
position: absolute;
top: 2px;
right: 20px;
display: block;
font-family: Pictos;
font-size: 10px;
line-height: 14px;
}
&:hover::after {
color: $c-text-light !important;
}
&:checked {
~ .sheet-container .sheet-simple-trait {
display: none;
}
~ .sheet-container {
justify-content: space-between;
}
&::after {
content: '3';
color: $c-text-light;
}
}
&:not(:checked) {
~ .sheet-container .sheet-extra-skills__toggle-label {
display: none;
}
&::after {
content: 'W';
color: $c-text-lightest;
}
}
}
&__toggle {
&-label {
flex-shrink: 0;
width: auto;
}
// Outer checkbox
&:not(:checked) + .sheet-simple-trait {
display: none;
}
// Inner checkbox
+ span {
user-select: none;
display: block;
color: $c-text-lightest;
font-size: 11px;
font-weight: 500;
line-height: 24px;
text-transform: capitalize;
white-space: nowrap;
padding: 0 4px;
}
&:hover + span {
color: $c-text-lighter;
}
&:checked + span {
color: $c-text;
}
}
}
.sheet-extra-secondary {
.sheet-container {
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 8px;
}
&__field {
flex-grow: 1;
width: auto;
&:not(:last-child) {
margin-right: 8px;
}
.sheet-label {
color: $c-text-lightest;
font-weight: 500;
line-height: 16px;
text-align: center;
text-transform: uppercase;
letter-spacing: -0.1px;
height: 16px;
}
}
input[type=text] {
line-height: 24px;
&::placeholder {
font-size: $fs-s;
line-height: 24px;
}
}
input[type=text].sheet-extra-secondary__input,
&__field > span {
display: block;
background-color: $c-white;
font-weight: 500;
text-align: center;
border: 1px solid $c-outline;
border-radius: 2px;
height: 24px;
width: 100%;
}
.sheet-simple-trait__expand {
border-color: $c-outline;
}
.sheet-divider {
border-right: 1px dotted $c-outline;
margin: 0 10px 0 2px;
height: 24px;
}
}
.sheet-extra-settings {
display: flex;
flex-wrap: wrap;
padding: 8px 0;
margin-top: 15px !important;
border-top: 1px dotted $c-outline;
&__item {
user-select: none;
line-height: 16px;
margin-bottom: 4px;
width: auto;
&:not(:last-child) {
margin-right: 8px;
}
span {
color: $c-text-gray;
font-size: $fs-s;
font-weight: 500;
white-space: nowrap;
}
}
input[type=checkbox]:checked {
~ span {
color: $c-text-lighter;
}
}
}