From e0977c983abff89ac3a9e37f616399dc0b6c61c7 Mon Sep 17 00:00:00 2001 From: sptaule Date: Wed, 26 Jan 2022 14:44:47 +0100 Subject: Fix doc links & added noJS support for the doc --- src/input.css | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/input.css b/src/input.css index ba1be60..1a5d06b 100755 --- a/src/input.css +++ b/src/input.css @@ -4,6 +4,10 @@ /* ARTICLES BASIC ELEMENTS */ +article .page-content { + @apply text-lg; +} + /** Pre */ article pre { @@ -66,8 +70,8 @@ article ol ul { @apply ml-4 py-0 list-disc; } -p > code { - @apply bg-gray-100 p-1 rounded font-semibold text-garage-gray shadow-inner; +p > code, p > strong > code, li > code, li > strong > code { + @apply bg-gray-100 text-base py-0.5 px-1 rounded font-semibold text-garage-gray shadow-inner; } .page-content > h1 { @@ -87,9 +91,31 @@ p > code { } .page-content a { - @apply font-semibold text-garage-orange border-b hover:border-garage-gray px-0.5 border-garage-orange bg-transparent hover:bg-garage-orange hover:text-white hover:rounded-sm hover:no-underline duration-150 transition; + @apply font-semibold text-garage-orange border-b hover:border-garage-gray border-garage-orange bg-transparent hover:bg-garage-orange hover:text-white hover:rounded-sm hover:no-underline duration-150 transition; +} + +.page-content img { + @apply inline-block my-8 shadow rounded; } .is-active { @apply text-orange-600; } + +@layer utilities { + + /** Global ToC */ + #global_toc .deploySubMenu { + position: absolute; + left: -100vw; + } + + #global_toc .deploySubMenu:checked ~ .subMenu { + display: none; + } + + #global_toc .deploySubMenu:checked + label .arrow { + transform: rotate(0deg); + } + +} \ No newline at end of file -- cgit v1.2.3