Skip to content

Commit

Permalink
[BS5.3] Replace . navbar-dark by data attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Mar 15, 2024
1 parent 1929a65 commit cdd40f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions assets/scss/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// Styling adjustments for the navbar
@at-root {
.td-navbar & {
color: $navbar-dark-color;
color: inherit;
}
}
}
Expand All @@ -44,17 +44,17 @@
&.form-control:focus {
border-color: tint-color($primary, 95%);
box-shadow: 0 0 0 2px tint-color($primary, 40%);
color: inherit;
color: initial;
}

// Styling adjustments for the navbar
@at-root {
.td-navbar & {
border: none;
color: $navbar-dark-color;
color: inherit;

@include placeholder {
color: $navbar-dark-color;
color: inherit;
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ $td-block-space-bottom-base: 4 * $spacer !default;
$pagination-color: $gray-600 !default; // TODO: consider using BS default
$pagination-disabled-color: $gray-300 !default; // TODO: consider using BS default

// Navbar

$navbar-dark-color: rgba($white, 0.75) !default; // TODO: consider moving into UG SCSS
$navbar-dark-hover-color: rgba($white, 0.5) !default; // TODO: consider moving into UG SCSS

// Footer

$list-inline-padding: $spacer;
4 changes: 2 additions & 2 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
-}}
{{ $baseURL := urls.Parse $.Site.Params.Baseurl -}}

<nav class="td-navbar navbar-dark js-navbar-scroll
{{- if $cover }} td-navbar-cover {{- end }}">
<nav class="td-navbar js-navbar-scroll
{{- if $cover }} td-navbar-cover {{- end }}" data-bs-theme="dark">
<div class="container-fluid flex-column flex-md-row">
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
{{- /**/ -}}
Expand Down

0 comments on commit cdd40f4

Please sign in to comment.