-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap-tooltip-extra-positions.scss
72 lines (56 loc) · 1.29 KB
/
bootstrap-tooltip-extra-positions.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//== Some Bootstrap variables for Tooltips
//
//##
//** Tooltip background color
$tooltip-bg: #000;
//** Tooltip arrow width
$tooltip-arrow-width: 5px;
//** Tooltip arrow color
$tooltip-arrow-color: $tooltip-bg;
//== Styles for Tooltip Extra Positions
//
//##
// Base class
.tooltip {
// top-left + top-right
&.top-l,
&.top-r {
margin-top: -3px;
padding: $tooltip-arrow-width 0;
}
// bottom-left + bottom-right
&.bottom-l,
&.bottom-r {
margin-top: 3px;
padding: $tooltip-arrow-width 0;
}
}
// Arrows
.tooltip {
// top-left + top-right arrows
&.top-l .tooltip-arrow,
&.top-r .tooltip-arrow {
bottom: 0;
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
border-top-color: $tooltip-arrow-color;
}
&.top-l .tooltip-arrow {
left: $tooltip-arrow-width;
}
&.top-r .tooltip-arrow {
right: $tooltip-arrow-width;
}
// bottom-left + bottom-right arrows
&.bottom-l .tooltip-arrow,
&.bottom-r .tooltip-arrow {
top: 0;
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
border-bottom-color: $tooltip-arrow-color;
}
&.bottom-l .tooltip-arrow {
left: $tooltip-arrow-width;
}
&.bottom-r .tooltip-arrow {
right: $tooltip-arrow-width;
}
}