Skip to content

Commit

Permalink
better link hover color
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsteiger committed Oct 28, 2024
1 parent fcaa587 commit 73db952
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions theming/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@

@import "old/old-styles";

//
1 change: 1 addition & 0 deletions theming/rules/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
&:hover {
background-color: $color-mute-bg !important;
border-color: $color-mute-bg !important;
text-decoration: none;
}
}

Expand Down
6 changes: 3 additions & 3 deletions theming/rules/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
color: $text-muted;

a:hover {
text-decoration: none;
text-decoration: none !important;
}

.nav-link:hover {
color: $links-hover !important;
color: $link-color !important;
}

.navbar-brand:hover {
color: $links-hover !important;
color: $link-color !important;
transition: color 0.15s ease-in-out !important;
}
}
9 changes: 9 additions & 0 deletions theming/rules/_quarto-tweaks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@
.input-group-text {
background-color: $color-mute-bg !important;
}

a {
text-decoration: none;
&:hover {
color: $link-color;
text-decoration: underline;
}

}
5 changes: 3 additions & 2 deletions theming/variables/_colorsdark.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
$dark-green: #073c44;
$light-blue: darken(#EDF4F4, 5%);
$red: #f87683;
$medium-grey: #bcbcbc;

$color-primary: $light-blue; // not sure about this one
$color-secondary: $dark-green;
$color-tertiary: $red;
$color-highlight: darken($color-secondary, 5%);

$color-mute-bg: $gray-800;
Expand All @@ -16,8 +18,7 @@ $color-fg: white;
$text-muted: $medium-grey;

$color-active: lighten($color-secondary, 5%);
$link-color: lighten($color-active, 30%);
$links-hover: lighten($color-active, 30%);
$link-color: $color-tertiary;
$border-hover: $color-active;

p {
Expand Down
9 changes: 4 additions & 5 deletions theming/variables/_colorslight.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
$dark-green: #073c44;

$julia-green: #208921;
$red: #d73a4a;
$light-blue: #EDF4F4;
$medium-grey: #CCD1D5;
$color-fg: black;

$color-primary: $dark-green;
$color-secondary: darken($light-blue, 20%);
$color-tertiary: $red;
$color-highlight: lighten($color-secondary, 10%);

$color-mute-bg: $gray-200;

$color-active: lighten($color-secondary, 5%);
$link-color: $color-primary;
$links-hover: $color-primary;
$border-hover: $color-highlight;
$link-color: $color-tertiary;
$border-hover: darken($color-secondary, 5%);

$body-bg: white;
$light-bg-offset: $color-secondary;
Expand Down

0 comments on commit 73db952

Please sign in to comment.