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
//
1
//
2
// Base styles
2
// Base styles
3
//
3
//
Línea 4... Línea 4...
4
 
4
 
-
 
5
.alert {
-
 
6
  // scss-docs-start alert-css-vars
-
 
7
  --#{$prefix}alert-bg: transparent;
-
 
8
  --#{$prefix}alert-padding-x: #{$alert-padding-x};
-
 
9
  --#{$prefix}alert-padding-y: #{$alert-padding-y};
-
 
10
  --#{$prefix}alert-margin-bottom: #{$alert-margin-bottom};
-
 
11
  --#{$prefix}alert-color: inherit;
-
 
12
  --#{$prefix}alert-border-color: transparent;
-
 
13
  --#{$prefix}alert-border: #{$alert-border-width} solid var(--#{$prefix}alert-border-color);
-
 
14
  --#{$prefix}alert-border-radius: #{$alert-border-radius};
-
 
15
  --#{$prefix}alert-link-color: inherit;
-
 
16
  // scss-docs-end alert-css-vars
5
.alert {
17
 
6
  position: relative;
18
  position: relative;
7
  padding: $alert-padding-y $alert-padding-x;
19
  padding: var(--#{$prefix}alert-padding-y) var(--#{$prefix}alert-padding-x);
-
 
20
  margin-bottom: var(--#{$prefix}alert-margin-bottom);
-
 
21
  color: var(--#{$prefix}alert-color);
8
  margin-bottom: $alert-margin-bottom;
22
  background-color: var(--#{$prefix}alert-bg);
9
  border: $alert-border-width solid transparent;
23
  border: var(--#{$prefix}alert-border);
10
  @include border-radius($alert-border-radius);
24
  @include border-radius(var(--#{$prefix}alert-border-radius));
Línea 11... Línea 25...
11
}
25
}
12
 
26
 
13
// Headings for larger alerts
27
// Headings for larger alerts
Línea 17... Línea 31...
17
}
31
}
Línea 18... Línea 32...
18
 
32
 
19
// Provide class for links that match alerts
33
// Provide class for links that match alerts
20
.alert-link {
34
.alert-link {
-
 
35
  font-weight: $alert-link-font-weight;
21
  font-weight: $alert-link-font-weight;
36
  color: var(--#{$prefix}alert-link-color);
Línea 22... Línea 37...
22
}
37
}
23
 
38
 
24
 
39
 
Línea 25... Línea 40...
25
// Dismissible alerts
40
// Dismissible alerts
26
//
41
//
Línea 27... Línea 42...
27
// Expand the right padding and account for the close button's positioning.
42
// Expand the right padding and account for the close button's positioning.
28
 
43
 
29
.alert-dismissible {
44
.alert-dismissible {
30
  padding-right: $close-font-size + $alert-padding-x * 2;
45
  padding-right: $alert-dismissible-padding-r;
31
 
46
 
32
  // Adjust close link position
47
  // Adjust close link position
33
  .close {
48
  .btn-close {
34
    position: absolute;
-
 
35
    top: 0;
49
    position: absolute;
36
    right: 0;
50
    top: 0;
Línea 37... Línea 51...
37
    z-index: 2;
51
    right: 0;
38
    padding: $alert-padding-y $alert-padding-x;
-
 
39
    color: inherit;
52
    z-index: $stretched-link-z-index + 1;
40
  }
-
 
41
}
53
    padding: $alert-padding-y * 1.25 $alert-padding-x;
42
 
54
  }
-
 
55
}
-
 
56
 
43
 
57
 
-
 
58
// scss-docs-start alert-modifiers
44
// Alternate styles
59
// Generate contextual modifier classes for colorizing the alert
45
//
60
@each $state in map-keys($theme-colors) {
-
 
61
  .alert-#{$state} {