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

202 lines
3.8 KiB
SCSS

.sheet-settings {
text-align: center;
padding-left: 64px;
&__page {
display: flex;
flex-direction: column;
align-items: flex-end;
text-align: left;
white-space: normal;
&-tab {
display: inline-block;
color: $c-text-lightest;
margin-bottom: 7px;
&::before,
&::after {
display: inline-block;
font-size: $fs-s;
font-weight: 500;
line-height: 15px;
height: 16px;
}
&::before {
content: attr(label);
}
&:not(:last-of-type)::after {
content: '|';
margin: 0 2px 0 4px;
}
&:checked::before {
color: $c-text-lighter;
}
&--styles {
&:not(:checked) ~ .sheet-settings__page--styles {
@extend %hide-disabled-settings-tab;
}
}
&--setup {
&:not(:checked) ~ .sheet-settings__page--setup {
@extend %hide-disabled-settings-tab;
}
}
&--blocks {
&:not(:checked) ~ .sheet-settings__page--blocks {
@extend %hide-disabled-settings-tab;
}
}
&--skills {
&:not(:checked) ~ .sheet-settings__page--skills {
@extend %hide-disabled-settings-tab;
}
}
&--help {
&:not(:checked) ~ .sheet-settings__page--help {
@extend %hide-disabled-settings-tab;
}
}
}
}
%hide-disabled-settings-tab {
display: none;
}
&__textarea-toggle {
&:not(:checked) + textarea {
display: none;
}
}
&__item {
user-select: none;
display: flex;
align-items: center;
width: 100%;
min-height: 16px;
&:not(:last-child) {
margin-bottom: 8px;
}
> span:first-of-type {
display: block;
flex-grow: 1;
color: $c-text-light;
font-size: $fs-s;
font-weight: 500;
line-height: 15px;
border-bottom: 1px dotted $c-outline;
margin-right: 12px;
height: 100%;
}
.sheet-checkbox {
margin-right: 4px;
}
&--text-input {
> span:first-of-type {
flex-grow: 0;
flex-shrink: 0;
margin-right: 0;
&::before {
content: '[';
}
&::after {
content: ']';
}
~ input[type=text] {
padding-left: 5px;
}
}
input[type=text] {
flex-grow: 1;
color: $c-text-light;
line-height: 15px;
border-bottom: 1px dotted $c-outline;
margin-right: 12px;
height: 16px;
width: auto;
&::placeholder {
font-size: $fs-s;
}
&:last-child {
margin-right: 26px;
}
+ span:last-of-type {
display: block;
flex-shrink: 0;
color: $c-text-lighter;
font-family: Pictos;
font-size: 11px;
margin: 0 4px 0 1px;
height: 16px;
width: 9px;
}
}
}
&--textarea {
flex-wrap: wrap;
textarea {
flex-basis: 100%;
background-color: $c-white;
font-size: $fs-s;
line-height: 16px;
padding: 4px;
border: 1px solid $c-outline;
border-radius: 2px;
height: 64px;
margin: 8px 4px 0 0;
transition: border-color .3s ease-in-out,
height .3s ease-in-out;
&:hover {
border-color: $c-background-dark;
}
&:focus {
border-color: $c-background-dark;
height: 192px;
}
}
}
&--help {
flex-wrap: wrap;
height: auto;
> span:first-of-type {
margin-right: 8px;
}
.sheet-bottom {
user-select: text;
flex-basis: 100%;
text-align: justify;
line-height: 1.6;
padding: 4px 0;
}
}
}
}