Skip to content

Commit

Permalink
Use upstream utilities when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Dec 24, 2023
1 parent 7dcec33 commit ea77031
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
10 changes: 5 additions & 5 deletions src/assets/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Local docs variables
$bd-purple: #4c0bce;
$bd-violet: lighten(saturate($bd-purple, 5%), 15%);
// $bd-purple-light: lighten(saturate($bd-purple, 5%), 45%);
$bd-accent: #ffe484;
$bd-gutter-x: 3rem;
$bd-purple: #4c0bce;
$bd-violet: lighten(saturate($bd-purple, 5%), 15%);
// $bd-purple-light: lighten(saturate($bd-purple, 5%), 45%);
$bd-accent: #ffe484;
$bd-gutter-x: 3rem;

:root,
[data-bs-theme="light"] {
Expand Down
8 changes: 0 additions & 8 deletions src/assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
@import "syntax";
@import "theme";

.f0 { font-size: 3rem; }
.f2 { font-size: 2rem; }
.f3 { font-size: 1.75rem; }
.f4 { font-size: 1.5rem; }
.f5 { font-size: 1.25rem; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

hr {
margin-block: 2rem;
}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{- $lazyload := cond (eq $i 0) false true -}}

<div class="post">
<h1 class="post-title fw-600">
<h1 class="post-title fw-semibold">
<a href="{{ .RelPermalink }}" class="text-decoration-none">{{ .Title }}</a>
</h1>

Expand Down
6 changes: 3 additions & 3 deletions src/layouts/partials/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ <h1 class="mb-1 mb-lg-2 f1 fw-600">The Bootstrap Blog</h1>
</div>

<nav class="nav nav-pills justify-content-center flex-lg-column justify-content-lg-start gap-1 sidebar-nav">
<a class="nav-link d-flex align-items-center{{ if .IsHome }} active fw-600{{ end }}" href="/">
<a class="nav-link d-flex align-items-center{{ if .IsHome }} active fw-semibold{{ end }}" href="/">
<svg class="bi me-2 f5 bd-text-purple"><use xlink:href="#file-earmark-richtext"></use></svg>
All posts
</a>
<a class="nav-link d-flex align-items-center{{ if eq .Page.Title "Archive" }} active fw-600{{ end }}" href="/archive/">
<a class="nav-link d-flex align-items-center{{ if eq .Page.Title "Archive" }} active fw-semibold{{ end }}" href="/archive/">
<svg class="bi me-2 f5 text-primary"><use xlink:href="#archive"></use></svg>
Archive
</a>
<a class="nav-link d-flex align-items-center{{ if eq .Page.Title "Videos" }} active fw-600{{ end }}" href="/videos/">
<a class="nav-link d-flex align-items-center{{ if eq .Page.Title "Videos" }} active fw-semibold{{ end }}" href="/videos/">
<svg class="bi me-2 f5 text-info"><use xlink:href="#film"></use></svg>
Videos
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/posts/single.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ define "main" }}
<div class="posts-container mx-auto my-5">
<div class="post">
<h1 class="post-title fw-600">{{ .Page.Title }}</h1>
<h1 class="post-title fw-semibold">{{ .Page.Title }}</h1>
{{ partial "author-info" (dict "context" .) -}}

{{- if .Page.Params.video -}}
Expand Down

0 comments on commit ea77031

Please sign in to comment.