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
// Base class
1
// Base class
2
.tooltip {
2
.tooltip {
-
 
3
  // scss-docs-start tooltip-css-vars
-
 
4
  --#{$prefix}tooltip-zindex: #{$zindex-tooltip};
-
 
5
  --#{$prefix}tooltip-max-width: #{$tooltip-max-width};
-
 
6
  --#{$prefix}tooltip-padding-x: #{$tooltip-padding-x};
-
 
7
  --#{$prefix}tooltip-padding-y: #{$tooltip-padding-y};
-
 
8
  --#{$prefix}tooltip-margin: #{$tooltip-margin};
-
 
9
  @include rfs($tooltip-font-size, --#{$prefix}tooltip-font-size);
-
 
10
  --#{$prefix}tooltip-color: #{$tooltip-color};
3
  position: absolute;
11
  --#{$prefix}tooltip-bg: #{$tooltip-bg};
-
 
12
  --#{$prefix}tooltip-border-radius: #{$tooltip-border-radius};
-
 
13
  --#{$prefix}tooltip-opacity: #{$tooltip-opacity};
-
 
14
  --#{$prefix}tooltip-arrow-width: #{$tooltip-arrow-width};
-
 
15
  --#{$prefix}tooltip-arrow-height: #{$tooltip-arrow-height};
-
 
16
  // scss-docs-end tooltip-css-vars
-
 
17
 
4
  z-index: $zindex-tooltip;
18
  z-index: var(--#{$prefix}tooltip-zindex);
5
  display: block;
19
  display: block;
6
  margin: $tooltip-margin;
20
  margin: var(--#{$prefix}tooltip-margin);
-
 
21
  @include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
7
  // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
22
  // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
8
  // So reset our font and text properties to avoid inheriting weird values.
23
  // So reset our font and text properties to avoid inheriting weird values.
9
  @include reset-text();
24
  @include reset-text();
10
  @include font-size($tooltip-font-size);
25
  @include font-size(var(--#{$prefix}tooltip-font-size));
11
  // Allow breaking very long words so they don't overflow the tooltip's bounds
26
  // Allow breaking very long words so they don't overflow the tooltip's bounds
12
  word-wrap: break-word;
27
  word-wrap: break-word;
13
  opacity: 0;
28
  opacity: 0;
Línea 14... Línea 29...
14
 
29
 
Línea 15... Línea 30...
15
  &.show { opacity: $tooltip-opacity; }
30
  &.show { opacity: var(--#{$prefix}tooltip-opacity); }
16
 
-
 
17
  .arrow {
31
 
18
    position: absolute;
32
  .tooltip-arrow {
19
    display: block;
33
    display: block;
Línea 20... Línea 34...
20
    width: $tooltip-arrow-width;
34
    width: var(--#{$prefix}tooltip-arrow-width);
21
    height: $tooltip-arrow-height;
35
    height: var(--#{$prefix}tooltip-arrow-height);
22
 
36
 
23
    &::before {
37
    &::before {
24
      position: absolute;
38
      position: absolute;
25
      content: "";
39
      content: "";
26
      border-color: transparent;
40
      border-color: transparent;
27
      border-style: solid;
41
      border-style: solid;
Línea 28... Línea 42...
28
    }
42
    }
29
  }
43
  }
30
}
-
 
31
 
-
 
32
.bs-tooltip-top {
-
 
Línea 33... Línea 44...
33
  padding: $tooltip-arrow-height 0;
44
}
34
 
45
 
35
  .arrow {
46
.bs-tooltip-top .tooltip-arrow {
36
    bottom: 0;
47
  bottom: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
37
 
-
 
38
    &::before {
48
 
39
      top: 0;
49
  &::before {
Línea -... Línea 50...
-
 
50
    top: -1px;
40
      border-width: $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
51
    border-width: var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
-
 
52
    border-top-color: var(--#{$prefix}tooltip-bg);
41
      border-top-color: $tooltip-arrow-color;
53
  }
-
 
54
}
Línea 42... Línea -...
42
    }
-
 
43
  }
-
 
44
}
-
 
45
 
-
 
46
.bs-tooltip-right {
-
 
47
  padding: 0 $tooltip-arrow-height;
55
 
48
 
56
/* rtl:begin:ignore */
49
  .arrow {
57
.bs-tooltip-end .tooltip-arrow {
50
    left: 0;
58
  left: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
51
    width: $tooltip-arrow-height;
-
 
52
    height: $tooltip-arrow-width;
59
  width: var(--#{$prefix}tooltip-arrow-height);
53
 
60
  height: var(--#{$prefix}tooltip-arrow-width);
Línea 54... Línea 61...
54
    &::before {
61
 
55
      right: 0;
-
 
Línea 56... Línea 62...
56
      border-width: ($tooltip-arrow-width * .5) $tooltip-arrow-height ($tooltip-arrow-width * .5) 0;
62
  &::before {
57
      border-right-color: $tooltip-arrow-color;
-
 
-
 
63
    right: -1px;
Línea 58... Línea 64...
58
    }
64
    border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
59
  }
65
    border-right-color: var(--#{$prefix}tooltip-bg);
60
}
66
  }
61
 
67
}
62
.bs-tooltip-bottom {
-
 
63
  padding: $tooltip-arrow-height 0;
68
 
64
 
69
/* rtl:end:ignore */
Línea 65... Línea 70...
65
  .arrow {
70
 
66
    top: 0;
71
.bs-tooltip-bottom .tooltip-arrow {
67
 
-
 
68
    &::before {
-
 
69
      bottom: 0;
72
  top: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
70
      border-width: 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
73
 
71
      border-bottom-color: $tooltip-arrow-color;
74
  &::before {
Línea 72... Línea 75...
72
    }
75
    bottom: -1px;
73
  }
76
    border-width: 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
74
}
77
    border-bottom-color: var(--#{$prefix}tooltip-bg);
75
 
78
  }
76
.bs-tooltip-left {
-
 
77
  padding: 0 $tooltip-arrow-height;
79
}
78
 
80
 
Línea -... Línea 81...
-
 
81
/* rtl:begin:ignore */
-
 
82
.bs-tooltip-start .tooltip-arrow {
79
  .arrow {
83
  right: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
80
    right: 0;
84
  width: var(--#{$prefix}tooltip-arrow-height);
81
    width: $tooltip-arrow-height;
85
  height: var(--#{$prefix}tooltip-arrow-width);
82
    height: $tooltip-arrow-width;
86
 
83
 
87
  &::before {
84
    &::before {
88
    left: -1px;
85
      left: 0;
89
    border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
86
      border-width: ($tooltip-arrow-width * .5) 0 ($tooltip-arrow-width * .5) $tooltip-arrow-height;
90
    border-left-color: var(--#{$prefix}tooltip-bg);
87
      border-left-color: $tooltip-arrow-color;
91
  }
88
    }
92
}
89
  }
93
 
90
}
94
/* rtl:end:ignore */
91
 
95
 
92
.bs-tooltip-auto {
96
.bs-tooltip-auto {
Línea 93... Línea 97...
93
  &[x-placement^="top"] {
97
  &[data-popper-placement^="top"] {
94
    @extend .bs-tooltip-top;
98
    @extend .bs-tooltip-top;
95
  }
99
  }
96
  &[x-placement^="right"] {
100
  &[data-popper-placement^="right"] {
97
    @extend .bs-tooltip-right;
101
    @extend .bs-tooltip-end;
98
  }
102
  }
99
  &[x-placement^="bottom"] {
103
  &[data-popper-placement^="bottom"] {
100
    @extend .bs-tooltip-bottom;
104
    @extend .bs-tooltip-bottom;
101
  }
105
  }