From 778ff84f3146d06dc3a900c5f903e3ebf70d60a4 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Thu, 8 Dec 2022 15:16:04 +0100 Subject: [PATCH] consolidate css files --- app/src/frontend/map/borough-switcher.css | 37 ------------ app/src/frontend/map/borough-switcher.tsx | 4 +- .../frontend/map/conservation-switcher.css | 37 ------------ .../frontend/map/conservation-switcher.tsx | 4 +- app/src/frontend/map/creative-switcher.css | 37 ------------ app/src/frontend/map/creative-switcher.tsx | 4 +- app/src/frontend/map/data-switcher.css | 37 ------------ app/src/frontend/map/data-switcher.tsx | 4 +- app/src/frontend/map/flood-switcher.css | 37 ------------ app/src/frontend/map/flood-switcher.tsx | 4 +- .../frontend/map/historic-data-switcher.tsx | 4 +- app/src/frontend/map/housing-switcher.css | 37 ------------ app/src/frontend/map/housing-switcher.tsx | 4 +- ...toric-data-switcher.css => map-button.css} | 56 ++++++++++++++++--- app/src/frontend/map/parcel-switcher.css | 37 ------------ app/src/frontend/map/parcel-switcher.tsx | 4 +- app/src/frontend/map/theme-switcher.css | 37 ------------ app/src/frontend/map/theme-switcher.tsx | 4 +- app/src/frontend/map/vista-switcher.css | 37 ------------ app/src/frontend/map/vista-switcher.tsx | 4 +- 20 files changed, 68 insertions(+), 361 deletions(-) delete mode 100644 app/src/frontend/map/borough-switcher.css delete mode 100644 app/src/frontend/map/conservation-switcher.css delete mode 100644 app/src/frontend/map/creative-switcher.css delete mode 100644 app/src/frontend/map/data-switcher.css delete mode 100644 app/src/frontend/map/flood-switcher.css delete mode 100644 app/src/frontend/map/housing-switcher.css rename app/src/frontend/map/{historic-data-switcher.css => map-button.css} (51%) delete mode 100644 app/src/frontend/map/parcel-switcher.css delete mode 100644 app/src/frontend/map/theme-switcher.css delete mode 100644 app/src/frontend/map/vista-switcher.css diff --git a/app/src/frontend/map/borough-switcher.css b/app/src/frontend/map/borough-switcher.css deleted file mode 100644 index 102f1f60..00000000 --- a/app/src/frontend/map/borough-switcher.css +++ /dev/null @@ -1,37 +0,0 @@ -.borough-theme { - filter: grayscale(100%) invert(1); -} - -.borough-theme { - filter: none; -} - -.borough-switcher { - z-index: 1000; - position: absolute; - top: 157px; - right: 10px; - float: right; - background: white; - border-radius: 4px; -} -.borough-switcher .btn { - margin: 0; - min-width: 280px; -} -.borough-switcher.night .btn { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} -.borough-switcher.night .btn:hover { - color: #343a40; - background-color: transparent; - background-image: none; - border-color: #343a40; -} -@media (max-width: 990px){ - .borough-switcher { - visibility: hidden; - } -} diff --git a/app/src/frontend/map/borough-switcher.tsx b/app/src/frontend/map/borough-switcher.tsx index 68e35efd..e348e910 100644 --- a/app/src/frontend/map/borough-switcher.tsx +++ b/app/src/frontend/map/borough-switcher.tsx @@ -1,12 +1,12 @@ import React from 'react'; -import './borough-switcher.css'; +import './map-button.css'; import { useDisplayPreferences } from '../displayPreferences-context'; export const BoroughSwitcher: React.FC<{}> = () => { const { borough, boroughSwitch, darkLightTheme } = useDisplayPreferences(); return ( -
+