From b489da89caad2bd4d43bbe83d571e570e232d2bc Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 28 Sep 2023 01:21:30 +0800 Subject: [PATCH] style(scss): update `rule-empty-line-before` config --- .stylelintrc.json | 2 +- _sass/addon/commons.scss | 2 ++ _sass/colors/syntax-dark.scss | 26 +++++++++++++++++++++++++ _sass/colors/syntax-light.scss | 35 ++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 1 deletion(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index f489fee..a4ccded 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -15,7 +15,7 @@ "scss/operator-no-newline-after": null, "rule-empty-line-before": [ "always", - { "ignore": ["after-comment", "first-nested", "inside-block"] } + { "ignore": ["after-comment", "first-nested"] } ], "value-keyword-case": ["lower", { "ignoreProperties": ["/^\\$/"] }], "media-feature-range-notation": "prefix" diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index 0fa515f..812d7d5 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -527,6 +527,7 @@ main { 0% { transform: translateX(-100%); } + 100% { transform: translateX(100%); } @@ -536,6 +537,7 @@ main { 0% { transform: translateX(-100%); } + 100% { transform: translateX(100%); } diff --git a/_sass/colors/syntax-dark.scss b/_sass/colors/syntax-dark.scss index f40c5ed..d898c65 100644 --- a/_sass/colors/syntax-dark.scss +++ b/_sass/colors/syntax-dark.scss @@ -24,18 +24,22 @@ .highlight table td { padding: 5px; } + .highlight table pre { margin: 0; } + .highlight, .highlight .w { color: #d0d0d0; background-color: #151515; } + .highlight .err { color: #151515; background-color: #ac4142; } + .highlight .c, .highlight .ch, .highlight .cd, @@ -45,32 +49,40 @@ .highlight .cs { color: #848484; } + .highlight .cp { color: #f4bf75; } + .highlight .nt { color: #f4bf75; } + .highlight .o, .highlight .ow { color: #d0d0d0; } + .highlight .p, .highlight .pi { color: #d0d0d0; } + .highlight .gi { color: #90a959; } + .highlight .gd { color: #f08a8b; background-color: #320000; } + .highlight .gh { color: #6a9fb5; background-color: #151515; font-weight: bold; } + .highlight .k, .highlight .kn, .highlight .kp, @@ -78,15 +90,19 @@ .highlight .kv { color: #aa759f; } + .highlight .kc { color: #d28445; } + .highlight .kt { color: #d28445; } + .highlight .kd { color: #d28445; } + .highlight .s, .highlight .sb, .highlight .sc, @@ -98,30 +114,39 @@ .highlight .s1 { color: #90a959; } + .highlight .sa { color: #aa759f; } + .highlight .sr { color: #75b5aa; } + .highlight .si { color: #b76d45; } + .highlight .se { color: #b76d45; } + .highlight .nn { color: #f4bf75; } + .highlight .nc { color: #f4bf75; } + .highlight .no { color: #f4bf75; } + .highlight .na { color: #6a9fb5; } + .highlight .m, .highlight .mb, .highlight .mf, @@ -132,6 +157,7 @@ .highlight .mx { color: #90a959; } + .highlight .ss { color: #90a959; } diff --git a/_sass/colors/syntax-light.scss b/_sass/colors/syntax-light.scss index 605689d..6562c76 100644 --- a/_sass/colors/syntax-light.scss +++ b/_sass/colors/syntax-light.scss @@ -24,14 +24,17 @@ .highlight table td { padding: 5px; } + .highlight table pre { margin: 0; } + .highlight, .highlight .w { color: #24292f; background-color: #f6f8fa; } + .highlight .k, .highlight .kd, .highlight .kn, @@ -41,41 +44,53 @@ .highlight .kv { color: #cf222e; } + .highlight .gr { color: #f6f8fa; } + .highlight .gd { color: #82071e; background-color: #ffebe9; } + .highlight .nb { color: #953800; } + .highlight .nc { color: #953800; } + .highlight .no { color: #953800; } + .highlight .nn { color: #953800; } + .highlight .sr { color: #116329; } + .highlight .na { color: #116329; } + .highlight .nt { color: #116329; } + .highlight .gi { color: #116329; background-color: #dafbe1; } + .highlight .kc { color: #0550ae; } + .highlight .l, .highlight .ld, .highlight .m, @@ -88,21 +103,27 @@ .highlight .mx { color: #0550ae; } + .highlight .sb { color: #0550ae; } + .highlight .bp { color: #0550ae; } + .highlight .ne { color: #0550ae; } + .highlight .nl { color: #0550ae; } + .highlight .py { color: #0550ae; } + .highlight .nv, .highlight .vc, .highlight .vg, @@ -110,18 +131,22 @@ .highlight .vm { color: #0550ae; } + .highlight .o, .highlight .ow { color: #0550ae; } + .highlight .gh { color: #0550ae; font-weight: bold; } + .highlight .gu { color: #0550ae; font-weight: bold; } + .highlight .s, .highlight .sa, .highlight .sc, @@ -135,17 +160,21 @@ .highlight .ss { color: #0a3069; } + .highlight .nd { color: #8250df; } + .highlight .nf, .highlight .fm { color: #8250df; } + .highlight .err { color: #f6f8fa; background-color: #82071e; } + .highlight .c, .highlight .ch, .highlight .cd, @@ -156,22 +185,28 @@ .highlight .cs { color: #68717a; } + .highlight .gl { color: #68717a; } + .highlight .gt { color: #68717a; } + .highlight .ni { color: #24292f; } + .highlight .si { color: #24292f; } + .highlight .ge { color: #24292f; font-style: italic; } + .highlight .gs { color: #24292f; font-weight: bold;