mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 10:19:05 +08:00
UX: flat design for thread list (#23821)
* UX: thread list flat design * UX: thread list mobile
This commit is contained in:
parent
77e1d69b74
commit
cac5592251
@ -1,24 +1,25 @@
|
||||
@mixin thread-list-item {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 0.5rem;
|
||||
padding: 1rem;
|
||||
margin-inline: 0.5rem;
|
||||
border-radius: var(--d-border-radius);
|
||||
background-color: var(--primary-very-low);
|
||||
border: 1px solid transparent;
|
||||
border-bottom: 1px solid var(--primary-low);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.chat-thread-list-item {
|
||||
@include thread-list-item;
|
||||
cursor: pointer;
|
||||
margin: 0.75rem;
|
||||
|
||||
& + .chat-thread-list-item {
|
||||
margin-top: 0;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.touch & {
|
||||
&:active {
|
||||
background-color: var(--d-hover);
|
||||
padding-inline: 1.5rem;
|
||||
margin-inline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
&:hover,
|
||||
&:active {
|
||||
background-color: var(--d-hover);
|
||||
padding-inline: 1.5rem;
|
||||
margin-inline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
.chat-thread-list {
|
||||
&__items {
|
||||
.chat-thread-list-item {
|
||||
margin: 0.5rem;
|
||||
padding: 0.5rem 0.25rem;
|
||||
}
|
||||
|
||||
&__no-threads {
|
||||
|
Loading…
x
Reference in New Issue
Block a user