summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/scss/themes/theme_basic.scss
blob: d65ea077f5f18473328caabdbcb5a3c294f7c60b (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

// TODO remove in master
// Themes scss have to use bg-variant and text-emphasis-variant mixins of BS4
// to properly work. That use was introduced as a fix in 12.0... but the BS4
// mixins are unavailable in the mailing assets. As a stable fix cannot
// introduce static code which requires an XML update to not crash, the mixins
// were duplicated here instead.
@mixin bg-variant($parent, $color) {
    #{$parent} {
        background-color: $color !important;
    }
    a#{$parent},
    button#{$parent} {
        &:hover, &:focus {
            background-color: darken($color, 10%) !important;
        }
    }
}
@mixin text-emphasis-variant($parent, $color) {
    #{$parent} {
        color: $color !important;
    }
    a#{$parent} {
        &:hover, &:focus {
            color: darken($color, 10%) !important;
        }
    }
}

// ============================
// Mass Mailing "Theme Basic"
// ============================

// ===== Layout =====
.o_basic_theme {
    &.o_layout {
        margin: 0;
        padding: 0;
        background-color: white;

        &, p, h1, h2, h3, h4, h5, h6, span, ul, ol {
            color: black;
        }

        p {
            font-size: 13px;
            margin-bottom: 0px;
        }

        ul, ol {
            margin: 0;
        }
    }
}