79 lines
1.5 KiB
SCSS
79 lines
1.5 KiB
SCSS
.sheet-sans-tab-line {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
border-bottom: 1px dotted $c-outline;
|
|
height: 16px;
|
|
width: 266px;
|
|
}
|
|
|
|
.sheet-sans {
|
|
white-space: nowrap;
|
|
|
|
input[name=attr_sans_tabs] {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: inline-block;
|
|
|
|
&::after {
|
|
content: attr(label);
|
|
display: inline-block;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: $c-text-lightest;
|
|
font-size: $fs-s;
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
padding: 3px 6px 0;
|
|
border: 1px dotted transparent;
|
|
border-width: 1px 1px 0 1px;
|
|
border-radius: 2px;
|
|
height: 16px;
|
|
}
|
|
|
|
&:hover::after {
|
|
color: $c-text-lighter;
|
|
}
|
|
|
|
&:checked::after {
|
|
background-color: $c-white;
|
|
color: $c-text-light;
|
|
border-color: $c-outline;
|
|
}
|
|
}
|
|
|
|
input[name=attr_sans_tabs][value=skills] {
|
|
margin-left: 72px;
|
|
|
|
&:not(:checked) ~ .sheet-skills {
|
|
@extend %hide-disabled-tab;
|
|
}
|
|
}
|
|
|
|
input[name=attr_sans_tabs][value=advancements] {
|
|
&:not(:checked) ~ .sheet-advancements {
|
|
@extend %hide-disabled-tab;
|
|
}
|
|
}
|
|
|
|
input[name=attr_sans_tabs][value=notebook] {
|
|
&:not(:checked) ~ .sheet-notebook {
|
|
@extend %hide-disabled-tab;
|
|
}
|
|
|
|
~ .sheet-notebook {
|
|
height: calc(100% - 8px);
|
|
}
|
|
}
|
|
|
|
input[name=attr_sans_tabs][value=settings] {
|
|
&:not(:checked) ~ .sheet-settings {
|
|
@extend %hide-disabled-tab;
|
|
}
|
|
}
|
|
|
|
%hide-disabled-tab {
|
|
display: none;
|
|
}
|
|
}
|