kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
52 wiersze
803 B
SCSS
52 wiersze
803 B
SCSS
.spoiler-button {
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
z-index: 100;
|
|
|
|
&--minified {
|
|
display: block;
|
|
left: 4px;
|
|
top: 4px;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
|
|
&--hidden {
|
|
display: none;
|
|
}
|
|
|
|
.svg-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
&__overlay {
|
|
display: block;
|
|
background: transparent;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
|
|
&__label {
|
|
display: inline-block;
|
|
background: var(--accent-color--faint);
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
color: var(--primary-text-color);
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
.spoiler-button__overlay__label {
|
|
background: var(--accent-color--med);
|
|
}
|
|
}
|
|
}
|
|
}
|