.s-user-card--link",
@@ -45,16 +40,6 @@
"applies": "Child of .s-user-card--link",
"description": "Wraps and positions the staff user badge"
},
- {
- "class": ".s-user-card--location",
- "applies": "N/A",
- "description": "Styles the user’s location."
- },
- {
- "class": ".s-user-card--role",
- "applies": "N/A",
- "description": "Styles the user’s role."
- },
{
"class": ".s-user-card--awards",
"applies": "N/A",
@@ -65,35 +50,10 @@
"applies": "N/A",
"description": "Styles the aggregate number of awards and activity properly."
},
- {
- "class": ".s-user-card--tags",
- "applies": "N/A",
- "description": "A container for a user’s most popular tags."
- },
- {
- "class": ".s-user-card__highlighted",
- "applies": ".s-user-card",
- "description": "Highlights the entire user card by adding a background color, some padding, and rounded corners."
- },
- {
- "class": ".s-user-card__full",
- "applies": ".s-user-card",
- "description": "Displays a larger avatar, best paired with additional tags meta data."
- },
{
"class": ".s-user-card__small",
"applies": ".s-user-card",
"description": "Pairs a small avatar with the reputation and awards."
- },
- {
- "class": ".s-user-card__minimal",
- "applies": ".s-user-card",
- "description": "Pairs a stripped down version of the reputation with a small avatar, and the time since the activity occurred."
- },
- {
- "class": ".s-user-card__deleted",
- "applies": ".s-user-card",
- "description": "When a user is deleted, we still need to show their name, but we strip the meta data"
}
]
}
\ No newline at end of file
diff --git a/packages/stacks-docs/product/components/user-cards.html b/packages/stacks-docs/product/components/user-cards.html
index c5bb1ccf11..b2588d6313 100644
--- a/packages/stacks-docs/product/components/user-cards.html
+++ b/packages/stacks-docs/product/components/user-cards.html
@@ -31,568 +31,702 @@
The Base style is the standard variant used to connect a user to their content, appearing most frequently in post-summary lists and on question pages. This view is flexible, allowing various metadata fields to be shown or hidden as needed.
+ {% tip, "info", "mb24" %} + Note on timestamps: Hovering over the timestamp displays a popover with precise dates and a link to the post's /timeline. For authors, this shows the post creation date; for editors, it shows the last modification date. + {% endtip %}Highlights the entire user card by adding a background color, some padding, and rounded corners. Used for post authors and edits.
-Displays a larger avatar, best paired with additional tags meta data. Currently used in user directories.
-Adds the User badge indicator to the usercard. Use this to signify the official role, status, or origin of the account (such as Moderator, Staff, or Bot) directly alongside the user's name.
- Minimal user cards reduce the amount of information down to who asked the question, how much rep they have, and when the action was taken. To read as plainly as possible, e.g. “Paul Wright modified 3 minutes ago,” we change the positioning of the time, and remove any reputation bling, leaving just the aggregated reputation. -
+ {% header "h3", "Sizes" %} + {% header "h4", "Small" %} +Use the Small variant for space-constrained areas, such as post summaries, or to establish visual hierarchy for secondary content like comments and replies.
When a user is deleted, we still need to show their name, but we strip the meta data.
+ {% header "h4", "Default" %} +Use the Default variant when the user needs a more primary focus of the content. This style features a larger avatar to establish top-level hierarchy like question and answer authors.
| Property | -Example | -
|---|---|
| - {prop} - | -
- |
-