]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix homepage npm install snippet
authorMark Otto <markdotto@gmail.com>
Fri, 13 May 2022 17:11:09 +0000 (10:11 -0700)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 13 May 2022 17:16:05 +0000 (20:16 +0300)
site/assets/scss/_masthead.scss
site/layouts/partials/home/masthead.html

index 4bb356e1033c7bf8900384080eba36bba84d312e..76d003c95e9affeba5c00e1d4e4fba895f8e1bcd 100644 (file)
   }
 
   .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;
   }
 
index 4f91c2b07e99974d8d2b79e3682e40ff900682d7..ac35d43a3dfc943cd6ee30850272a8699e03189e 100644 (file)
@@ -10,9 +10,9 @@
       <p class="lead mb-4">
         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.
       </p>
-      <div class="d-flex flex-column flex-md-row align-items-md-stretch justify-content-md-center gap-3 mb-4">
-        <div class="d-inline-block v-align-middle fs-5" style="min-width: fit-content;">
-          {{ highlight (printf ("npm install bootstrap@%s") .Site.Params.current_version) "sh" "" }}
+      <div class="d-flex flex-column flex-lg-row align-items-md-stretch justify-content-md-center gap-3 mb-4">
+        <div class="d-inline-block v-align-middle fs-5">
+          {{ highlight (printf ("npm i bootstrap@%s") .Site.Params.current_version) "sh" "" }}
         </div>
         <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/" class="btn btn-lg bd-btn-lg btn-bd-primary d-flex align-items-center justify-content-center fw-semibold" onclick="ga('send', 'event', 'Jumbotron actions', 'Get started', 'Get started');">
           <svg class="bi me-2" aria-hidden="true"><use xlink:href="#book-half"></use></svg>