_panel-heading.scss 1.77 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

.collapsible legend h4,
.collapsible legend h3,
.panel-heading {
    position: relative;
    display: block;
    font-family: $font-family-sans-serif;
    p {
        margin:0;
    }

    &.has-link {
        padding: 0;
        h4 {
            padding: 0;
            margin: 0;
        }
    }
19
20
21
    .icon {
        color: $link-color;
    }
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
    // by default links in headings get display: block and padding.
    // Use .secondary-link if you don't want this behaviour
    a:not(.secondary-link) {
        display: block;
        color: inherit;
        padding: 10px 15px;

        .panel-secondary > & {
            padding: 10px 8px;
        }

        &.collapsed {
            color: $mahara-green;
            padding: 10px 15px;
            .panel-secondary > & {
                padding: 10px 8px;
            }
        }
        &:hover, &:focus {
            background-color: none;
            text-decoration: none;
        }
        .pieform > .collapsible-group:first-child &,
        .panel.first & {
            @include border-top-radius(3px);
        }
    }
    .help a { //fix css on contextual help icons
        padding: 0;
        &:hover {
Evonne Cheung's avatar
Evonne Cheung committed
52
            background: none;
53
54
55
56
        }
    }
}

Evonne Cheung's avatar
Evonne Cheung committed
57
58
59
60
61
62
63
64
65
.panel-heading {
    @include border-top-radius(0);

    .metadata {
        color: #eef3e9;
        font-size: 11px;
        margin-top: 5px;
    }
}
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81

.panel-small .panel-heading {
    font-size: 12px;
    padding-right:40px;
    h4 {
        font-size: 12px;
    }
}

.panel-heading .btn-link {
    &:hover{
        .icon {
            color: $link-color;
        }
    }
}
Evonne Cheung's avatar
Evonne Cheung committed
82
83
84
85
86
87
88
89
90
91
92
93
94
95

.panel-default > .panel-heading {
    border-bottom: 0;
    background-color: $mahara-green;
    color: #FFFFFF;

    .help a .icon {
        color: $mahara-green-lime;
    }

    a {
        color: #FFFFFF;
    }
}