From efdb8661c0cfbaf0c39f39b3b01441d488faf6c1 Mon Sep 17 00:00:00 2001 From: Tobias Gabelunke Date: Thu, 2 Jul 2020 16:24:14 +0200 Subject: [PATCH] fixed sidebar position over content, added effect for hovering over links --- src/app/app.component.css | 27 ++++++++++++++++----------- src/app/app.component.html | 25 ++++++++++--------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/app/app.component.css b/src/app/app.component.css index 3d1d1d0..54addcd 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -1,15 +1,20 @@ -.sidebar-wrapper { - position: relative; - margin-top: 0px; +.sidebar { + width: 150px; + position: relative; + float: left; + margin-top: 10px; } -.sidebar { - position: absolute; - width: 15%; +.nav a { + font-size: 1em; +} + +.nav a:hover:not(.active) { + font-size: 1.15em; + } + +.content { + position: relative; + float: right; margin-top: 10px; } - -.sidebar a:hover:not(.active) { - background-color: indigo; - color: white; -} diff --git a/src/app/app.component.html b/src/app/app.component.html index a0201d7..c7d0a40 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,16 +1,12 @@
-
- -
+ -