Skip to content

Commit

Permalink
fix: diff symbols (#203)
Browse files Browse the repository at this point in the history
* fix: diff symbols

* remove extra space

---------

Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
  • Loading branch information
gtm-nayan and PuruVJ committed Sep 13, 2023
1 parent 5475435 commit c4c2d3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-tomatoes-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/site-kit': patch
---

fix: diff symbols
11 changes: 4 additions & 7 deletions packages/site-kit/src/lib/styles/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
color: var(--sk-code-base);
border-radius: var(--sk-border-radius);
font-size: var(--sk-text-s);
overflow-x: hidden;
overflow-x: auto;
}

.text :where(pre code) {
Expand All @@ -53,7 +53,6 @@
top: 0;
width: 100%;
background: transparent;
overflow-x: auto;
}

.text :where(p code) {
Expand Down Expand Up @@ -130,16 +129,14 @@

.language-diff :where(.inserted, .deleted)::before {
position: absolute;
left: -0.6rem;
top: -0.2rem;
font-size: 1.2rem;
left: -1ch;
}

.language-diff :where(.inserted::before) {
.language-diff :where(.inserted)::before {
content: '+';
}

.language-diff :where(.deleted::before) {
.language-diff :where(.deleted)::before {
content: '-';
}

Expand Down

0 comments on commit c4c2d3b

Please sign in to comment.