Skip to content

Commit

Permalink
Narrow the scope of the link styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
iris-i committed Feb 11, 2025
1 parent ff7250d commit ff67806
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 10 additions & 3 deletions src/frontend/styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@forward "uswds";

// 3. Load extra utility files & helpers.
@use './utilities/mixins.scss' as mixin;
@use "./utilities/mixins.scss" as mixin;

// 3. Load custom Sass
@forward "project-styles.scss";
Expand All @@ -14,7 +14,7 @@ $goals-gray: rgba(202, 204, 216, 1);
$ink: #1b1b1b;

a {
@include mixin.link-styles;
@include mixin.universal-link-styles;
}

.goal-card {
Expand Down Expand Up @@ -55,6 +55,14 @@ a {
width: 394px;
max-width: 394px;
padding: 24px;

a {
color: mixin.$goalsblue-dark;

&:visited {
color: mixin.$goalsblue;
}
}
}

.filter-bar {
Expand Down Expand Up @@ -149,7 +157,6 @@ a {
background: white;
}
}

}
}

Expand Down
6 changes: 1 addition & 5 deletions src/frontend/styles/utilities/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ $goalsblue-dark: #162152;
}
}

@mixin link-styles {
@mixin universal-link-styles {
&:hover {
text-decoration: underline;
color: $goalsblue-dark;
}
&:visited {
color: $goalsblue;
}
}

0 comments on commit ff67806

Please sign in to comment.