]> BookStack Code Mirror - bookstack/commitdiff
Tweaked sidepart list item padding, Review of #3000
authorDan Brown <redacted>
Sat, 23 Oct 2021 21:03:03 +0000 (22:03 +0100)
committerDan Brown <redacted>
Sat, 23 Oct 2021 21:03:03 +0000 (22:03 +0100)
- Scoped padding change to just entity-list-items within the sidebar
  side reduction of right-hand-padding to zero was causing other
  entity-list-items, such as those in the homepage listing, would then
  have no padding.
- Updated styles to use css logical properties to retain support for RTL
  languages such as Arabic, where the whole interface flips around.
  Related: https://css-tricks.com/css-logical-properties-and-values/

resources/sass/_lists.scss

index e5ce1a9398e5f7741b92501cf981cd698103228b..c46ac84f35e45f09ebd89cf31482fb12230af8ea 100644 (file)
     padding-bottom: $-xxs;
     background-clip: content-box;
     border-radius: 0 3px 3px 0;
+    padding-inline-end: 0;
     .content {
       padding-top: $-xs;
       padding-bottom: $-xs;
   .entity-list-item-name {
     font-size: 1em;
     margin: 0;
-    margin-right: $-m;
+    margin-inline-end: $-m;
   }
   .chapter-child-menu {
     font-size: .8rem;
@@ -411,7 +412,7 @@ ul.pagination {
 }
 
 .entity-list-item, .icon-list-item {
-  padding: $-s 0 $-s $-m;
+  padding: $-s $-m;
   display: flex;
   align-items: center;
   background-color: transparent;