]> BookStack Code Mirror - bookstack/commitdiff
Improved card list design
authorDan Brown <redacted>
Sat, 14 May 2022 11:54:23 +0000 (12:54 +0100)
committerDan Brown <redacted>
Sat, 14 May 2022 11:54:23 +0000 (12:54 +0100)
- Removed border and rounded list item styles to make hover states have
  less edge detail and to align with other UI elements.
- In expanded-detail view, removed space used for entity description if
  there is not description content existing.

resources/sass/_blocks.scss
resources/sass/_lists.scss

index 7d408cd1b5f24fdcb41f42e18e8b680bf9baa899..0398224ca52a406ee29d7ae160fa63a00caae4b4 100644 (file)
@@ -66,7 +66,6 @@
   @include lightDark(background-color, #FFF, #222);
   box-shadow: $bs-card;
   border-radius: 3px;
-  border: 1px solid transparent;
   .body, p.empty-text {
     padding: $-m;
   }
index 6204bcc787b0ef835b5e6ffb9c6659ff6492a3d5..7003ae88ce2b3d05d286885f2a8ec91480400e8b 100644 (file)
@@ -400,6 +400,7 @@ ul.pagination {
   padding: $-s $-m;
   display: flex;
   align-items: center;
+  gap: $-m;
   background-color: transparent;
   border: 0;
   width: 100%;
@@ -409,7 +410,6 @@ ul.pagination {
     color: #666;
   }
   > span:first-child {
-    margin-inline-end: $-m;
     flex-basis: 1.88em;
     flex: none;
   }
@@ -449,7 +449,8 @@ ul.pagination {
 }
 
 .card .entity-list-item:not(.no-hover):hover {
-  @include lightDark(background-color, #F2F2F2, #2d2d2d)
+  @include lightDark(background-color, #F2F2F2, #2d2d2d);
+  border-radius: 0;
 }
 .card .entity-list-item .entity-list-item:hover {
   background-color: #EEEEEE;
@@ -519,6 +520,9 @@ ul.pagination {
     font-size: $fs-m * 0.8;
     padding-top: $-xs;
   }
+  .entity-list-item p:empty {
+    padding-top: 0;
+  }
   p {
     margin: 0;
   }