aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/MapBox/MapBox.scss
blob: fb15520f67f1015fe7864b34480ae077411f7f3e (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@import "../../global/globalCssVariables.scss";
.mapBox {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;

        .mapBox-infoWindow {
            background-color: white;
            opacity: 0.75;
            padding: 12; 
            font-size: 17;
        }

        .mapBox-overlayButton-sidebar {
            background: #121721;
            height: 25px;
            width: 25px;
            right: 5px;
            display: flex;
            position: absolute;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            pointer-events: all;
            z-index: 1; // so it appears on top of the document's title, if shown
    
            box-shadow: $standard-box-shadow;
            transition: 0.2s;
    
            &:hover{
                filter: brightness(0.85);
            }
        }

        .mapBox-wrapper {
            width: 100%;
            .mapBox-input {
                box-sizing: border-box;
                border: 1px solid transparent;
                width: 240px;
                height: 32px;
                padding: 0 12px;
                border-radius: 3px;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
                font-size: 14px;
                outline: none;
                text-overflow: ellipses;
                position: absolute;
                left: 50%;
                margin-left: -120px;
            }
        }

        .mapBox-sidebar-handle {
            top: 0;
            //top: calc(50% - 17.5px);  // use this to center vertically -- make sure it looks okay for slide views
            width: 10px;
            height: 100%;
            max-height: 35px;
            background: lightgray;
            border-radius: 20px;
            cursor:grabbing;
        }
        .mapBox-addMarker {
            left: 50%;
            margin-left: 120px;
            right: unset !important;
            margin-top: -10;
            height: max-content;
        }
        .searchbox {
            display:none;
        }
        .mapBox-addMarker {
            display:none;
        }
}

.mapBox:hover {
    .mapBox-addMarker {
        display:block;
    }
    .searchbox {
        display :block;
    }
}