From 7047991dd51e4c0bf21e077cddcfc45384bab75a Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Wed, 7 Aug 2024 00:34:30 +0100 Subject: [PATCH] Add the possibility for a sidebar --- app/assets/stylesheets/master.css | 35 ++++++++++++++++++++++++++ app/views/layouts/application.html.erb | 13 ++++++++-- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/master.css b/app/assets/stylesheets/master.css index e991b48..fdc9df2 100644 --- a/app/assets/stylesheets/master.css +++ b/app/assets/stylesheets/master.css @@ -47,11 +47,20 @@ p, ul, pre { margin: 0; } +.header, +.section { + padding-bottom: 1em; +} + .section { min-width: 20em; width: max-content; } +.section:last-child { + padding-bottom: 0; +} + ul.members li { text-indent: 0em; } @@ -60,6 +69,10 @@ ul.members li:before { content: none } +ul.sidebar-links li:before { + content: ">"; +} + body > div { padding-bottom: 1em; } @@ -92,3 +105,25 @@ table.services tr td:last-child { font-style: italic; } +.page-container { + display: grid; + grid-template-columns: 1fr 250px; + grid-template-rows: 1fr; + grid-column-gap: 0px; + grid-row-gap: 0px; +} + +.page-container > div { + padding: 5px; +} + +.page-container > div.sidebar { + border-left: 2px solid gray; + padding-left: 10px; +} + +.footer hr { + margin-top: 0; + border: none; + border-top: 2px solid gray; +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ad1a593..03ba744 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -9,9 +9,18 @@ - <%= yield %> -
+
+
+ <%= yield %> +
+ + + + + +