Skip to content

Commit

Permalink
improved hover
Browse files Browse the repository at this point in the history
  • Loading branch information
tivvit committed Oct 20, 2024
1 parent f755a30 commit 14761f3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
11 changes: 7 additions & 4 deletions _site/assets/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _site/assets/css/main.css.map

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ body {

.comment-box {
background-color: rgba(255, 255, 255, .1);
border-radius: $radius/2;
border-radius: calc($radius/2);
}

.info-box {
Expand All @@ -68,29 +68,33 @@ body {
display: inline-block;

transition: all 300ms;

&:hover {
text-shadow: rgba(0, 0, 0, .5) 1px 2px 2px;
}
}

.light {
background-color: $gray;

&:hover {
background-color: darken($gray, 20%);
background-color: transparentize($gray, .2);
}
}

.blue {
background-color: $blue;

&:hover {
background-color: darken($blue, 20%);
background-color: transparentize($blue, .2);
}
}

.purple {
background-color: $purple;

&:hover {
background-color: darken($purple, 20%);
background-color: transparentize($purple, .2);
}
}

Expand All @@ -102,8 +106,9 @@ body {
a {
color: $text;

&:hover {
&:not(.button):hover {
color: darken(white, 20%);

}
}

Expand Down

0 comments on commit 14761f3

Please sign in to comment.