aboutsummaryrefslogtreecommitdiff
path: root/frontend/styles/ui/modal.sass
blob: 9ad04a7bd21836249ce3f1104254572105470862 (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
49
50
51
52
53
54
55
56
57
@use '../colors'

$transition-duration: 0.15s

.g-Modal
    width: 100vw
    height: 100vh
    position: fixed
    top: 0
    left: 0
    display: flex
    justify-content: center
    align-items: center
    z-index: 1000 // To be over leaflet
    color: black
    background-color: rgba(0, 0, 0, 0.5)

    &--Danger
        .g-Modal__Content
            border-left: 5px solid colors.$red

    &__Content
        position: relative
        background-color: white
        width: 50%
        min-width: 400px
        max-width: 600px
        border-radius: 0.2rem
        line-height: normal
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8)

    &__Header
        display: flex
        justify-content: space-between
        align-items: center
        padding: 1rem 2rem
        border-bottom: 1px solid #EEE
        font-weight: bold

    &__Body
        padding: 2rem
        max-height: 50vh
        overflow-y: scroll

    &__Close
        cursor: pointer
        font-weight: bold
        border-radius: 50%
        border: 1px solid #EEE
        background-color: transparent
        width: 3rem
        height: 3rem
        font-size: 1.7rem
        flex-shrink: 0

    &__Close:hover, &__Close:focus
        background-color: #EEE