MDL-66999 theme_boost: @extend extends from bs2compat
[moodle.git] / theme / boost / scss / moodle / bs2-compat.scss
CommitLineData
08627190
DW
1// Some - backwards compatibility for BS2. We may have plugins and user content targeted for BS2.
2
3// Well -> Panel -> Card. We skipped panel (BS3) so lets just support well and card.
4.well {
2b34870d
BB
5 border: $border-width solid $border-color;
6 padding: $card-spacer-x;
08627190
DW
7}
8
9// Some things just got renamed.
10.img-responsive {
2b34870d 11 @include img-fluid;
08627190
DW
12}
13
14.text-error {
2b34870d 15 color: map-get($theme-colors, 'danger');
08627190
DW
16}
17
18.btn-default {
2b34870d 19 @include button-variant(map-get($theme-colors, 'secondary'), map-get($theme-colors, 'secondary'));
08627190
DW
20}
21
08627190 22.label {
2b34870d
BB
23 display: inline-block;
24 padding: $badge-padding-y $badge-padding-x;
25 @include font-size($badge-font-size);
26 font-weight: $badge-font-weight;
27 line-height: 1;
28 text-align: center;
29 white-space: nowrap;
30 vertical-align: baseline;
31 @include border-radius($badge-border-radius);
32 @include transition($badge-transition);
33 @include badge-variant($tag-default-bg);
08627190
DW
34}
35
36.label-success {
2b34870d 37 @include badge-variant($tag-success-bg);
08627190
DW
38}
39
40.label-info {
2b34870d 41 @include badge-variant($tag-info-bg);
08627190
DW
42}
43
44.label-warning {
2b34870d 45 @include badge-variant($tag-warning-bg);
08627190
DW
46}
47
48.label-important {
2b34870d 49 @include badge-variant($tag-danger-bg);
08627190
DW
50}
51
08627190
DW
52// Floats.
53.pull-left {
54 @include pull-left();
55}
56
57.pull-right {
58 @include pull-right();
59}