MDL-56004 theme: Add some BS2 compatibility to BS4.
[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 {
5 @extend .card;
6 @extend .card-block;
7}
8
9// Some things just got renamed.
10.img-responsive {
11 @extend .img-fluid;
12}
13
14.text-error {
15 @extend .text-danger;
16}
17
18.btn-default {
19 @extend .btn-secondary;
20}
21
22// Labels and badges.
23
24.label {
25 @extend .tag;
26 @include tag-variant($tag-default-bg);
27}
28
29.label-success {
30 @include tag-variant($tag-success-bg);
31}
32
33.label-info {
34 @include tag-variant($tag-info-bg);
35}
36
37.label-warning {
38 @include tag-variant($tag-warning-bg);
39}
40
41.label-important {
42 @include tag-variant($tag-danger-bg);
43}
44
45.badge {
46 @extend .tag;
47 @include tag-variant($tag-default-bg);
48 @include border-radius($font-size-root / 2);
49}
50
51.badge-success {
52 @include tag-variant($tag-success-bg);
53}
54
55.badge-info {
56 @include tag-variant($tag-info-bg);
57}
58
59.badge-warning {
60 @include tag-variant($tag-warning-bg);
61}
62
63.badge-important {
64 @include tag-variant($tag-danger-bg);
65}
66
67// Floats.
68.pull-left {
69 @include pull-left();
70}
71
72.pull-right {
73 @include pull-right();
74}