Skip to content

Commit

Permalink
assets/follow: update classes to match refactor, add a4 prefix, corre…
Browse files Browse the repository at this point in the history
…ct font name
  • Loading branch information
philli-m authored and m4ra committed Feb 5, 2024
1 parent 04eb04e commit 3981406
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
4 changes: 4 additions & 0 deletions adhocracy-plus/assets/scss/_utility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@
color: $text-muted;
}

.a4-sr-only {
@extend .visually-hidden;
}

// FIXME BS5.1 changed text- and bg- classes are created requires additional SASS map
.text-info {
color: $brand-info;
Expand Down
2 changes: 1 addition & 1 deletion adhocracy-plus/assets/scss/components/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

a[href^="/documents"]:before {
content: "\f016"; // file-o
font-family: "FontAwesome", sans-serif;
font-family: "Font Awesome 5 Free", sans-serif;
font-weight: 900;
margin-right: 0.3em;
}
Expand Down
3 changes: 2 additions & 1 deletion adhocracy-plus/assets/scss/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
margin-bottom: 0;
}

.btn {
.btn,
.a4-btn {
@extend %button-base;

&:disabled,
Expand Down
25 changes: 19 additions & 6 deletions adhocracy-plus/assets/scss/components/_follow.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
.follow__notification {
.a4-follow__notification {
.alert {
margin-top: $r-spacer;
}
}

// nasty overwrite, needs to be changed in a4
.a4-btn--follow:before,
.a4-btn--following:before {
font-family: "Font Awesome\ 5 Free", sans-serif;
font-weight: 900;
margin-right: 0.3em;
}

.a4-btn--follow:before {
content: "\f067"; // plus
}

.a4-btn--following:before {
content: "\f00c"; // check
}

.follow > .btn--light,
.follow > .btn--primary {
.a4-btn--follow,
.a4-btn--following {
background-color: transparent;
border: none;
}

.project-header--image {
.follow > .btn--light,
.follow > .btn--primary {
.a4-btn--follow,
.a4-btn--following {
color: $white;
background-color: transparent;
border: none;
Expand Down

0 comments on commit 3981406

Please sign in to comment.