diff --git a/public/css/openinghourstable.css b/public/css/openinghourstable.css index 97986c24b..e938c4701 100644 --- a/public/css/openinghourstable.css +++ b/public/css/openinghourstable.css @@ -19,7 +19,7 @@ } .oh-timecell { - background-color: white; + background: white; position: relative; box-sizing: border-box; } @@ -27,32 +27,38 @@ .oh-table th { font-weight: bold; font-size: medium; - background-color: #ddd; + background: #ddd; } .oh-table td { vertical-align: top; } -.oh-timecell:hover { - background-color: var(--catch-detail-color) !important; +.oh-timecell:hover, .oh-timecell-half:hover { + background: var(--catch-detail-color) !important; } .oh-timecell-selected { - background-color: var(--catch-detail-color); + background: var(--catch-detail-color); } +.oh-timecell.oh-timecell-5:not(.oh-timecell-half), .oh-timecell.oh-timecell-6:not(.oh-timecell-half) { + background: repeating-linear-gradient(-65deg, var(--background-color) 0 4.8px, var(--subtle-detail-color) 7px) +} .oh-timecell-half { border-bottom: 1px solid #ddd; - background-color: var(--subtle-detail-color); + background: var(--subtle-detail-color); } + + .oh-timecell-half.oh-timecell-selected { - background-color: var(--catch-detail-color); + background: var(--catch-detail-color); } + .oh-table tr { background: #ddd; } @@ -81,7 +87,7 @@ } .oh-timecol-selected > span { - background-color: var(--catch-detail-color); + background: var(--catch-detail-color); color: var(--background-color); width: 100%; display: block; diff --git a/src/UI/Base/ModalRight.svelte b/src/UI/Base/ModalRight.svelte index cbff2cc25..2e0b227d2 100644 --- a/src/UI/Base/ModalRight.svelte +++ b/src/UI/Base/ModalRight.svelte @@ -9,7 +9,7 @@
diff --git a/src/UI/InputElement/Helpers/OpeningHoursInput.svelte b/src/UI/InputElement/Helpers/OpeningHoursInput.svelte new file mode 100644 index 000000000..d2a36ebde --- /dev/null +++ b/src/UI/InputElement/Helpers/OpeningHoursInput.svelte @@ -0,0 +1,11 @@ + + + diff --git a/src/UI/InputElement/InputHelpers.ts b/src/UI/InputElement/InputHelpers.ts index 46c1c9c07..93705ca18 100644 --- a/src/UI/InputElement/InputHelpers.ts +++ b/src/UI/InputElement/InputHelpers.ts @@ -6,13 +6,13 @@ import { MapProperties } from "../../Models/MapProperties" import DateInput from "./Helpers/DateInput.svelte" import ColorInput from "./Helpers/ColorInput.svelte" import BaseUIElement from "../BaseUIElement" -import OpeningHoursInput from "../OpeningHours/OpeningHoursInput" import WikidataSearchBox from "../Wikipedia/WikidataSearchBox" import Wikidata from "../../Logic/Web/Wikidata" import { Utils } from "../../Utils" import Locale from "../i18n/Locale" import { Feature } from "geojson" import { GeoOperations } from "../../Logic/GeoOperations" +import OpeningHoursInput from "./Helpers/OpeningHoursInput.svelte" export interface InputHelperProperties { /** @@ -53,7 +53,7 @@ export default class InputHelpers { }), date: (value) => new SvelteUIElement(DateInput, { value }), color: (value) => new SvelteUIElement(ColorInput, { value }), - opening_hours: (value) => new OpeningHoursInput(value), + opening_hours: (value) => new SvelteUIElement(OpeningHoursInput, {value}), wikidata: InputHelpers.constructWikidataHelper, } as const diff --git a/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte b/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte index d50d0efcd..128f2d457 100644 --- a/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte +++ b/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte @@ -178,8 +178,10 @@ {#if config.question !== undefined} -
-
+
+
+ +
@@ -197,9 +199,10 @@ />
{/if} +
{#if config.mappings?.length >= 8} -
+
@@ -309,7 +312,7 @@
{/if} -
+