A platform for community discussion. Free, open, simple.
DEV: Move desktop-specific admin styles to admin css bundle (#31524)
David Taylorffdc97f37296
diff --git a/app/assets/stylesheets/admin/admin_base.scss b/app/assets/stylesheets/admin/admin_base.scssindex 54147b9ba3b..aeb69efea0e 100644--- a/app/assets/stylesheets/admin/admin_base.scss+++ b/app/assets/stylesheets/admin/admin_base.scss@@ -1223,6 +1223,22 @@ a.inline-editable-field {cursor: pointer;}+.desktop-view .emoji-value-list {+ .value {+ .shift-up-value-btn,+ .shift-down-value-btn {+ display: none;+ }++ &:hover {+ .shift-up-value-btn,+ .shift-down-value-btn {+ display: block;+ }+ }+ }+}+// Styles for subtabs in admin@import "admin/dashboard";@import "admin/sidebar";diff --git a/app/assets/stylesheets/admin/customize.scss b/app/assets/stylesheets/admin/customize.scssindex 0580956587d..309ef9b77e5 100644--- a/app/assets/stylesheets/admin/customize.scss+++ b/app/assets/stylesheets/admin/customize.scss@@ -1182,3 +1182,20 @@width: 65%;margin-left: 30%;}++.desktop-view .admin-customize {+ .show-current-style {+ padding-left: 2%;+ width: 68%;++ .title {+ input {+ width: 80%;+ }+ }+ }++ .themes-list {+ width: 28%;+ }+}diff --git a/app/assets/stylesheets/desktop.scss b/app/assets/stylesheets/desktop.scssindex 20f8d326ea0..bb26545b44d 100644--- a/app/assets/stylesheets/desktop.scss+++ b/app/assets/stylesheets/desktop.scss@@ -3,6 +3,3 @@// Import all component-specific files@import "desktop/components/_index";--// Import all admin-specific files-@import "desktop/admin/_index";diff --git a/app/assets/stylesheets/desktop/_index.scss b/app/assets/stylesheets/desktop/_index.scssindex 2392990290f..e72841ffa56 100644--- a/app/assets/stylesheets/desktop/_index.scss+++ b/app/assets/stylesheets/desktop/_index.scss@@ -1,4 +1,3 @@-@import "admin_customize";@import "category-list";@import "compose";@import "discourse";diff --git a/app/assets/stylesheets/desktop/admin/_index.scss b/app/assets/stylesheets/desktop/admin/_index.scssdeleted file mode 100644index b45777ec742..00000000000--- a/app/assets/stylesheets/desktop/admin/_index.scss+++ /dev/null@@ -1 +0,0 @@-@import "admin_base";diff --git a/app/assets/stylesheets/desktop/admin/admin_base.scss b/app/assets/stylesheets/desktop/admin/admin_base.scssdeleted file mode 100644index c014649b9e0..00000000000--- a/app/assets/stylesheets/desktop/admin/admin_base.scss+++ /dev/null@@ -1,15 +0,0 @@-.emoji-value-list {- .value {- .shift-up-value-btn,- .shift-down-value-btn {- display: none;- }-- &:hover {- .shift-up-value-btn,- .shift-down-value-btn {- display: block;- }- }- }-}diff --git a/app/assets/stylesheets/desktop/admin_customize.scss b/app/assets/stylesheets/desktop/admin_customize.scssdeleted file mode 100644index f4b5a27b284..00000000000--- a/app/assets/stylesheets/desktop/admin_customize.scss+++ /dev/null@@ -1,16 +0,0 @@-.admin-customize {- .show-current-style {- padding-left: 2%;- width: 68%;-- .title {- input {- width: 80%;- }- }- }-- .themes-list {- width: 28%;- }-}