summaryrefslogtreecommitdiff
path: root/Pages/Upload.razor.css
blob: d510bc627e273b3f5d576b8fe397b74ea68c0f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
div#dropzone {
    border-radius: 10px;
    border:        3px dashed #aaa;
    cursor:        pointer;
    height:        400px;
    left:          50%;
    position:      relative;
    top:           50%;
    transform:     translate(-50%, -50%);
    transition:    border-color 0.1s linear;
    width:         min(700px, 85%);
}

div#dropzone p {
    color:      #aaa;
    display:    inline-block;
    left:       50%;
    margin:     0;
    position:   relative;
    text-align: center;
    top:        50%;
    transform:  translate(-50%, -50%);
}

div#dropzone p::before {
    content:     "Drag a file to upload it\Aor click to select one or more file(s)";
    white-space: pre;
}

@media (hover: none) and (pointer: coarse) {
    div#dropzone p::before {
        content: "Tap to select a file to upload";
    }
}

div#dropzone input {
    display: none;
}

@media (hover: hover) {
    div#dropzone.hover, div#dropzone:hover {
        border: 3px dashed white;
    }

    div#dropzone.hover p, div#dropzone:hover p {
        color: white;
    }
}