From 263bdd5b7d9f1ffcc8b74363ccc429fb6fd6c844 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 5 Jan 2021 09:24:39 +0100 Subject: css naar tsx :tada: --- src/components/navbar.tsx | 49 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 10 deletions(-) (limited to 'src/components') diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index 38f3810..45818b3 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -1,4 +1,4 @@ -import "../css/navbar.css"; +import {CSSProperties} from "react"; import { LogoDark } from "../components/logo"; @@ -9,17 +9,46 @@ import SearchIcon from '@material-ui/icons/Search'; import SettingsIcon from '@material-ui/icons/Settings'; +var NavBarStyle: CSSProperties = { + width: 48, + height: "100%", + + lineHeight: 0, + + backgroundColor: "var(--background)", + display: "inline-block", + + position: "fixed", + top: 0, + left: 0, + + overflow: "hidden", + whiteSpace: "nowrap", +} + +var NavBarItemStyle: CSSProperties = { + margin: 12, + marginBottom: 16, + display: "block" +} + +var NavBarSettingsAreaStyle: CSSProperties = { + position: "absolute", + bottom: -4, + left: 0 +} + function NavBar() { return ( -
- - - - - - -
- +
+
+ + + + + +
+
); -- cgit v1.2.3