Skip to content

Commit e28f888

Browse files
author
Yeliazar
committed
fix tooltip
1 parent 2871c4a commit e28f888

File tree

1 file changed

+57
-6
lines changed

1 file changed

+57
-6
lines changed

src/styles/_overrides.scss

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,21 +1208,72 @@ $slider-handle-size: 26px;
12081208
margin: 0 0.25rem;
12091209
}
12101210

1211+
.tooltip .arrow:before {
1212+
position: absolute;
1213+
content: "";
1214+
border-color: transparent;
1215+
border-style: solid;
1216+
}
1217+
12111218
.bs-tooltip-auto[x-placement^=top] .arrow, .bs-tooltip-top .arrow {
12121219
bottom: 0;
12131220
}
12141221

12151222
.bs-tooltip-auto[x-placement^=top] .arrow:before, .bs-tooltip-top .arrow:before {
12161223
top: 0;
12171224
border-width: 0.4rem 0.4rem 0;
1218-
border-top-color: #000;
1225+
border-top-color: #000 !important;
12191226
}
12201227

1221-
.tooltip .arrow:before {
1222-
position: absolute;
1223-
content: "";
1224-
border-color: transparent;
1225-
border-style: solid;
1228+
.bs-tooltip-auto[x-placement^=right], .bs-tooltip-right {
1229+
padding: 0 0.4rem;
1230+
}
1231+
1232+
.bs-tooltip-auto[x-placement^=right] .arrow:before, .bs-tooltip-right .arrow:before {
1233+
right: 0;
1234+
border-width: 0.4rem 0.4rem 0.4rem 0;
1235+
border-right-color: #000 !important;
1236+
}
1237+
1238+
.bs-tooltip-auto[x-placement^=right] .arrow, .bs-tooltip-right .arrow {
1239+
left: 0;
1240+
width: 0.4rem;
1241+
height: 0.8rem;
1242+
}
1243+
1244+
1245+
.bs-tooltip-auto[x-placement^=bottom], .bs-tooltip-bottom {
1246+
padding: 0.4rem 0;
1247+
}
1248+
1249+
.bs-tooltip-auto[x-placement^=bottom] .arrow, .bs-tooltip-bottom .arrow {
1250+
top: 0;
1251+
}
1252+
1253+
.bs-tooltip-auto[x-placement^=bottom] .arrow:before, .bs-tooltip-bottom .arrow:before {
1254+
bottom: 0;
1255+
border-width: 0 0.4rem 0.4rem;
1256+
border-bottom-color: #000 !important;
1257+
}
1258+
1259+
.bs-tooltip-auto[x-placement^=left] .arrow:before, .bs-tooltip-left .arrow:before {
1260+
left: 0;
1261+
border-width: 0.4rem 0 0.4rem 0.4rem;
1262+
border-left-color: #000 !important;
1263+
}
1264+
1265+
.bs-tooltip-auto[x-placement^=left] .arrow, .bs-tooltip-left .arrow {
1266+
right: 0;
1267+
width: 0.4rem;
1268+
height: 0.8rem;
1269+
}
1270+
1271+
.bs-tooltip-auto[x-placement^=left], .bs-tooltip-left {
1272+
padding: 0 0.4rem;
1273+
}
1274+
1275+
.tooltip.b-tooltip.bs-tooltip-left .arrow {
1276+
margin: 0.25rem 0;
12261277
}
12271278

12281279

0 commit comments

Comments
 (0)