Desktop: drag and drop photos into the post form
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -103,6 +103,28 @@ select.f-m-field::selection { background: transparent; }
|
||||
}
|
||||
.f-img-upload-label:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), .05); color: var(--teal); }
|
||||
.f-img-input { display: none; }
|
||||
.f-img-upload-text {
|
||||
display: flex; flex-direction: column; align-items: center; gap: 4px;
|
||||
text-align: center;
|
||||
}
|
||||
.f-img-upload-sub { font-size: .75rem; opacity: .8; }
|
||||
|
||||
/* Перетаскивание фото (десктоп): над зоной файл — пунктир окрашивается,
|
||||
поле подсвечивается и чуть «приподнимается», превью приглушаются,
|
||||
чтобы взгляд шёл на место, куда отпустить файл. */
|
||||
.f-img-drop-zone .f-img-upload-label {
|
||||
transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s;
|
||||
}
|
||||
.f-img-drop-zone.is-dragover .f-img-upload-label {
|
||||
border-color: var(--teal);
|
||||
border-style: solid;
|
||||
background: rgba(var(--teal-rgb), .1);
|
||||
color: var(--teal);
|
||||
font-weight: 600;
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .15);
|
||||
}
|
||||
.f-img-drop-zone.is-dragover .f-img-grid { opacity: .55; transition: opacity .2s; }
|
||||
|
||||
/* Profile Photo Preview */
|
||||
.f-img-preview-wrap {
|
||||
|
||||
Reference in New Issue
Block a user