From 3a4a02154934bb7e18c50c7343ac6a4ee64fe32a Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 8 Apr 2022 19:55:52 +0800 Subject: [PATCH] css improved --- www/css/manual.css | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/www/css/manual.css b/www/css/manual.css index e5d0cfc..9b1845e 100644 --- a/www/css/manual.css +++ b/www/css/manual.css @@ -1,13 +1,17 @@ /* for theme manual */ *,html,body{padding:0:;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"} -.indexes{width:23%;position:fixed;text-align:left;padding-left:0.5em;padding-top:1em} -.content{margin-left:23.8%;padding:0.5em} -.footer{margin:1em auto;text-align:center} -.indexes h1,.indexes h2,.indexes h3,.indexes h4,.indexes h5,.indexes h6{font-size:1.2em;font-weight:normal;margin-bottom:0.35em} +.indexes{width:22%;position:fixed;top:0;bottom:0;text-align:left;padding:0.5em;overflow-y:auto} +.content{margin-left:23.5%;padding:0.5em} +.footer{margin:3em auto;text-align:center} +.indexes h1,.indexes h2,.indexes h3,.indexes h4,.indexes h5,.indexes h6{padding:2px 0 3px 5px;font-size:1.2em;font-weight:normal;margin-bottom:0.35em} .indexes h1{display:none} -.indexes h2{margin-top:1em;} -.indexes h3{text-indent:1em} -.indexes a{background-color:transparent;color:#0969da;text-decoration: none} +.indexes h2{margin-top:1em;padding-top:4px;padding-bottom:4px;box-shadow:1px 1px 2px 1px rgba(0, 0, 0, 0.1)} +.indexes h3,.indexes h4,.indexes h5,.indexes h6{text-indent:1em} +.indexes h3{font-size:1.1em} +.indexes h4{font-size:1em} +.indexes h5{font-size:0.9em} +.indexes h6{font-size:0.8em} +.indexes a{background-color:transparent;color:#0969da;text-decoration:none} @media (max-width: 640px) { .indexes{position:static;width:auto;padding-bottom:0.5em;margin-bottom:0.5em;border-bottom:1px solid hsla(210,18%,87%,1)} .indexes h1{display:block;padding-left:0;padding-bottom:0.3em;text-align:center;font-size:2em;border-bottom:1px solid hsla(210,18%,87%,1)}