1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

RTL: Fixed lacking task list RTL support

Added with fallback to old LTR styles.
For #5134
This commit is contained in:
Dan Brown
2024-08-27 14:13:33 +01:00
parent 90d1223acd
commit 8cef998f49
2 changed files with 14 additions and 3 deletions

View File

@ -309,15 +309,26 @@ li > ol, li > ul {
padding-right: $-m * 1.2;
}
/**
* Checkbox lists
* Some styles duplicated for supporting logical units (eg. inline-end) while
* providing fallbacks to non-logical rules, so RTL is natively supported where possible.
*/
li.checkbox-item, li.task-list-item {
display: list-item;
list-style: none;
margin-left: -($-m * 1.2);
margin-inline-start: -($-m * 1.2);
margin-inline-end: 0;
input[type="checkbox"] {
margin-right: $-xs;
margin-inline-end: $-xs;
margin-inline-start: 0;
}
li.checkbox-item, li.task-list-item {
margin-left: $-xs;
margin-inline-start: $-xs;
margin-inline-end: 0;
}
}