From 51a4b4a88e8c222bba5e8221ef825a99d70a458f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?James=20Pether=20S=C3=B6rling?= Date: Wed, 1 Jan 2025 16:34:51 +0100 Subject: [PATCH] fix missing css (#6925) --- ...cianOverviewPageModContentFactoryImpl.java | 3 -- .../main/webapp/VAADIN/themes/cia/cia.scss | 42 ++++++++++++++++--- .../main/webapp/VAADIN/themes/cia/styles.css | 42 ++++++++++++++++--- 3 files changed, 73 insertions(+), 14 deletions(-) diff --git a/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianOverviewPageModContentFactoryImpl.java b/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianOverviewPageModContentFactoryImpl.java index c1277921d94..3ec8b0a2e27 100644 --- a/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianOverviewPageModContentFactoryImpl.java +++ b/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianOverviewPageModContentFactoryImpl.java @@ -151,9 +151,6 @@ private void createOverviewContent(final VerticalLayout panelContent, final Pers panelContent.setExpandRatio(cardPanel, ContentRatio.SMALL_GRID); - createCardHeader(cardContent,viewRiksdagenPolitician.getFirstName() + " " + viewRiksdagenPolitician.getLastName() - + " (" + viewRiksdagenPolitician.getParty() + ")"); - createCardHeader(cardContent,viewRiksdagenPolitician.getFirstName() + " " + viewRiksdagenPolitician.getLastName() + " (" + viewRiksdagenPolitician.getParty() + ")"); diff --git a/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/cia.scss b/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/cia.scss index 7a0d616c50d..88735c80b9c 100644 --- a/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/cia.scss +++ b/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/cia.scss @@ -243,6 +243,43 @@ } } +.politician-overview-card { + background: #1f1f1f; + border-radius: 8px; + box-shadow: 0 2px 5px rgba(0,0,0,0.3); + color: #e0e0e0; + margin: 1rem 0; + width: 100%; + box-sizing: border-box; + padding: 1rem; + + &:hover { + box-shadow: 0 4px 10px rgba(0,0,0,0.4); + } +} + +.ministry-overview-card { + background: #1f1f1f; + border-radius: 8px; + box-shadow: 0 2px 5px rgba(0,0,0,0.3); + color: #e0e0e0; + margin: 1rem 0; + width: 100%; + box-sizing: border-box; + padding: 1rem; + + &:hover { + box-shadow: 0 4px 10px rgba(0,0,0,0.4); + } +} + +.card-ministry { + font-size: 0.9rem; + color: #a0ff90; + margin-top: 0.3rem; +} + + .card-header-section { border-bottom: 2px solid #333; margin-bottom: 0.25rem; // Less empty space after headers @@ -320,8 +357,3 @@ } } -.card-ministry { - font-size: 0.9rem; - color: #a0ff90; - margin-top: 0.3rem; -} diff --git a/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/styles.css b/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/styles.css index 1b40e3c63ed..efa6bae2246 100644 --- a/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/styles.css +++ b/citizen-intelligence-agency/src/main/webapp/VAADIN/themes/cia/styles.css @@ -2414,6 +2414,42 @@ div.v-layout.v-horizontal.v-widget { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); } +.politician-overview-card { + background: #1f1f1f; + border-radius: 8px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); + color: #e0e0e0; + margin: 1rem 0; + width: 100%; + box-sizing: border-box; + padding: 1rem; +} + +.politician-overview-card:hover { + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); +} + +.ministry-overview-card { + background: #1f1f1f; + border-radius: 8px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); + color: #e0e0e0; + margin: 1rem 0; + width: 100%; + box-sizing: border-box; + padding: 1rem; +} + +.ministry-overview-card:hover { + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); +} + +.card-ministry { + font-size: 0.9rem; + color: #a0ff90; + margin-top: 0.3rem; +} + .card-header-section { border-bottom: 2px solid #333; margin-bottom: 0.25rem; @@ -2490,12 +2526,6 @@ div.v-layout.v-horizontal.v-widget { word-break: break-word; } -.card-ministry { - font-size: 0.9rem; - color: #a0ff90; - margin-top: 0.3rem; -} - .cia { @-webkit-keyframes progressIndeterminate { 0% {