Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Introduce hover-effect() mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslange committed Nov 1, 2023
1 parent 23794a8 commit 0abd028
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 9 additions & 5 deletions assets/css/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,22 @@ $fontSizes: (
text-decoration: underline;
}

@mixin hover-effect() {
&:hover {
text-decoration: none;
color: inherit;
cursor: pointer;
}
}

// Reset <button> style so we can use link style for action buttons in filter blocks
@mixin filter-link-button() {
@include link-button();
@include hover-effect();
@include font-size(small);
text-decoration: underline;
font-weight: normal;
color: inherit;

&:hover {
text-decoration: none;
color: inherit;
}
}

// Makes sure long words are broken if they overflow the container.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ table.wc-block-cart-items {
}
.wc-block-cart-item__quantity {
.wc-block-cart-item__remove-link {
@include link-button;
@include link-button();
@include hover-effect();
@include font-size( smaller );

text-transform: none;
Expand Down

0 comments on commit 0abd028

Please sign in to comment.