From e6864a9cff4bb5e6b16caf53720ac12229815422 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sat, 14 May 2022 12:54:23 +0100 Subject: [PATCH] Improved card list design - 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 | 1 - resources/sass/_lists.scss | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/sass/_blocks.scss b/resources/sass/_blocks.scss index 7d408cd1b..0398224ca 100644 --- a/resources/sass/_blocks.scss +++ b/resources/sass/_blocks.scss @@ -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; } diff --git a/resources/sass/_lists.scss b/resources/sass/_lists.scss index 6204bcc78..7003ae88c 100644 --- a/resources/sass/_lists.scss +++ b/resources/sass/_lists.scss @@ -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; }