MDL-85659 theme_boost: Fix editor generated tables styles

This commit is contained in:
Mikel Martín
2025-07-07 10:51:55 +02:00
parent a6b17d8f6b
commit cdd4fb844e
4 changed files with 64 additions and 0 deletions
+17
View File
@@ -1,2 +1,19 @@
/* Give editor access to all of bootstrap. */
@import "bootstrap/bootstrap";
/**
* Reset the Bootstrap _reboot.scss styles for tables.
* That reboot is breaking non-BS tables in the editor.
*/
table:not(.table) {
thead,
tbody,
tfoot,
tr,
td,
th {
border-color: $table-border-color;
border-style: solid;
border-width: $table-border-width;
}
}
+17
View File
@@ -238,3 +238,20 @@ $allow-reset-style: true !default;
}
}
}
/**
* Reset the Bootstrap _reboot.scss styles for tables.
* That reboot mainly affects tables added by the tiny editor.
*/
table:not(.table) {
thead,
tbody,
tfoot,
tr,
td,
th {
border-color: $table-border-color;
border-style: solid;
border-width: $table-border-width;
}
}
+15
View File
@@ -38292,6 +38292,21 @@ body.reset-style .btn:not(.btn-icon) {
border-radius: 0.6rem;
}
/**
* Reset the Bootstrap _reboot.scss styles for tables.
* That reboot mainly affects tables added by the tiny editor.
*/
table:not(.table) thead,
table:not(.table) tbody,
table:not(.table) tfoot,
table:not(.table) tr,
table:not(.table) td,
table:not(.table) th {
border-color: var(--bs-border-color);
border-style: solid;
border-width: var(--bs-border-width);
}
body.behat-site .fixed-top {
position: absolute;
}
+15
View File
@@ -38226,6 +38226,21 @@ body:not(.jsenabled) .langmenu:hover > .dropdown-menu,
* - Make the content region flex grow so it pushes things like the
* next activity selector to the bottom of the page.
*/
/**
* Reset the Bootstrap _reboot.scss styles for tables.
* That reboot mainly affects tables added by the tiny editor.
*/
table:not(.table) thead,
table:not(.table) tbody,
table:not(.table) tfoot,
table:not(.table) tr,
table:not(.table) td,
table:not(.table) th {
border-color: var(--bs-border-color);
border-style: solid;
border-width: var(--bs-border-width);
}
body.behat-site .fixed-top {
position: absolute;
}