mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
<pre>
: Disable auto-hiding scrollbar in legacy Edge (#30685)
Disable auto-hiding scrollbar in legacy Edge to avoid overlap, making it impossible to interact with the content.
This commit is contained in:
parent
9922ef5c16
commit
7153c2c3bf
@ -290,6 +290,8 @@ samp {
|
|||||||
// 1. Remove browser default top margin
|
// 1. Remove browser default top margin
|
||||||
// 2. Reset browser default of `1em` to use `rem`s
|
// 2. Reset browser default of `1em` to use `rem`s
|
||||||
// 3. Don't allow content to break outside
|
// 3. Don't allow content to break outside
|
||||||
|
// 4. Disable auto-hiding scrollbar in legacy Edge to avoid overlap,
|
||||||
|
// making it impossible to interact with the content
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
display: block;
|
display: block;
|
||||||
@ -298,6 +300,7 @@ pre {
|
|||||||
overflow: auto; // 3
|
overflow: auto; // 3
|
||||||
@include font-size($code-font-size);
|
@include font-size($code-font-size);
|
||||||
color: $pre-color;
|
color: $pre-color;
|
||||||
|
-ms-overflow-style: scrollbar; // 4
|
||||||
|
|
||||||
// Account for some code outputs that place code tags in pre tags
|
// Account for some code outputs that place code tags in pre tags
|
||||||
code {
|
code {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user