From 03166101eb6f05de94eaa765ee6db9823cef45b2 Mon Sep 17 00:00:00 2001 From: hyzen Date: Thu, 16 Apr 2026 16:47:38 +0530 Subject: [PATCH] Update: UniNotes page style --- docs/css/custom.css | 22 +++++++++++++--------- docs/uninotes/index.html | 2 +- layouts/uninotes/section.html | 2 +- static/css/custom.css | 22 +++++++++++++--------- 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/docs/css/custom.css b/docs/css/custom.css index 11ab3df..cd06457 100644 --- a/docs/css/custom.css +++ b/docs/css/custom.css @@ -662,6 +662,10 @@ /* ── UniNotes Contents Panel ─────────────────────────────────────────────── */ +.uninotes-contents-heading { + margin-bottom: -14.6px; +} + .uninotes-contents { margin: 1.25rem 0 2rem 0; border-left: 3px solid var(--accent-color); @@ -674,7 +678,6 @@ .uninotes-contents__semester { display: flex; flex-direction: column; - gap: 0.3rem; } .uninotes-contents__sem-link { @@ -693,8 +696,9 @@ .uninotes-contents__subject { display: flex; flex-direction: column; - gap: 0.25rem; - padding-left: 0.7rem; + gap: 0.1rem; + padding-top: 0.3rem; + padding-left: 1.21rem; } .uninotes-contents__subject-link { @@ -702,7 +706,7 @@ font-weight: 600; color: var(--foreground-color); text-decoration: none; - letter-spacing: 0.05rem; + letter-spacing: 0.04rem; } .uninotes-contents__subject-link:hover { @@ -713,21 +717,21 @@ .uninotes-contents__units { list-style: none; padding: 0.6px; - margin: 0.15rem 0 0.3rem 0.75rem; + margin: 0.15rem 0 0.3rem 1.21rem; display: flex; flex-direction: column; - gap: 0.03rem; + gap: 0.1rem; } .uninotes-contents__unit { display: flex; align-items: center; - gap: 0.7rem; + gap: 0.68rem; flex-wrap: wrap; } .uninotes-contents__unit-link { - font-size: 0.9rem; + font-size: 0.94rem; color: var(--foreground-color); text-decoration: none; } @@ -739,7 +743,7 @@ .uninotes-contents__unit-cats { display: flex; - gap: 0.25rem; + gap: 0.05rem; } .uninotes-contents__cat { diff --git a/docs/uninotes/index.html b/docs/uninotes/index.html index e14513b..567d319 100644 --- a/docs/uninotes/index.html +++ b/docs/uninotes/index.html @@ -7,7 +7,7 @@

UniNotes

Contents

UniNotes

Contents

S1
BO DCM1109
  • Unit 1 Self Live
  • Unit 2 Self diff --git a/layouts/uninotes/section.html b/layouts/uninotes/section.html index 534bcb1..51bee31 100644 --- a/layouts/uninotes/section.html +++ b/layouts/uninotes/section.html @@ -6,7 +6,7 @@

    UniNotes

    -

    Contents

    +

    Contents

    {{/* Build full tree: semester → subjectcode → units → self/live */}} {{ $semesters := site.Taxonomies.semester.Alphabetical }} diff --git a/static/css/custom.css b/static/css/custom.css index 11ab3df..cd06457 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -662,6 +662,10 @@ /* ── UniNotes Contents Panel ─────────────────────────────────────────────── */ +.uninotes-contents-heading { + margin-bottom: -14.6px; +} + .uninotes-contents { margin: 1.25rem 0 2rem 0; border-left: 3px solid var(--accent-color); @@ -674,7 +678,6 @@ .uninotes-contents__semester { display: flex; flex-direction: column; - gap: 0.3rem; } .uninotes-contents__sem-link { @@ -693,8 +696,9 @@ .uninotes-contents__subject { display: flex; flex-direction: column; - gap: 0.25rem; - padding-left: 0.7rem; + gap: 0.1rem; + padding-top: 0.3rem; + padding-left: 1.21rem; } .uninotes-contents__subject-link { @@ -702,7 +706,7 @@ font-weight: 600; color: var(--foreground-color); text-decoration: none; - letter-spacing: 0.05rem; + letter-spacing: 0.04rem; } .uninotes-contents__subject-link:hover { @@ -713,21 +717,21 @@ .uninotes-contents__units { list-style: none; padding: 0.6px; - margin: 0.15rem 0 0.3rem 0.75rem; + margin: 0.15rem 0 0.3rem 1.21rem; display: flex; flex-direction: column; - gap: 0.03rem; + gap: 0.1rem; } .uninotes-contents__unit { display: flex; align-items: center; - gap: 0.7rem; + gap: 0.68rem; flex-wrap: wrap; } .uninotes-contents__unit-link { - font-size: 0.9rem; + font-size: 0.94rem; color: var(--foreground-color); text-decoration: none; } @@ -739,7 +743,7 @@ .uninotes-contents__unit-cats { display: flex; - gap: 0.25rem; + gap: 0.05rem; } .uninotes-contents__cat {