Skip to content

Commit

Permalink
Further tweak to the background of inline code inside links
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Apr 27, 2024
1 parent f3a3e07 commit 025afe4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions styles/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,17 @@ a {
color: $white;

code {
background: linear-gradient($blue1, $blue1) center calc(100% - 0.2em + 0.5px) / 100% calc(100% - (0.2em * 2)) no-repeat, linear-gradient($gray8, $gray8);
background:
linear-gradient($blue2, $blue2) center calc(100% - 0.2em + 0.5px) / 100% 1px no-repeat,
linear-gradient($gray8, $gray8) center top / 100% 0% no-repeat;
color: $white;
}
}

code {
background: linear-gradient($blue2, $blue2) center calc(100% - 0.2em + 0.5px) / 100% 1px no-repeat, linear-gradient($gray8, $gray8);
background:
linear-gradient($blue2, $blue2) center calc(100% - 0.2em + 0.5px) / 100% 1px no-repeat,
linear-gradient($gray8, $gray8) center top / 100% 100% no-repeat;
transition:
background 300ms ease-in-out,
color 300ms ease-in-out;
Expand Down

0 comments on commit 025afe4

Please sign in to comment.