Skip to content

A platform for community discussion. Free, open, simple.

UX: Embed mode styles (#38933)

Derek Rushforthc981963dbd86
diff --git a/app/assets/stylesheets/common/base/embed-mode.scss b/app/assets/stylesheets/common/base/embed-mode.scss
index aebf179ffc8..1b6d449d988 100644
--- a/app/assets/stylesheets/common/base/embed-mode.scss
+++ b/app/assets/stylesheets/common/base/embed-mode.scss
@@ -3,7 +3,13 @@
body.embed-mode {
// Remove top padding since header is hidden
#main-outlet {
- padding-top: 1em;
+ padding-top: 0;
+ }
+
+ #main-outlet-wrapper {
+ grid-template-columns: 1fr;
+ gap: 0;
+ padding: 0;
}
// Hide elements that don't make sense in embed context
@@ -19,8 +25,10 @@ body.embed-mode {
.topic-footer-main-buttons__actions .assign,
.topic-notifications-button,
nav.post-controls .actions .show-more-actions,
- .software-update-prompt {
- display: none;
+ .software-update-prompt,
+ .time-gap,
+ .topic-navigation {
+ display: none !important;
}
// Ensure content fills the width
@@ -75,4 +83,22 @@ body.embed-mode {
justify-self: unset;
}
}
+
+ .topic-timer-info,
+ .post-stream .topic-post:nth-child(2) article .topic-body,
+ .post-stream .topic-post:nth-child(2) article .topic-avatar {
+ border-top: none;
+ }
+
+ .topic-area .posts-wrapper:has(.post-stream .topic-post + .topic-post) {
+ border-bottom: 1px solid var(--content-border-color);
+ }
+
+ // Hide OP
+ // Use visibility hidden to prevent issues with jumpy behavior
+ .post-stream .topic-post.topic-owner {
+ opacity: 0;
+ height: 0;
+ visibility: hidden;
+ }
}