UX: make theme compatible with AI gists (#140)
Before (only pinned topic excerpts, no gist toggle):  After (gists can be toggled on):  This puts the gists in the same place as the theme places excerpts and uses the same styles. It also follows the theme pattern of hiding excerpts/gists on mobile.
This commit is contained in:
+5
-2
@@ -69,8 +69,11 @@ input[type="color"]:focus,
|
|||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fk-d-menu__trigger.topic-list-layout-trigger {
|
@include breakpoint(mobile-extra-large) {
|
||||||
display: none;
|
// pinned topic excerpts are hidden on small screens too
|
||||||
|
.fk-d-menu__trigger.topic-list-layout-trigger {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-container .search-header,
|
.search-container .search-header,
|
||||||
|
|||||||
+25
-12
@@ -86,7 +86,8 @@
|
|||||||
"category category category category status"
|
"category category category category status"
|
||||||
". . . . ."
|
". . . . ."
|
||||||
"activity . . . likes-replies";
|
"activity . . . likes-replies";
|
||||||
.topic-excerpt {
|
.topic-excerpt,
|
||||||
|
.link-bottom-line {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -99,6 +100,9 @@
|
|||||||
.badge-category__wrapper {
|
.badge-category__wrapper {
|
||||||
height: min-content;
|
height: min-content;
|
||||||
}
|
}
|
||||||
|
.link-bottom-line {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// display contents
|
// display contents
|
||||||
@@ -233,14 +237,6 @@
|
|||||||
min-width: unset;
|
min-width: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
// excerpt
|
|
||||||
.topic-excerpt {
|
|
||||||
grid-row: 3 / -1;
|
|
||||||
grid-column: 1 / -3;
|
|
||||||
margin: 0;
|
|
||||||
font-size: var(--font-down-2);
|
|
||||||
}
|
|
||||||
|
|
||||||
// timestamp
|
// timestamp
|
||||||
td.activity .post-activity {
|
td.activity .post-activity {
|
||||||
grid-area: activity;
|
grid-area: activity;
|
||||||
@@ -250,12 +246,29 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// metadata
|
.link-bottom-line {
|
||||||
// metadata - category
|
|
||||||
td.main-link .link-bottom-line {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// metadata
|
||||||
|
// metadata - excerpt
|
||||||
|
.topic-excerpt,
|
||||||
|
td.main-link .link-bottom-line {
|
||||||
|
grid-row: 3 / -1;
|
||||||
|
grid-column: 1 / -3;
|
||||||
|
margin: 0;
|
||||||
|
font-size: var(--font-down-2);
|
||||||
|
|
||||||
|
.excerpt__contents {
|
||||||
|
color: var(--primary-high);
|
||||||
|
}
|
||||||
|
|
||||||
|
// default category position hidden
|
||||||
|
.badge-category__wrapper {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
td.topic-category-status-data {
|
td.topic-category-status-data {
|
||||||
display: contents;
|
display: contents;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user