Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/**
2
 Deprecations
3
 */
4
 
5
//
6
// Deprecation mixin.
7
//
1441 ariadna 8
@mixin deprecated-styles($deprecatedrule) {
1 efrain 9
    /* stylelint-disable declaration-no-important */
10
    body.behat-site &,
11
    body.behat-site#{&},
12
    body.themedesignermode &,
13
    body.themedesignermode#{&} {
14
        outline: 3px dotted $red !important;
15
        background-color: lighten($red, 50%) !important;
16
        &::before {
1441 ariadna 17
            content: "Deprecated style in use (#{$deprecatedrule})" !important;
1 efrain 18
            color: $red !important;
19
            font-size: smaller !important;
20
        }
21
    }
22
    /* stylelint-enable */
23
}
24
 
25
//
26
// Deprecated styles.
27
//
28
 
29
// All deprecated styles should include "deprecated-styles" mixin.
30
// Example:
31
// .foo {
32
//     .bar {
33
//         color: $blue;
34
//         @include deprecated-styles();
35
//     }
36
//     color: $red;
37
//     @include deprecated-styles();
38
// }
39
 
40
//
1441 ariadna 41
// Deprecated since Moodle 5.0.
1 efrain 42
//
43
 
1441 ariadna 44
// In 6.0 all YUI section spinners wont be needed.
45
.course-content .stateready .section .spinner {
46
    @include deprecated-styles(".course-content .stateready .section .spinner");
47
    display: none;
1 efrain 48
}
1441 ariadna 49
 
50
// TODO: MDL-84465 Final deprecation in 6.0. Remove this line when the Bootstrap 4 backward compatibility period ends.
51
@import "bs4-compat";