From 0a19ba5257535a3a8fdfca98aa26c3c22f8e8028 Mon Sep 17 00:00:00 2001 From: zoomkoding Date: Wed, 7 Jul 2021 22:40:50 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EB=9D=BC=EC=A7=84=20ol=20numbering=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/_markdown-style.scss | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/styles/_markdown-style.scss b/src/styles/_markdown-style.scss index b7a8345a..bd665259 100644 --- a/src/styles/_markdown-style.scss +++ b/src/styles/_markdown-style.scss @@ -1,4 +1,4 @@ -@use './variables' as *; +@use './variables'as *; .markdown .octicon { display: inline-block; @@ -58,6 +58,7 @@ display: inline-block; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E"); } + .markdown { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; @@ -297,7 +298,7 @@ appearance: none; } -.markdown :checked + .radio-label { +.markdown :checked+.radio-label { position: relative; z-index: 1; border-color: #0366d6; @@ -620,11 +621,11 @@ clear: both; } -.markdown > :first-child { +.markdown> :first-child { margin-top: 0 !important; } -.markdown > :last-child { +.markdown> :last-child { margin-bottom: 0 !important; } @@ -659,11 +660,11 @@ border-left: 0.25em solid #dfe2e5; } -.markdown blockquote > :first-child { +.markdown blockquote> :first-child { margin-top: 0; } -.markdown blockquote > :last-child { +.markdown blockquote> :last-child { margin-bottom: 0; } @@ -717,6 +718,10 @@ margin-bottom: 0; } +.markdown ol { + list-style-type: decimal; +} + .markdown ul { list-style-type: disc; } @@ -727,11 +732,11 @@ text-align: -webkit-match-parent; } -.markdown li > p { +.markdown li>p { margin-top: 16px; } -.markdown li + li { +.markdown li+li { margin-top: 0.25em; } @@ -805,7 +810,7 @@ word-wrap: normal; } -.markdown pre > code { +.markdown pre>code { padding: 0; margin: 0; font-size: 100%; @@ -982,7 +987,7 @@ list-style-type: none; } -.markdown .task-list-item + .task-list-item { +.markdown .task-list-item+.task-list-item { margin-top: 3px; } @@ -1017,6 +1022,7 @@ ul { cursor: pointer; list-style-type: none; + li { a { width: 100%; @@ -1024,11 +1030,13 @@ padding: 6px 2px; color: #37352f99; font-size: 14px; + &:hover { background: rgba(55, 53, 47, 0.08); } } } + p { margin: 0; } @@ -1049,4 +1057,4 @@ height: auto !important; position: relative !important; } -} +} \ No newline at end of file