From d14eb15a4333945944317c8b001b9e7aa4a46a60 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 2 Nov 2024 17:46:58 -0700 Subject: [PATCH] ui: Drop logo backgrounds for index, apps, and system pages - When the box shadows are dropped, the cards overlay on those backgrounds is not pleasant. Tests: - MediaWiki functional tests pass. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .../mediawiki/tests/test_functional.py | 4 +- static/themes/default/css/main.css | 12 -- static/themes/default/img/apps-background.svg | 160 ------------------ .../img/freedombox-logo-background.svg | 72 -------- .../themes/default/img/system-background.svg | 62 ------- 5 files changed, 2 insertions(+), 308 deletions(-) delete mode 100644 static/themes/default/img/apps-background.svg delete mode 100644 static/themes/default/img/freedombox-logo-background.svg delete mode 100644 static/themes/default/img/system-background.svg diff --git a/plinth/modules/mediawiki/tests/test_functional.py b/plinth/modules/mediawiki/tests/test_functional.py index 149c90ce9..a744f0b14 100644 --- a/plinth/modules/mediawiki/tests/test_functional.py +++ b/plinth/modules/mediawiki/tests/test_functional.py @@ -77,8 +77,8 @@ class TestMediawikiApp(functional.BaseAppTests): def test_upload_svg_image(self, session_browser, login): """Test uploading an SVG image.""" _upload_image(session_browser, 'admin', 'whatever123', - 'apps-background.svg') - assert _image_exists(session_browser, 'Apps-background.svg') + 'freedombox-logo-standard.svg') + assert _image_exists(session_browser, 'Freedombox-logo-standard.svg') def test_backup_restore(self, session_browser, login): """Test backup and restore of pages and images.""" diff --git a/static/themes/default/css/main.css b/static/themes/default/css/main.css index e6d563efa..a5e3624a4 100644 --- a/static/themes/default/css/main.css +++ b/static/themes/default/css/main.css @@ -637,18 +637,6 @@ a.menu_link_active { z-index: -1; } -.index-page .card-list:before { - background-image: url('../img/freedombox-logo-background.svg'); -} - -.apps-page .card-list-primary:before { - background-image: url('../img/apps-background.svg'); -} - -.system-page .system-section-title:first-child:before { - background-image: url('../img/system-background.svg'); -} - .names-table { table-layout: fixed; overflow-wrap: break-word; diff --git a/static/themes/default/img/apps-background.svg b/static/themes/default/img/apps-background.svg deleted file mode 100644 index 609b2e612..000000000 --- a/static/themes/default/img/apps-background.svg +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/themes/default/img/freedombox-logo-background.svg b/static/themes/default/img/freedombox-logo-background.svg deleted file mode 100644 index afbe934d5..000000000 --- a/static/themes/default/img/freedombox-logo-background.svg +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/static/themes/default/img/system-background.svg b/static/themes/default/img/system-background.svg deleted file mode 100644 index b7bacb738..000000000 --- a/static/themes/default/img/system-background.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - -