0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-30 22:52:24 +01:00

homepage: split snippets and show copy buttons (#32196)

This commit is contained in:
XhmikosR 2020-11-19 11:13:08 +02:00 committed by GitHub
parent 5fd0c239bc
commit ae87f8f7ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -44,8 +44,6 @@
}
.masthead-followup {
.bd-clipboard { display: none; }
h2 {
@include font-size(2.5rem);
}
@ -60,10 +58,6 @@
pre code {
display: inline-block;
white-space: pre;
&::before {
display: none;
}
}
}
}

View File

@ -42,10 +42,10 @@ layout: home
</div>
<div class="col-md-7 pl-md-5">
{% highlight sh %}
# Via npm
npm install bootstrap
{% endhighlight %}
# Via gem
{% highlight sh %}
gem install bootstrap -v {{ site.current_ruby_version }}
{% endhighlight %}
</div>
@ -69,8 +69,10 @@ gem install bootstrap -v {{ site.current_ruby_version }}
{% highlight html %}
<!-- CSS -->
<link rel="stylesheet" href="{{ site.cdn.css }}" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
{% endhighlight %}
<!-- jQuery and JS bundle w/ Popper.js -->
{% highlight html %}
<!-- jQuery and JavaScript Bundle with Popper.js -->
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
<script src="{{ site.cdn.js_bundle }}" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
{% endhighlight %}