feat: компактный Index и крупные миниатюры (refs anton/api#283)
This commit is contained in:
1 parent
0274d5d921
commit
0f06a18622
4 files changed
+67
-4
No files matched your search
@@ -2771,4 +2771,25 @@ body:not(.theme-dark) .theme-light-hidden {
|
||||
.main-section {
|
||||
padding-top: 2svh !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* api#283: утверждённый первый экран с раскрытыми панелями Яндекса. */
|
||||
@media (max-width: 767.98px) {
|
||||
.index-mobile-fit { padding-top: 8px !important; }
|
||||
.index-mobile-fit #image-compare { width: 100%; container-type: inline-size; aspect-ratio: 1696 / 920; max-height: clamp(120px, calc(100svh - 440px), 240px); }
|
||||
/* Обе стороны одного масштаба и кадрирования при ограниченной высоте. */
|
||||
.index-mobile-fit #image-compare .icv__img { position: absolute; top: 0; bottom: 0; left: 0; width: 100cqw; height: 100%; object-fit: cover; object-position: center; }
|
||||
.index-mobile-fit #image-compare .icv__img-b { left: auto; right: 0; }
|
||||
.index-mobile-fit #image-compare.native-icv img { width: 100cqw !important; }
|
||||
.index-mobile-fit #dropzone-form[data-mobile-upload] { padding: 12px; margin-top: 12px; }
|
||||
.index-mobile-fit #dropzone-form[data-mobile-upload] .dropzone-form-icon img { width: 36px; height: 36px; }
|
||||
.index-mobile-fit #dropzone-form[data-mobile-upload] .dropzone-form-text { margin-top: 6px; }
|
||||
.index-mobile-fit #dropzone-form[data-mobile-upload] .dropzone-form-format { margin-top: 8px; }
|
||||
.index-mobile-fit #dropzone-form[data-mobile-upload] .dropzone-form-action { margin-top: 10px; }
|
||||
.index-mobile-fit .image-examples { max-width: min(100%, 50svh); margin: 12px auto 0; }
|
||||
.index-mobile-fit .image-examples-label { display: none; }
|
||||
.index-mobile-fit .image-examples-list { gap: 8px; }
|
||||
.index-mobile-fit .image-examples-item { flex-basis: calc((100% - 32px) / 5); min-width: 0; }
|
||||
.index-mobile-fit #image-compare .icv__label { top: 4px; bottom: auto; margin: 0; font: 600 9px/1.3 Inter, sans-serif; padding: 2px 5px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 5px; background: rgb(67 72 82 / 72%); color: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); text-shadow: 0 1px 1px rgb(0 0 0 / 35%); white-space: nowrap; }
|
||||
.index-mobile-fit #image-compare .icv__label-before { left: 24px; }
|
||||
.index-mobile-fit #image-compare .icv__label-after { right: 24px; }
|
||||
}
|
||||
Reference in new issue
Block a user