mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 07:32:39 +01:00
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.
This commit is contained in:
parent
60e319c4b4
commit
e6864a9cff
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user