Skip to content

Commit

Permalink
Fix #1241 (comment) icons
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton committed May 18, 2022
1 parent d611746 commit 0ef6d26
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions site/assets/scss/_clipboard-js.scss
Expand Up @@ -42,8 +42,8 @@

// Boosted mod
.bi {
width: 1.4em;
height: 1.4em;
width: 1.8125rem;
height: 1.8125rem;
}
// End mod
}
Expand Down
4 changes: 2 additions & 2 deletions site/assets/scss/_content.scss
Expand Up @@ -114,8 +114,8 @@
backface-visibility: hidden;

.bi {
width: 1.5em;
height: 1.5em;
width: .75em; // Boosted mod
height: .75em; // Boosted mod
transition: .2s ease-in-out transform; // stylelint-disable-line property-disallowed-list
}

Expand Down
10 changes: 10 additions & 0 deletions site/assets/scss/_sidebar.scss
Expand Up @@ -50,3 +50,13 @@
font-weight: 600;
}
}

// Boosted mod
.bd-links-heading {
transform: translateX(-#{$spacer * .25});

svg {
font-size: 1.5625rem;
}
}
// End mod
2 changes: 1 addition & 1 deletion site/layouts/partials/docs-sidebar.html
Expand Up @@ -19,7 +19,7 @@
<li class="bd-links-group py-2">
<strong class="bd-links-heading d-flex w-100 align-items-center fw-semibold">
{{- if $group.icon }}
<svg class="bi me-2"{{- if $group.icon_color }} style="color: var(--bs-{{ $group.icon_color }});"{{- end }} aria-hidden="true"><use xlink:href="#{{ $group.icon }}"></use></svg>
<svg class="bi me-1"{{- if $group.icon_color }} style="color: var(--bs-{{ $group.icon_color }});"{{- end }} aria-hidden="true"><use xlink:href="#{{ $group.icon }}"></use></svg>
{{- end }}
{{ $group.title }}
</strong>
Expand Down

0 comments on commit 0ef6d26

Please sign in to comment.