N°4628 - Upgrade bulma lib to v0.9.4 to avoid hack from N°4481

This commit is contained in:
Molkobain
2022-05-11 11:40:25 +02:00
parent 891dd31290
commit bb2c9dedeb
70 changed files with 742 additions and 385 deletions

View File

@@ -43,23 +43,3 @@
.ibo-svg-illustration--container > svg *[fill="#6c63ff"]{
fill: $ibo-svg-illustration--fill;
}
// N°4481 - Restore HTML tables style identical between edition and visualization
// This is a hack to compensate missing variables in the bulma lib, PR has been made here: https://github.com/jgthms/bulma/pull/3455
// The following can't be reset to it's original value (from the browser stylesheet), so we have to hardcode it even though it might change in future browser versions...
.ibo-is-html-content table {
&:not(:last-child) {
margin-bottom: 0;
}
tbody {
tr {
&:last-child {
td,
th {
border-bottom-width: 1px;
}
}
}
}
}

View File

@@ -17,8 +17,11 @@ $body-overflow-y: auto !default;
* customize Bulma content variables
* See https://bulma.io/documentation/elements/content/
*/
$content-block-margin-bottom: 0 !default;
/* Table: Reset style as much as possible to match rich text editor preview, which is the browser's default stylesheet.
* As there is no way to avoid bulma rules, we simply make them invalid by setting an invalid variable value, the rules will then be ignored by the browser.
* "!default" has been omitted on purpose as we want to overload the variables no matter what.
* See N°4481 for more information
*/
$content-table-cell-border: 'invalid on purpose';
@@ -27,5 +30,6 @@ $content-table-cell-padding: 'invalid on purpose';
$content-table-cell-heading-color: 'invalid on purpose';
$content-table-head-cell-border-width: 'invalid on purpose';
$content-table-head-cell-color: 'invalid on purpose';
$content-table-body-last-row-cell-border-bottom-width: 1px !default;
$content-table-foot-cell-border-width: 'invalid on purpose';
$content-table-foot-cell-color: 'invalid on purpose';