_card-header.scss 6.8 KB
Newer Older
Evonne Cheung's avatar
Evonne Cheung committed
1 2
.collapsible legend h4,
.collapsible legend h3,
3
.card-header {
Evonne Cheung's avatar
Evonne Cheung committed
4 5
    &.has-link {
        a .icon {
6
            color: $theme-primary-color;
Evonne Cheung's avatar
Evonne Cheung committed
7 8 9 10
        }
    }
    .metadata {
        margin-top: 3px;
11 12
        @include media-breakpoint-up(md) {
          @include media-breakpoint-down(lg) {
Evonne Cheung's avatar
Evonne Cheung committed
13 14
            float: none !important;
            font-size: 11px;
15
          }
Evonne Cheung's avatar
Evonne Cheung committed
16 17
        }
    }
18 19 20
}


21
// custom block heading
22 23
.column-layout {
    &:nth-child(3n+1) {
Evonne Cheung's avatar
Evonne Cheung committed
24
        .card-secondary {
25
            &:nth-child(5n+1) > .card-header, .card-header-nested {
26
                background-color: scale-color($theme-primary-color, $lightness: 10%);
27 28
                color: #FFFFFF;
            }
29
            &:nth-child(5n+2) > .card-header, .card-header-nested {
30
                background-color: $theme-accent-color;
31 32
                color: #FFFFFF;
            }
33
            &:nth-child(5n+3) > .card-header, .card-header-nested {
34
                background-color: $theme-accent-color-two;
35 36
                color: #FFFFFF;
            }
37
            &:nth-child(5n+4) > .card-header, .card-header-nested {
38
                background-color: $theme-secondary-color;
39 40
                color: #FFFFFF;
            }
41
            &:nth-child(5n+5) > .card-header, .card-header-nested {
42
                background-color: $theme-accent-color-three;
43 44 45 46 47
                color: #FFFFFF;
            }
        }
    }
    &:nth-child(3n+2) {
Evonne Cheung's avatar
Evonne Cheung committed
48
        .card-secondary {
49
            &:nth-child(5n+1) > .card-header, .card-header-nested {
50
                background-color: $theme-accent-color-two;
51 52
                color: #FFFFFF;
            }
53
            &:nth-child(5n+2) > .card-header, .card-header-nested {
54
                background-color: $theme-secondary-color;
55 56
                color: #FFFFFF;
            }
57
            &:nth-child(5n+3) > .card-header, .card-header-nested {
58
                background-color: $theme-accent-color-three;
59 60
                color: #FFFFFF;
            }
61
            &:nth-child(5n+4) > .card-header, .card-header-nested {
62
                background-color: scale-color($theme-primary-color, $lightness: 10%);
63 64
                color: #FFFFFF;
            }
65
            &:nth-child(5n+5) > .card-header, .card-header-nested {
66
                background-color: $theme-accent-color;
67 68 69 70 71
                color: #FFFFFF;
            }
        }
    }
    &:nth-child(3n+3) {
Evonne Cheung's avatar
Evonne Cheung committed
72
        .card-secondary {
73
            &:nth-child(5n+1) > .card-header, .card-header-nested {
74
                background-color: $theme-accent-color-three;
75 76
                color: #FFFFFF;
            }
77
            &:nth-child(5n+2) > .card-header, .card-header-nested {
78
                background-color: scale-color($theme-primary-color, $lightness: 10%);
79 80
                color: #FFFFFF;
            }
81
            &:nth-child(5n+3) > .card-header, .card-header-nested {
82
                background-color: $theme-accent-color;
83 84
                color: #FFFFFF;
            }
85
            &:nth-child(5n+4) > .card-header, .card-header-nested {
86
                background-color: $theme-accent-color-two;
87 88
                color: #FFFFFF;
            }
89
            &:nth-child(5n+5) > .card-header, .card-header-nested {
90
                background-color: $theme-secondary-color;
91 92 93 94 95 96
                color: #FFFFFF;
            }
        }
    }
}

