From 46bb9e78d74e0c7f4fa6f6fa611f3d9f8f28860b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 13 May 2022 10:11:09 -0700 Subject: [PATCH] Fix homepage npm install snippet --- site/assets/scss/_masthead.scss | 15 ++++++++++++--- site/layouts/partials/home/masthead.html | 6 +++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/site/assets/scss/_masthead.scss b/site/assets/scss/_masthead.scss index 4bb356e103..76d003c95e 100644 --- a/site/assets/scss/_masthead.scss +++ b/site/assets/scss/_masthead.scss @@ -26,13 +26,22 @@ } .highlight { - padding: .5rem 4rem .5rem 1rem; - line-height: 1.25; + width: 100%; + padding: .5rem 1rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; background-color: rgba(var(--bs-body-color-rgb), .075); @include border-radius(.5rem); + + @include media-breakpoint-up(lg) { + padding-right: 4rem; + } } .btn-clipboard { - margin-top: .4rem; + position: absolute; + top: -.125rem; + right: 0; background-color: transparent; } diff --git a/site/layouts/partials/home/masthead.html b/site/layouts/partials/home/masthead.html index 4f91c2b07e..ac35d43a3d 100644 --- a/site/layouts/partials/home/masthead.html +++ b/site/layouts/partials/home/masthead.html @@ -10,9 +10,9 @@

Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to life with powerful JavaScript plugins.

-
-
- {{ highlight (printf ("npm install bootstrap@%s") .Site.Params.current_version) "sh" "" }} +
+
+ {{ highlight (printf ("npm i bootstrap@%s") .Site.Params.current_version) "sh" "" }}