discourse/app/assets/stylesheets/common/components/gifs.scss
David Battersby 031e17658c
DEV: move discourse gifs to core (#40162)
Moves the theme component from Discourse Gifs and brings it into core as
an upcoming change. This PR also brings gifs under a single provider
(Klipy).
2026-06-10 11:35:44 +04:00

104 lines
1.7 KiB
SCSS
Vendored

.gifs-modal {
.d-modal__container {
--modal-max-width: 920px;
}
&__input {
background: var(--primary-very-low);
padding: 0.5em;
position: relative;
> input {
width: 100%;
margin-right: 1em;
margin-bottom: 0;
}
.spinner {
position: absolute;
right: 1.2em;
top: 0.9em;
}
}
&__content {
overflow-y: auto;
min-width: 320px;
max-height: 65vh;
margin-top: 0.5em;
@media screen and (width >= 768px) {
min-width: 650px;
}
@media screen and (width >= 1200px) {
min-width: 860px;
}
}
&__box {
.gifs-result-list {
position: relative;
.gifs-result {
position: absolute;
}
}
div.loading-container {
display: block;
height: 10px;
}
}
&__categories-header {
margin: 0.5em 0;
font-size: var(--font-0);
color: var(--primary-medium);
font-weight: normal;
}
&__loading-categories {
display: flex;
justify-content: center;
align-items: center;
min-height: 200px;
}
&__no-results {
padding: 3em 1em;
font-size: var(--font-up-2);
color: var(--primary-low-mid);
background: var(--primary-very-low);
font-weight: bold;
text-align: center;
}
}
.gifs-result {
&__img {
width: 100%;
height: auto;
cursor: pointer;
}
&--category {
.gifs-result__img {
object-fit: cover;
}
}
&__category-label {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 0.5em;
background: linear-gradient(transparent, rgb(0, 0, 0, 0.7));
color: white;
font-weight: bold;
font-size: var(--font-down-1);
text-align: center;
cursor: pointer;
}
}