Skip to content

Commit

Permalink
feat(theme): tone down line diff decorations
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Jul 27, 2024
1 parent f4026c7 commit 3429c40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,12 @@
.hl .line[data-line-added] {
--hlLineNumberColor: var(--hlLineNumberAddedColor);
--hlLineBgColor: var(--hlLineAddedBgColor);
--hlLineBorderColor: var(--hlLineNumberColor);
position: relative;
}

.hl .line[data-line-added]::before {
content: "";
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' fill-rule='evenodd' clip-rule='evenodd' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M12 8v8'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' fill-rule='evenodd' clip-rule='evenodd' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12m-6-6v12'/%3E%3C/svg%3E");
mask-repeat: no-repeat;
mask-position: top center;
mask-size: contain;
Expand All @@ -113,13 +112,12 @@
.hl .line[data-line-removed] {
--hlLineNumberColor: var(--hlLineNumberRemovedColor);
--hlLineBgColor: var(--hlLineRemovedBgColor);
--hlLineBorderColor: var(--hlLineNumberColor);
position: relative;
}

.hl .line[data-line-removed]::before {
content: "";
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' fill-rule='evenodd' clip-rule='evenodd' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' fill-rule='evenodd' clip-rule='evenodd' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
mask-repeat: no-repeat;
mask-position: top center;
mask-size: contain;
Expand Down

0 comments on commit 3429c40

Please sign in to comment.