lbry-desktop/ui/scss/component/_nudge.scss
2021-04-27 11:20:41 -04:00

43 lines
825 B
SCSS

.nudge {
z-index: 3;
position: absolute;
top: 4rem;
white-space: normal;
overflow: visible;
padding: var(--spacing-m);
border-radius: var(--border-radius);
box-shadow: var(--card-box-shadow);
background-color: var(--color-secondary);
color: var(--color-white);
font-weight: bold;
.button--close {
.icon {
stroke: var(--color-white);
}
}
@media (min-width: $breakpoint-small) {
top: calc(var(--height-button) + var(--spacing-s));
}
&::after {
content: '';
position: absolute;
height: 1rem;
width: 1rem;
top: -0.5rem;
left: 1rem;
transform: rotate(45deg);
background-color: var(--color-secondary);
}
}
.nudge__wrapper {
width: 10rem;
margin-right: var(--spacing-m);
@media (min-width: $breakpoint-small) {
width: 12.5rem;
}
}