Skip to content

Cosmetica drag & drop upload fix by perilstar

Details

Authorperilstar

LicenseNo License

Categorycosmetica.cc

Created

Updated

Size834 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Fixes drag & drop for Cosmetica.cc uploads

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Cosmetica drag & drop upload fix
@namespace      cinderwolf.net
@version        1.0.1
@description    Fixes drag & drop for Cosmetica.cc uploads
@author         Cinder
==/UserStyle== */
@-moz-document domain("cosmetica.cc") {
    .file-input-container input[type="file"] {
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        width: 100% !important;
        opacity: 0;
    }

    .file-input-container::before {
        position: absolute;
        top: -8px;
        left: -8px;
        height: calc(100% + 10px);
        width: calc(100% + 10px);
        border: 3px dashed var(--accent-color);
        content: '';
        opacity: 100%;
        background-color: #00000020;
    }

    .file-input-container {
        overflow: visible !important;
    }
}

Reviews

No reviews yet.