mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 16:13:44 +08:00
ee87d8c93b
It used to be hardcoded to 2 and now it uses max_favorite_badges site setting. When zero, it disables favorite badges.
51 lines
772 B
SCSS
51 lines
772 B
SCSS
// shared styles for user and group cards
|
|
.user-card,
|
|
.group-card {
|
|
position: absolute;
|
|
z-index: z("usercard");
|
|
&.fixed {
|
|
position: fixed;
|
|
z-index: z("header") + 1;
|
|
}
|
|
&.docked-card {
|
|
z-index: z("header") + 1;
|
|
}
|
|
// avatar - names - controls
|
|
.first-row {
|
|
.names {
|
|
flex: 1 1 auto;
|
|
}
|
|
.usercard-controls {
|
|
max-width: 225px;
|
|
button {
|
|
min-width: 150px;
|
|
}
|
|
}
|
|
}
|
|
h1 {
|
|
.d-icon {
|
|
font-size: $font-down-1;
|
|
}
|
|
}
|
|
h2 {
|
|
font-size: $font-up-1;
|
|
}
|
|
h3 {
|
|
font-size: $font-0;
|
|
}
|
|
}
|
|
|
|
// styles for user cards only
|
|
.user-card {
|
|
// badges
|
|
.badge-section {
|
|
.user-badge {
|
|
display: block;
|
|
max-width: 185px;
|
|
}
|
|
.more-user-badges {
|
|
max-width: 125px;
|
|
}
|
|
}
|
|
}
|