fix: font incorrect in content view

This commit is contained in:
PandaDEV 2024-11-22 00:15:07 +10:00
parent bfa9cf5018
commit fa02076b75
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C

View file

@ -1,10 +1,10 @@
$primary: #2E2D2B; $primary: #2e2d2b;
$accent: #FEB453; $accent: #feb453;
$divider: #ffffff0d; $divider: #ffffff0d;
$text: #E5DFD5; $text: #e5dfd5;
$text2: #ADA9A1; $text2: #ada9a1;
$mutedtext: #78756F; $mutedtext: #78756f;
.bg { .bg {
width: 750px; width: 750px;
@ -100,7 +100,7 @@ $mutedtext: #78756F;
left: 284px; left: 284px;
padding: 8px; padding: 8px;
height: calc(100vh - 96px); height: calc(100vh - 96px);
font-family: CommitMono !important; font-family: CommitMono Nerd Font !important;
font-size: 14px; font-size: 14px;
letter-spacing: 1; letter-spacing: 1;
border-radius: 10px; border-radius: 10px;
@ -108,9 +108,8 @@ $mutedtext: #78756F;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
div { span {
border-radius: 10px; font-family: CommitMono Nerd Font !important;
font-family: CommitMono !important;
} }
.full-image { .full-image {
@ -183,7 +182,7 @@ $mutedtext: #78756F;
background-color: $divider; background-color: $divider;
margin-left: 8px; margin-left: 8px;
margin-right: 4px; margin-right: 4px;
transition: all .2s; transition: all 0.2s;
} }
.paste, .paste,
@ -195,7 +194,7 @@ $mutedtext: #78756F;
gap: 8px; gap: 8px;
border-radius: 7px; border-radius: 7px;
background-color: transparent; background-color: transparent;
transition: all .2s; transition: all 0.2s;
cursor: pointer; cursor: pointer;
} }
@ -204,15 +203,16 @@ $mutedtext: #78756F;
background-color: $divider; background-color: $divider;
} }
&:hover .paste:hover~.divider, &:hover .paste:hover ~ .divider,
&:hover .actions:hover~.divider { &:hover .actions:hover ~ .divider {
opacity: 0; opacity: 0;
} }
} }
} }
.clothoid-corner { .clothoid-corner {
clip-path: polygon(13.890123px 0px, clip-path: polygon(
13.890123px 0px,
calc(100% - 13.890123px) 0px, calc(100% - 13.890123px) 0px,
calc(100% - 12.723414px) 0.004211px, calc(100% - 12.723414px) 0.004211px,
calc(100% - 11.556933px) 0.025635px, calc(100% - 11.556933px) 0.025635px,
@ -296,5 +296,6 @@ $mutedtext: #78756F;
10.391895px 0.085062px, 10.391895px 0.085062px,
11.556933px 0.025635px, 11.556933px 0.025635px,
12.723414px 0.004211px, 12.723414px 0.004211px,
13.890123px 0px); 13.890123px 0px
);
} }