-
-
Notifications
You must be signed in to change notification settings - Fork 460
Improve /support and /foundation/members designs #3534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
92339de
8598b5e
1316047
70c5cf2
6606c54
eabc2fa
f957d45
b46ec31
46c6016
fcbda12
3bb1ccc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,31 @@ | |
| --borders-color: #ddd; | ||
|
|
||
| --notice-box-color: #ffcb006b; | ||
|
|
||
| // Tokens for the support/membership card redesign (_support.scss). | ||
| // Kept distinct from the older --borders-color/--color-text-light pair | ||
| // above rather than merged into them, since those are already used | ||
| // with their own (slightly different) shades elsewhere. | ||
| --color-border: #d2d2d2; | ||
| --color-text-muted: #555; | ||
| --color-bg-tint: #fafafa; | ||
| --card-radius: 16px; | ||
| --card-radius-sm: 8px; | ||
|
|
||
| // The top 3 "become a member" tiers are literally named after materials | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have reference colors for these and all other tiers at https://github.com/matrix-org/matrix.org/tree/main/static/branding/membership
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That was fixed earlier already. Comment needs fixing/removal though.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't see a green ecosystem members frame nor purple associates |
||
| // (Platinum/Gold/Silver) - used as a top-edge accent on .tier-card and a | ||
| // frame/flag around the matching tier of supporter logos (_support.scss). | ||
| // Platinum is deliberately lighter/cooler and Silver deliberately | ||
| // darker/warmer so the two don't read as the same grey. These plain | ||
| // colours are for the (thin, non-text) frame border only; the flag is a | ||
| // solid fill with white text, which needs its own darker "-badge" pair | ||
| // to clear AA (the plain colours are too light/desaturated for that). | ||
| --color-tier-platinum: #4596a3; | ||
| --color-tier-platinum-badge: #1c3c41; | ||
| --color-tier-gold: #d48f2f; | ||
| --color-tier-gold-badge: #4b300d; | ||
| --color-tier-silver: #969eaa; | ||
| --color-tier-silver-badge: #3c3f44; | ||
| } | ||
|
|
||
| * { | ||
|
|
@@ -152,6 +177,10 @@ pre table { | |
|
|
||
| @media (max-width: 767px) { | ||
| padding-inline: 2rem; | ||
| // The announcement banner sits directly above .page-header with no | ||
| // gap of its own, so on mobile (where the banner text wraps taller) | ||
| // the breadcrumb ends up crammed right underneath it. | ||
| padding-top: 1.5rem; | ||
| } | ||
|
|
||
| padding-bottom: calc(var(--navbar-height)/2); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| // Breadcrumb navigation | ||
| // Used via macros/breadcrumb.html. Two contexts: | ||
| // 1. Inside .page-header (dark background) - text is white/muted-white | ||
| // 2. Inside .detail-page (light background) - text is muted grey | ||
|
|
||
| .breadcrumb { | ||
| ol { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| align-items: center; | ||
| list-style: none; | ||
| margin: 0; | ||
| padding: 0; | ||
| gap: 0.25rem; | ||
| font-size: 0.85rem; | ||
| } | ||
|
|
||
| li { | ||
| display: flex; | ||
| align-items: center; | ||
|
|
||
| // Chevron separator before every item except the first | ||
| & + li::before { | ||
| content: "/"; | ||
| margin-right: 0.25rem; | ||
| opacity: 0.45; | ||
| } | ||
| } | ||
|
|
||
| a, | ||
| span { | ||
| text-decoration: none; | ||
| line-height: 1; | ||
| } | ||
|
|
||
| // Dark context (inside .page-header) | ||
| .page-header & { | ||
| margin-bottom: 0.75rem; | ||
|
|
||
| a { | ||
| color: rgb(255 255 255 / 70%); | ||
|
|
||
| &:hover { | ||
| color: #fff; | ||
| } | ||
| } | ||
|
|
||
| // 45% white only clears ~4.4:1 against the black hero background, | ||
| // just under AA's 4.5:1 for text; 60% keeps it safely above. | ||
| span { | ||
| color: rgb(255 255 255 / 60%); | ||
| } | ||
|
|
||
| li + li::before { | ||
| color: rgb(255 255 255 / 45%); | ||
| } | ||
| } | ||
|
|
||
| // Light context (inside .detail-page) | ||
| .detail-page & { | ||
| margin-bottom: 1.25rem; | ||
|
|
||
| a { | ||
| color: var(--color-text-muted); | ||
|
|
||
| &:hover { | ||
| color: var(--color-text); | ||
| } | ||
| } | ||
|
|
||
| // The current-page label is text, not decoration, so it still needs | ||
| // to clear WCAG AA (4.5:1); #aaa on white only manages ~2.3:1. | ||
| span { | ||
| color: var(--color-text-light); | ||
| } | ||
|
|
||
| li + li::before { | ||
| color: #ccc; | ||
| } | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.