|
19 | 19 | display: block; |
20 | 20 | width: $tooltip-arrow-width; |
21 | 21 | height: $tooltip-arrow-height; |
22 | | - } |
23 | 22 |
|
24 | | - .arrow::before { |
25 | | - position: absolute; |
26 | | - border-color: transparent; |
27 | | - border-style: solid; |
| 23 | + &::before { |
| 24 | + position: absolute; |
| 25 | + content: ""; |
| 26 | + border-color: transparent; |
| 27 | + border-style: solid; |
| 28 | + } |
28 | 29 | } |
| 30 | +} |
29 | 31 |
|
30 | | - &.bs-tooltip-top { |
31 | | - padding: $tooltip-arrow-height 0; |
32 | | - .arrow { |
33 | | - bottom: 0; |
34 | | - } |
| 32 | +.bs-tooltip-top { |
| 33 | + padding: $tooltip-arrow-height 0; |
35 | 34 |
|
36 | | - .arrow::before { |
| 35 | + .arrow { |
| 36 | + bottom: 0; |
| 37 | + |
| 38 | + &::before { |
37 | 39 | top: 0; |
38 | | - content: ""; |
39 | 40 | border-width: $tooltip-arrow-height $tooltip-arrow-width/2 0; |
40 | 41 | border-top-color: $tooltip-arrow-color; |
41 | 42 | } |
42 | 43 | } |
43 | | - &.bs-tooltip-right { |
44 | | - padding: 0 $tooltip-arrow-height; |
45 | | - .arrow { |
46 | | - left: 0; |
47 | | - width: $tooltip-arrow-height; |
48 | | - height: $tooltip-arrow-width; |
49 | | - } |
| 44 | +} |
| 45 | + |
| 46 | +.bs-tooltip-right { |
| 47 | + padding: 0 $tooltip-arrow-height; |
| 48 | + |
| 49 | + .arrow { |
| 50 | + left: 0; |
| 51 | + width: $tooltip-arrow-height; |
| 52 | + height: $tooltip-arrow-width; |
50 | 53 |
|
51 | | - .arrow::before { |
| 54 | + &::before { |
52 | 55 | right: 0; |
53 | | - content: ""; |
54 | 56 | border-width: $tooltip-arrow-width/2 $tooltip-arrow-height $tooltip-arrow-width/2 0; |
55 | 57 | border-right-color: $tooltip-arrow-color; |
56 | 58 | } |
57 | 59 | } |
58 | | - &.bs-tooltip-bottom { |
59 | | - padding: $tooltip-arrow-height 0; |
60 | | - .arrow { |
61 | | - top: 0; |
62 | | - } |
| 60 | +} |
63 | 61 |
|
64 | | - .arrow::before { |
| 62 | +.bs-tooltip-bottom { |
| 63 | + padding: $tooltip-arrow-height 0; |
| 64 | + |
| 65 | + .arrow { |
| 66 | + top: 0; |
| 67 | + |
| 68 | + &::before { |
65 | 69 | bottom: 0; |
66 | | - content: ""; |
67 | 70 | border-width: 0 $tooltip-arrow-width/2 $tooltip-arrow-height; |
68 | 71 | border-bottom-color: $tooltip-arrow-color; |
69 | 72 | } |
70 | 73 | } |
71 | | - &.bs-tooltip-left { |
72 | | - padding: 0 $tooltip-arrow-height; |
73 | | - .arrow { |
74 | | - right: 0; |
75 | | - width: $tooltip-arrow-height; |
76 | | - height: $tooltip-arrow-width; |
77 | | - } |
| 74 | +} |
| 75 | + |
| 76 | +.bs-tooltip-left { |
| 77 | + padding: 0 $tooltip-arrow-height; |
| 78 | + |
| 79 | + .arrow { |
| 80 | + right: 0; |
| 81 | + width: $tooltip-arrow-height; |
| 82 | + height: $tooltip-arrow-width; |
78 | 83 |
|
79 | | - .arrow::before { |
| 84 | + &::before { |
80 | 85 | left: 0; |
81 | | - content: ""; |
82 | 86 | border-width: $tooltip-arrow-width/2 0 $tooltip-arrow-width/2 $tooltip-arrow-height; |
83 | 87 | border-left-color: $tooltip-arrow-color; |
84 | 88 | } |
85 | 89 | } |
86 | | - &.bs-tooltip-auto { |
87 | | - &[x-placement^="top"] { |
88 | | - @extend .bs-tooltip-top; |
89 | | - } |
90 | | - &[x-placement^="right"] { |
91 | | - @extend .bs-tooltip-right; |
92 | | - } |
93 | | - &[x-placement^="bottom"] { |
94 | | - @extend .bs-tooltip-bottom; |
95 | | - } |
96 | | - &[x-placement^="left"] { |
97 | | - @extend .bs-tooltip-left; |
98 | | - } |
| 90 | +} |
| 91 | + |
| 92 | +.bs-tooltip-auto { |
| 93 | + &[x-placement^="top"] { |
| 94 | + @extend .bs-tooltip-top; |
| 95 | + } |
| 96 | + &[x-placement^="right"] { |
| 97 | + @extend .bs-tooltip-right; |
| 98 | + } |
| 99 | + &[x-placement^="bottom"] { |
| 100 | + @extend .bs-tooltip-bottom; |
| 101 | + } |
| 102 | + &[x-placement^="left"] { |
| 103 | + @extend .bs-tooltip-left; |
99 | 104 | } |
100 | 105 | } |
101 | 106 |
|
|
0 commit comments