soapbox/app/styles/components/spoiler-button.scss

52 wiersze
803 B
SCSS
Czysty Zwykły widok Historia

2020-06-03 02:11:01 +00:00
.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;
}
2020-06-03 02:11:01 +00:00
&__overlay {
display: block;
background: transparent;
width: 100%;
height: 100%;
border: 0;
&__label {
display: inline-block;
2020-06-08 00:42:53 +00:00
background: var(--accent-color--faint);
2020-06-03 02:11:01 +00:00
border-radius: 8px;
padding: 8px 12px;
color: var(--primary-text-color);
font-weight: 500;
font-size: 14px;
}
&:hover,
&:focus,
&:active {
.spoiler-button__overlay__label {
2020-06-08 00:42:53 +00:00
background: var(--accent-color--med);
2020-06-03 02:11:01 +00:00
}
}
}
}