97 98
.card {
    .card-header:before {
Evonne's avatar
Evonne committed
99
        @include fonttype(solid);
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
        color: rgba(255, 255, 255, 0.6);
        padding-right: 5px;
    }
    // custom icons to some blocks
    &.bt-newviews .card-header:before {
        content: fa-content($fa-var-bullhorn);
    }
    &.bt-inbox .card-header:before {
        content: fa-content($fa-var-inbox);
    }
    &.bt-myviews .card-header:before {
        content: fa-content($fa-var-file);
    }
    &.bt-filedownload .card-header:before {
        content: fa-content($fa-var-download);
    }
    &.bt-folder .card-header:before {
        content: fa-content($fa-var-folder);
    }
    &.bt-gallery .card-header:before {
        content: fa-content($fa-var-images);
    }
    &.bt-internalmedia .card-header:before {
        content: fa-content($fa-var-video);
    }
    &.bt-pdf .card-header:before {
        content: fa-content($fa-var-file-pdf);
    }
    &.bt-html .card-header:before {
        content: fa-content($fa-var-code);
    }
    &.bt-blog .card-header:before {
        content: fa-content($fa-var-pen);
    }
    &.bt-blogpost .card-header:before {
        content: fa-content($fa-var-file-alt);
    }
    &.bt-recentposts .card-header:before {
        content: fa-content($fa-var-clock);
    }
    &.bt-taggedposts .card-header:before {
        content: fa-content($fa-var-tags);
    }
    &.bt-comment .card-header:before {
        content: fa-content($fa-var-comment);
    }
    &.bt-annotation .card-header:before {
        content: fa-content($fa-var-sticky-note);
    }
    &.bt-creativecommons .card-header:before {
        content: fa-content($fa-var-creative-commons);
    }
    &.bt-navigation .card-header:before {
        content: fa-content($fa-var-location-arrow);
    }
    &.bt-plans .card-header:before {
        content: fa-content($fa-var-tasks);
    }
    &.bt-recentforumposts .card-header:before {
        content: fa-content($fa-var-comments);
    }
    &.bt-textbox .card-header:before {
        content: fa-content($fa-var-edit);
    }
    &.bt-profileinfo .card-header:before {
        content: fa-content($fa-var-address-card);
    }
    &.bt-socialprofile .card-header:before {
        content: fa-content($fa-var-thumbs-up);
    }
    &.bt-entireresume .card-header:before {
        content: fa-content($fa-var-star);
    }
    &.bt-resumefield .card-header:before {
        content: fa-content($fa-var-star);
    }
    &.bt-externalfeed .card-header:before {
        content: fa-content($fa-var-rss);
    }
    &.bt-externalvideo .card-header:before {
        content: fa-content($fa-var-youtube);
    }
    &.bt-googleapps .card-header:before {
        content: fa-content($fa-var-google);
    }
    &.bt-wall h3.card-header:before {
        content: fa-content($fa-var-quote-left);
    }
    &.bt-myfriends .card-header:before {
        content: fa-content($fa-var-user-friends);
    }
    &.bt-mygroups .card-header:before {
        content: fa-content($fa-var-users);
    }
    &.bt-image .card-header:before {
        content: fa-content($fa-var-image);
    }
    &.bt-text .card-header:before {
        content: fa-content($fa-var-font);
    }
    &.bt-watchlist .card-header:before {
        content: fa-content($fa-var-eye);
    }
    &.bt-peerassessment .card-header:before {
        content: fa-content($fa-var-list);
    }
    &.bt-signoff .card-header:before {
        content: fa-content($fa-var-signature);
    }
    &.bt-openbadgedisplayer .card-header:before {
        content: fa-content($fa-var-shield-alt);
    }
212
}
213
.card.card-regular .card-header:before {
Evonne's avatar
Evonne committed
214
    @include fonttype(regular);
215
}
216
.card.card-brand .card-header:before {
Evonne's avatar
Evonne committed
217
    @include fonttype(brands);
218
}