mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 10:05:40 +08:00
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).
104 lines
1.7 KiB
SCSS
Vendored
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;
|
|
}
|
|
}
|