mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Use classes for styling user and group cards (#8913)
Styling based on element-ids, it is impossible for themes/plugins to display multiple cards on a single page. Using classes is a more flexible approach. The element-ids are maintained for backwards compatibility with existing plugins/themes.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
$avatar_width: 120px;
|
||||
|
||||
// shared styles for user and group cards
|
||||
#user-card,
|
||||
#group-card {
|
||||
.user-card,
|
||||
.group-card {
|
||||
position: fixed;
|
||||
// mobile cards should always be on top of everything - 1102
|
||||
z-index: z("mobile-composer") + 2;
|
||||
@@ -48,7 +48,7 @@ $avatar_width: 120px;
|
||||
}
|
||||
|
||||
// styles for user cards only
|
||||
#user-card {
|
||||
.user-card {
|
||||
// badges
|
||||
.badge-section {
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in New Issue
Block a user