Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1... Línea 1...
1
.toast {
1
.toast {
-
 
2
  // scss-docs-start toast-css-vars
-
 
3
  --#{$prefix}toast-zindex: #{$zindex-toast};
-
 
4
  --#{$prefix}toast-padding-x: #{$toast-padding-x};
-
 
5
  --#{$prefix}toast-padding-y: #{$toast-padding-y};
-
 
6
  --#{$prefix}toast-spacing: #{$toast-spacing};
-
 
7
  --#{$prefix}toast-max-width: #{$toast-max-width};
2
  // Prevents from shrinking in IE11, when in a flex container
8
  @include rfs($toast-font-size, --#{$prefix}toast-font-size);
-
 
9
  --#{$prefix}toast-color: #{$toast-color};
-
 
10
  --#{$prefix}toast-bg: #{$toast-background-color};
-
 
11
  --#{$prefix}toast-border-width: #{$toast-border-width};
-
 
12
  --#{$prefix}toast-border-color: #{$toast-border-color};
-
 
13
  --#{$prefix}toast-border-radius: #{$toast-border-radius};
-
 
14
  --#{$prefix}toast-box-shadow: #{$toast-box-shadow};
3
  // See https://github.com/twbs/bootstrap/issues/28341
15
  --#{$prefix}toast-header-color: #{$toast-header-color};
-
 
16
  --#{$prefix}toast-header-bg: #{$toast-header-background-color};
-
 
17
  --#{$prefix}toast-header-border-color: #{$toast-header-border-color};
-
 
18
  // scss-docs-end toast-css-vars
-
 
19
 
4
  flex-basis: $toast-max-width;
20
  width: var(--#{$prefix}toast-max-width);
5
  max-width: $toast-max-width;
21
  max-width: 100%;
6
  @include font-size($toast-font-size);
22
  @include font-size(var(--#{$prefix}toast-font-size));
7
  color: $toast-color;
23
  color: var(--#{$prefix}toast-color);
-
 
24
  pointer-events: auto;
8
  background-color: $toast-background-color;
25
  background-color: var(--#{$prefix}toast-bg);
9
  background-clip: padding-box;
26
  background-clip: padding-box;
10
  border: $toast-border-width solid $toast-border-color;
27
  border: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-border-color);
11
  box-shadow: $toast-box-shadow;
28
  box-shadow: var(--#{$prefix}toast-box-shadow);
12
  opacity: 0;
-
 
13
  @include border-radius($toast-border-radius);
29
  @include border-radius(var(--#{$prefix}toast-border-radius));
14
 
-
 
15
  &:not(:last-child) {
-
 
16
    margin-bottom: $toast-padding-x;
-
 
17
  }
-
 
Línea 18... Línea 30...
18
 
30
 
19
  &.showing {
31
  &.showing {
20
    opacity: 1;
32
    opacity: 0;
Línea 21... Línea 33...
21
  }
33
  }
22
 
34
 
23
  &.show {
-
 
24
    display: block;
35
  &:not(.show) {
-
 
36
    display: none;
Línea -... Línea 37...
-
 
37
  }
-
 
38
}
-
 
39
 
-
 
40
.toast-container {
-
 
41
  --#{$prefix}toast-zindex: #{$zindex-toast};
-
 
42
 
25
    opacity: 1;
43
  position: absolute;
26
  }
44
  z-index: var(--#{$prefix}toast-zindex);
-
 
45
  width: max-content;
-
 
46
  max-width: 100%;
-
 
47
  pointer-events: none;
27
 
48
 
28
  &.hide {
49
  > :not(:last-child) {
Línea 29... Línea 50...
29
    display: none;
50
    margin-bottom: var(--#{$prefix}toast-spacing);
30
  }
51
  }
31
}
52
}
32
 
53
 
33
.toast-header {
54
.toast-header {
34
  display: flex;
55
  display: flex;
35
  align-items: center;
56
  align-items: center;
36
  padding: $toast-padding-y $toast-padding-x;
57
  padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
37
  color: $toast-header-color;
58
  color: var(--#{$prefix}toast-header-color);
-
 
59
  background-color: var(--#{$prefix}toast-header-bg);
-
 
60
  background-clip: padding-box;
-
 
61
  border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
-
 
62
  @include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
-
 
63
 
38
  background-color: $toast-header-background-color;
64
  .btn-close {
Línea 39... Línea 65...
39
  background-clip: padding-box;
65
    margin-right: calc(-.5 * var(--#{$prefix}toast-padding-x)); // stylelint-disable-line function-disallowed-list
40
  border-bottom: $toast-border-width solid $toast-header-border-color;
66
    margin-left: var(--#{$prefix}toast-padding-x);
-
 
67
  }
41
  @include border-top-radius(subtract($toast-border-radius, $toast-border-width));
68
}