discourse/app/assets/stylesheets/mobile/post-action-feedback.scss
Sam baa7c4cec7
FIX: allow styling of feedback on mobile (#25072)
(to test try using discourse-ai which displays feedback on mobile)


---------

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2023-12-30 08:57:16 +11:00

41 lines
853 B
SCSS

@keyframes d-toast-opening {
from {
transform: translateY(var(--transform-y, 10px));
}
}
.post-action-feedback-alert {
--transform-y: 0;
position: fixed;
top: calc(var(--header-offset) + 0.5rem);
left: 0;
right: 0;
margin-inline: 0.5rem;
z-index: z("max");
display: flex;
box-sizing: border-box;
padding: 1em 1.5em;
opacity: 1;
transition: opacity 0.5s;
border-radius: var(--d-border-radius);
color: var(--primary);
overflow: hidden;
background-color: var(--tertiary-very-low);
border: 1px solid var(--primary-low);
box-shadow: var(--shadow-menu-panel);
overflow-wrap: break-word;
animation: d-toast-opening 0.3s ease-in-out;
will-change: transform;
&.-fade-out {
opacity: 0;
}
}
@media (prefers-reduced-motion: no-preference) {
.post-action-feedback-alert {
--transform-y: 2vh;
}
}