From 88a2df10fd778fc0dc0736f4115c77242b8992e0 Mon Sep 17 00:00:00 2001 From: geekifan Date: Mon, 28 Apr 2025 22:13:14 +0800 Subject: [PATCH] update _syntax.scss --- assets/scss/base/_syntax.scss | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/assets/scss/base/_syntax.scss b/assets/scss/base/_syntax.scss index e55a096..3d43ff1 100644 --- a/assets/scss/base/_syntax.scss +++ b/assets/scss/base/_syntax.scss @@ -46,7 +46,7 @@ code:not([class]):not([id]) { } } - .lineno { + tr td:first-child code { text-align: right; color: var(--highlight-lineno-color); -webkit-user-select: none; @@ -54,6 +54,15 @@ code:not([class]):not([id]) { -o-user-select: none; -ms-user-select: none; user-select: none; + background-color: unset !important; + border-radius: unset !important; + word-break: unset !important; + padding: unset !important; + font-size: unset !important; + } + + .chroma { + padding-bottom: 6px; } } /* .highlight */ @@ -125,9 +134,6 @@ div[class^='highlight'] { box-shadow: var(--language-border-color) 0 0 0 1px; .content > & { - @include mx.ml-mr(-1rem); - - border-radius: 0; @include bp.sm { @include mx.ml-mr(0);