From 13d615aa709d37d89afee2e79156552e045fd9e4 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 9 Jan 2021 10:36:49 +0100 Subject: spelregels aanpassen dialoogvenster klaar --- src/components/gameSettings.tsx | 49 ++++++++++++++++++++++++++++++++++------- src/global.css | 3 +-- 2 files changed, 42 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/components/gameSettings.tsx b/src/components/gameSettings.tsx index 79a5029..fb5188e 100644 --- a/src/components/gameSettings.tsx +++ b/src/components/gameSettings.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from 'react'; +import { ReactNode, CSSProperties } from 'react'; import { Button, Vierkant, CheckBox, Input } from './ui'; import { DialogBox } from './dialogBox'; @@ -50,11 +50,14 @@ function GameSettingsSection(props: { children?: ReactNode; title: string; state: boolean; + noMarginBottom?: boolean; }) { return -
{props.children}
+
{props.children}
} +function GameRule(props: { + title: string; + description: string; + style?: CSSProperties; +}) { + return
+

{props.title}

+

{props.description}

+
; +} + export function EditGameSettings() { return
@@ -96,6 +115,20 @@ export function EditGameSettings() { marginLeft: 4 }}>Timer gebruiken voor bijde spelers + +
+ + +
+ + +
+
; } diff --git a/src/global.css b/src/global.css index 354c7ea..5f9011f 100644 --- a/src/global.css +++ b/src/global.css @@ -65,6 +65,5 @@ input::placeholder { .gameBar svg { font-size: 24px; } /* scroll balken */ -::-webkit-scrollbar-track { background-color: var(--background) !important; } -::-webkit-scrollbar-thumb { background-color: var(--background-alt) !important; } +::-webkit-scrollbar { width: 0 !important; } -- cgit v1.2.3