Skip to content

Commit

Permalink
Few miscellaneous docs fixes (#37625)
Browse files Browse the repository at this point in the history
* Update hero button color

* Fix link color on examples index

* Move .bd-btn-lg to docs buttons partial, move larger border-radius to that class so medium buttons don't look odd

* Undo the markup split

* Round padding up to whole number
  • Loading branch information
mdo authored Dec 26, 2022
1 parent 98ebf3a commit 6295d3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 8 additions & 3 deletions site/assets/scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
.btn-bd-primary {
--bs-btn-font-weight: 600;
--bs-btn-color: var(--bs-white);
--bs-btn-bg: var(--bd-violet);
--bs-btn-border-color: var(--bd-violet);
--bs-btn-border-radius: .5rem;
--bs-btn-bg: var(--bd-violet-bg);
--bs-btn-border-color: var(--bd-violet-bg);
--bs-btn-hover-color: var(--bs-white);
--bs-btn-hover-bg: #{shade-color($bd-violet, 10%)};
--bs-btn-hover-border-color: #{shade-color($bd-violet, 10%)};
Expand Down Expand Up @@ -45,3 +44,9 @@
--bs-btn-focus-border-color: var(--btn-custom-color);
--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
}

.bd-btn-lg {
--bs-btn-border-radius: .5rem;

padding: .8125rem 2rem;
}
4 changes: 0 additions & 4 deletions site/assets/scss/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@
}
}

.bd-btn-lg {
padding: .8rem 2rem;
}

.masthead-followup-icon {
padding: 1rem;
color: rgba(var(--bg-rgb), 1);
Expand Down
4 changes: 3 additions & 1 deletion site/content/docs/5.3/examples/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ aliases: "/examples/"
alt=""
width="480" height="300"
loading="lazy">
<h3 class="h5 mb-1">{{ $example.name }}</h3>
<h3 class="h5 mb-1">
{{ $example.name }}
</h3>
</a>
<p class="text-muted">{{ $example.description }}</p>
</div>
Expand Down

0 comments on commit 6295d3b

Please sign in to comment.