Skip to content

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

Revert "UX: Merge onebox experiment into core (#33015)" (#33024)

David Taylor8f89e287d348
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss
index 61fa5d730e5..bd327f0ca4b 100644
--- a/app/assets/stylesheets/common/base/onebox.scss
+++ b/app/assets/stylesheets/common/base/onebox.scss
@@ -1,16 +1,5 @@
@use "lib/viewport";
-@mixin onebox-shadow($thickness) {
- border: 0;
- margin-inline: $thickness;
- box-shadow:
- 0 0 0 1px var(--primary-300),
- 0 0 0 $thickness var(--primary-100);
-
- // Makes the outer drop shadow radius equal to --d-border-radius
- border-radius: calc(var(--d-border-radius) - ($thickness / 2));
-}
-
a.loading-onebox {
&::before {
content: "";
@@ -112,14 +101,12 @@ a.loading-onebox {
}
aside.onebox {
- @include onebox-shadow(4px);
+ border: 5px solid var(--primary-low);
+ margin: 1em 0;
padding: 1em;
font-size: var(--font-0);
background: var(--secondary);
-
- &:first-child {
- margin-top: 4px;
- }
+ border-radius: var(--d-border-radius);
header {
align-items: center;
@@ -331,10 +318,6 @@ aside.onebox {
}
}
-.chat-drawer-container .chat-message aside.onebox {
- @include onebox-shadow(3px);
-}
-
@mixin gdocs-logo($type) {
&.g-#{$type}-logo {
background: absolute-image-url(