summaryrefslogtreecommitdiff
path: root/addons/website/static/src/snippets/s_google_map/000.scss
blob: 9a8df7327751d2257163bfda1b9b167b2bd22a4d (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

$s-google-map-desc-bg: theme-color('primary') !default;
$s-google-map-desc-alpha: 0.80 !default;
$s-google-map-desc-hover-bg: theme-color('primary') !default;
$s-google-map-desc-hover-alpha: 0.55 !default;

.s_google_map {
    position: relative;
    min-height: 100px;

    .map_container {
        @include o-position-absolute(0, 0, 0, 0);
    }
    .description {
        @include o-position-absolute(auto, 0, 0, 0);
        z-index: 99;
        padding: 0 1em;
        background: rgba($s-google-map-desc-bg, $s-google-map-desc-alpha);
        color: color-yiq(rgba($s-google-map-desc-bg, $s-google-map-desc-alpha));
        transition: background-color 250ms ease;

        font {
            float: left;
            margin-top: 20px;
            margin-bottom: 15px;
            font-weight: bold;
            text-transform: uppercase;
        }
        span {
            float: left;
            text-transform: none;
            font-weight: normal;
            margin-top: 20px;
            margin-left: 10px;
        }
    }
    &:hover .description {
        background: $s-google-map-desc-hover-bg;
        background: rgba($s-google-map-desc-hover-bg, $s-google-map-desc-hover-alpha);
        color: color-yiq(rgba($s-google-map-desc-hover-bg, $s-google-map-desc-hover-alpha));
    }
}