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);
|
||||
}
|
||||
|
||||
.fk-d-menu__trigger.topic-list-layout-trigger {
|
||||
display: none;
|
||||
@include breakpoint(mobile-extra-large) {
|
||||
// pinned topic excerpts are hidden on small screens too
|
||||
.fk-d-menu__trigger.topic-list-layout-trigger {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-container .search-header,
|
||||
|
||||
+25
-12
@@ -86,7 +86,8 @@
|
||||
"category category category category status"
|
||||
". . . . ."
|
||||
"activity . . . likes-replies";
|
||||
.topic-excerpt {
|
||||
.topic-excerpt,
|
||||
.link-bottom-line {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -99,6 +100,9 @@
|
||||
.badge-category__wrapper {
|
||||
height: min-content;
|
||||
}
|
||||
.link-bottom-line {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
// display contents
|
||||
@@ -233,14 +237,6 @@
|
||||
min-width: unset;
|
||||
}
|
||||
|
||||
// excerpt
|
||||
.topic-excerpt {
|
||||
grid-row: 3 / -1;
|
||||
grid-column: 1 / -3;
|
||||
margin: 0;
|
||||
font-size: var(--font-down-2);
|
||||
}
|
||||
|
||||
// timestamp
|
||||
td.activity .post-activity {
|
||||
grid-area: activity;
|
||||
@@ -250,12 +246,29 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// metadata
|
||||
// metadata - category
|
||||
td.main-link .link-bottom-line {
|
||||
.link-bottom-line {
|
||||
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 {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user