mirror of
https://github.com/moodle/moodle.git
synced 2025-04-08 09:52:42 +02:00
MDL-56511 theme_boost: Work around CSS Parser restrictions
The CSS Parser used in Moodle does not handle the use of complex calculations at this stage. The temporary workaround here uses a fixed position to ensure that the popover arrows affected are in the correct location.
This commit is contained in:
parent
3ec69c2ece
commit
89f0061e23
@ -147,3 +147,16 @@ ol {
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Force positioning of popover arrows.
|
||||
*
|
||||
* The Css prefixer used in Moodle does not support complex calc statements used
|
||||
* in Bootstrap 4 CSS. For example:
|
||||
* calc((0.5rem + 1px) * -1); is stripped out by lib/php-css-parser/Parser.php.
|
||||
* See MDL-61879. For now the arrow positions of popovers are fixed until this is resolved.
|
||||
*/
|
||||
.bs-popover-right .arrow, .bs-popover-auto[x-placement^="right"] .arrow {
|
||||
left: -9px;
|
||||
}
|
||||
.bs-popover-left .arrow, .bs-popover-auto[x-placement^="left"] .arrow {
|
||||
right: -9px;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user