From 16fbc41e6e1e3fa0cf6d89578d78621ba86f14c3 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 20 Sep 2024 17:11:23 +0800 Subject: chore: update CSS files by stylelint --- src/css/style.css | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'src/css/style.css') diff --git a/src/css/style.css b/src/css/style.css index ca53403..34697dc 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -5,6 +5,7 @@ * { margin: 0; + line-height: calc(1em + 0.5rem); } @@ -20,6 +21,7 @@ p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: auto; } + /* End of Reset */ body { @@ -59,26 +61,32 @@ a:hover { } pre:has(code) { - min-width: 400px; display: block; - padding: 9.5px; margin: 0 0 10px; - font-size: 13px; - line-height: 1.42857143; + padding: 9.5px; + + border: 1px solid #ccc; + border-radius: 4px; + + background-color: whitesmoke; + color: #333; + font-size: 13px; + line-height: 1.4286; + min-width: 400px; word-break: break-all; word-wrap: break-word; - background-color: #f5f5f5; - border: 1px solid #ccc; - border-radius: 4px; code { padding: 0; - font-size: inherit; + + border-radius: 0; + + background-color: transparent; + color: inherit; + font-size: inherit; white-space: pre-wrap; - background-color: transparent; - border-radius: 0; } } @@ -94,12 +102,15 @@ li { table { border-collapse: collapse; + width: 100%; } th, td { - border: 1px solid #ddd; padding: 8px; + + border: 1px solid #ddd; + text-align: left; } @@ -109,6 +120,7 @@ th { img { max-width: 100%; + height: auto; } @@ -117,5 +129,6 @@ blockquote { color: gray; font-size: 1.2rem; font-style: italic; + text-align: center; } -- cgit v1.2.3-70-g09d2