From 0116897ac91f60759c8dadaa3a58b2d9cac6c48b Mon Sep 17 00:00:00 2001 From: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Date: Wed, 9 Dec 2020 11:36:05 -0600 Subject: [PATCH] UI: Category Onebox styling changes (#11448) This commit adjusts the category one box styling to be more in line with the discourse categories UI. --- app/assets/stylesheets/common/base/onebox.scss | 5 +++++ lib/onebox/templates/discourse_category_onebox.mustache | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss index 07dbe586770..750d1627f2d 100644 --- a/app/assets/stylesheets/common/base/onebox.scss +++ b/app/assets/stylesheets/common/base/onebox.scss @@ -670,6 +670,11 @@ aside.onebox.stackexchange .onebox-body { margin-right: 0.5em; } } + &.category-onebox { + border: 1px solid var(--primary-low); + padding-left: calc(1em - 5px); + margin-left: 5px; + } } .onebox.gfycat p { diff --git a/lib/onebox/templates/discourse_category_onebox.mustache b/lib/onebox/templates/discourse_category_onebox.mustache index 68f41074adf..fb8ddd3300c 100644 --- a/lib/onebox/templates/discourse_category_onebox.mustache +++ b/lib/onebox/templates/discourse_category_onebox.mustache @@ -1,10 +1,13 @@ -