From 472cf673f79958a6f6a05073f2caa4e21bf9336a Mon Sep 17 00:00:00 2001 From: "Umang G. Patel" <23169768+robonetphy@users.noreply.github.com> Date: Sat, 4 Jun 2022 00:31:00 +0530 Subject: [PATCH] aside style and container added --- src/backend/views/components/aside.twig | 75 +++++++++-------------- src/frontend/styles/components/aside.pcss | 10 +++ 2 files changed, 40 insertions(+), 45 deletions(-) diff --git a/src/backend/views/components/aside.twig b/src/backend/views/components/aside.twig index 25a6133..a99d375 100644 --- a/src/backend/views/components/aside.twig +++ b/src/backend/views/components/aside.twig @@ -1,49 +1,34 @@
- {{ svg('menu') }} Table of contents + {{ svg('menu') }} + Table of contents
- {% for firstLevelPage in menu %} -
- - {{ firstLevelPage.title | striptags }} - - {% if firstLevelPage.children is not empty %} - - {% endif %} -
- {% endfor %} - - -
- Powered by CodeX Docs -
-
+
+ {% for firstLevelPage in menu %} +
+ + {{ firstLevelPage.title | striptags }} + + {% if firstLevelPage.children is not empty %} + + {% endif %} +
+ {% endfor %} +
+ + +
+ Powered by CodeX Docs +
+
diff --git a/src/frontend/styles/components/aside.pcss b/src/frontend/styles/components/aside.pcss index 9630bd1..4f208f5 100644 --- a/src/frontend/styles/components/aside.pcss +++ b/src/frontend/styles/components/aside.pcss @@ -1,6 +1,10 @@ .docs-aside { font-size: 14px; letter-spacing: 0.01em; + display: flex; + flex-direction: column; + height: 100%; + overflow: hidden; @media (--mobile) { position: static; @@ -24,6 +28,11 @@ } } + &__section-wrapper { + flex-grow: 1; + overflow: auto; + } + &__section { margin-bottom: 30px; @@ -73,6 +82,7 @@ display: flex; align-items: center; gap: 18px; + padding-bottom: 20px; .logo { display: inline-flex;