UX: add compatibility with the top contributors sidebar (#162)
Improves compatibility with https://meta.discourse.org/t/top-contributors-sidebar/215110 Before:  After:  --------- Co-authored-by: Jarek Radosz <jarek@cvx.dev>
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
@use "lib/viewport";
|
||||||
|
|
||||||
.user-main .about.collapsed-info .details {
|
.user-main .about.collapsed-info .details {
|
||||||
background: var(--d-content-background);
|
background: var(--d-content-background);
|
||||||
}
|
}
|
||||||
@@ -105,3 +107,35 @@ input[type="color"]:focus,
|
|||||||
.period-chooser-header {
|
.period-chooser-header {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// compatibility with the top contributors sidebar theme component
|
||||||
|
// https://meta.discourse.org/t/top-contributors-sidebar/215110
|
||||||
|
.list-container
|
||||||
|
#list-area
|
||||||
|
> .contents
|
||||||
|
> .topic-list:has(.discourse-top-contributors) {
|
||||||
|
grid-template-areas: "head head" "body sidebar";
|
||||||
|
grid-template-rows: auto 1fr;
|
||||||
|
|
||||||
|
@include viewport.until(lg) {
|
||||||
|
grid-template-areas: "head head" "body body";
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.discourse-top-contributors {
|
||||||
|
width: auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
@include viewport.until(lg) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-contributors-heading {
|
||||||
|
font-size: var(--font-up-2);
|
||||||
|
padding-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user