diff options
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts/partials')
30 files changed, 424 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/partials/ads.html b/vendor/twbs/bootstrap/site/layouts/partials/ads.html new file mode 100644 index 000000000..bbb967141 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/ads.html @@ -0,0 +1 @@ +<script async src="https://cdn.carbonads.com/carbon.js?serve=CKYIKKJL&placement=getbootstrapcom" id="_carbonads_js"></script> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/analytics.html b/vendor/twbs/bootstrap/site/layouts/partials/analytics.html new file mode 100644 index 000000000..ded6e7244 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/analytics.html @@ -0,0 +1,7 @@ +<script> + window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; + ga('create', 'UA-146052-10', 'getbootstrap.com'); + ga('set', 'anonymizeIp', true); + ga('send', 'pageview'); +</script> +<script async src="https://www.google-analytics.com/analytics.js"></script> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/bugify.html b/vendor/twbs/bootstrap/site/layouts/partials/bugify.html new file mode 100644 index 000000000..7edacb5d6 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/bugify.html @@ -0,0 +1,40 @@ +{{- $words := (split . " ") -}} + +{{- range $word := $words -}} + {{- if (strings.Contains $word "#") -}} + {{- $separator := false -}} + + {{- if (strings.Contains $word ",") -}} + {{- $separator = true -}} + {{- end -}} + + {{- $data := split $word "#" -}} + {{- $bug_cat := replace (index $data 0) "\n" "" -}} + {{- $bug_id := replace (index $data 1) "\n" "" -}} + {{- $bug_id = replace $bug_id "," "" -}} + + {{- if (eq $bug_cat "Bootstrap") -}} + <a href="https://github.com/twbs/bootstrap/issues/{{ $bug_id }}">#{{ $bug_id }}</a> + {{- else if (eq $bug_cat "Edge") -}} + <a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/{{ $bug_id }}/">Edge issue #{{ $bug_id }}</a> + {{- else if (eq $bug_cat "A11yUserVoice") -}} + <a href="https://microsoftaccessibility.uservoice.com/forums/307429-microsoft-accessibility-feedback/suggestions/{{ $bug_id }}">Microsoft A11y UserVoice idea #{{ $bug_id }}</a> + {{- else if (eq $bug_cat "UserVoice") -}} + <a href="https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/{{ $bug_id }}">Edge UserVoice idea #{{ $bug_id }}</a> + {{- else if (eq $bug_cat "Mozilla") -}} + <a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ $bug_id }}">Mozilla bug #{{ $bug_id }}</a> + {{- else if (eq $bug_cat "Chromium") -}} + <a href="https://bugs.chromium.org/p/chromium/issues/detail?id={{ $bug_id }}">Chromium issue #{{ $bug_id }}</a> + {{- else if (eq $bug_cat "WebKit") -}} + <a href="https://bugs.webkit.org/show_bug.cgi?id={{ $bug_id }}">WebKit bug #{{ $bug_id }}</a> + {{- else if (eq $bug_cat "Safari") -}} + <a href="https://openradar.appspot.com/{{ $bug_id }}">Apple Safari Radar #{{ $bug_id }}</a> + {{- else if (eq $bug_cat "Normalize") -}} + <a href="https://github.com/necolas/normalize.css/issues/{{ $bug_id }}">Normalize #{{ $bug_id }}</a> + {{- end -}} + {{- if (eq $separator true) }}, {{ end -}} + + {{- else -}} + {{- $word -}} + {{- end -}} +{{- end -}} diff --git a/vendor/twbs/bootstrap/site/layouts/partials/callout-danger-async-methods.md b/vendor/twbs/bootstrap/site/layouts/partials/callout-danger-async-methods.md new file mode 100644 index 000000000..c8afdc2df --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/callout-danger-async-methods.md @@ -0,0 +1,5 @@ +#### Asynchronous methods and transitions + +All API methods are **asynchronous** and start a **transition**. They return to the caller as soon as the transition is started but **before it ends**. In addition, a method call on a **transitioning component will be ignored**. + +[See our JavaScript documentation for more information](/docs/{{ .Site.Params.docs_version }}/getting-started/javascript/#asynchronous-functions-and-transitions). diff --git a/vendor/twbs/bootstrap/site/layouts/partials/callout-info-mediaqueries-breakpoints.md b/vendor/twbs/bootstrap/site/layouts/partials/callout-info-mediaqueries-breakpoints.md new file mode 100644 index 000000000..e3660e462 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/callout-info-mediaqueries-breakpoints.md @@ -0,0 +1 @@ +Note that since browsers do not currently support [range context queries](https://www.w3.org/TR/mediaqueries-4/#range-context), we work around the limitations of [`min-` and `max-` prefixes](https://www.w3.org/TR/mediaqueries-4/#mq-min-max) and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision for these comparisons. diff --git a/vendor/twbs/bootstrap/site/layouts/partials/callout-info-npm-starter.md b/vendor/twbs/bootstrap/site/layouts/partials/callout-info-npm-starter.md new file mode 100644 index 000000000..bbd3897b5 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/callout-info-npm-starter.md @@ -0,0 +1 @@ +**Get started with Bootstrap via npm with our starter project!** Head to the [twbs/bootstrap-npm-starter](https://github.com/twbs/bootstrap-npm-starter) template repository to see how to build and customize Bootstrap in your own npm project. Includes Sass compiler, Autoprefixer, Stylelint, PurgeCSS, and Bootstrap Icons. diff --git a/vendor/twbs/bootstrap/site/layouts/partials/callout-info-prefersreducedmotion.md b/vendor/twbs/bootstrap/site/layouts/partials/callout-info-prefersreducedmotion.md new file mode 100644 index 000000000..d258fbe48 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/callout-info-prefersreducedmotion.md @@ -0,0 +1 @@ +The animation effect of this component is dependent on the `prefers-reduced-motion` media query. See the [reduced motion section of our accessibility documentation](/docs/{{ .Site.Params.docs_version }}/getting-started/accessibility/#reduced-motion). diff --git a/vendor/twbs/bootstrap/site/layouts/partials/callout-warning-color-assistive-technologies.md b/vendor/twbs/bootstrap/site/layouts/partials/callout-warning-color-assistive-technologies.md new file mode 100644 index 000000000..f0c2e9de5 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/callout-warning-color-assistive-technologies.md @@ -0,0 +1,3 @@ +##### Conveying meaning to assistive technologies + +Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the `.sr-only` class. diff --git a/vendor/twbs/bootstrap/site/layouts/partials/docs-navbar.html b/vendor/twbs/bootstrap/site/layouts/partials/docs-navbar.html new file mode 100644 index 000000000..681c1b00c --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/docs-navbar.html @@ -0,0 +1,72 @@ +<header class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar"> + <a class="navbar-brand mr-0 mr-md-2" href="/" aria-label="Bootstrap"> + {{ partial "icons/bootstrap.svg" (dict "class" "d-block" "width" "36" "height" "36") }} + </a> + + <div class="navbar-nav-scroll"> + <ul class="navbar-nav bd-navbar-nav flex-row"> + <li class="nav-item"> + <a class="nav-link{{ if .IsHome }} active{{ end }}" href="/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Bootstrap');">Home</a> + </li> + <li class="nav-item"> + <a class="nav-link{{ if eq .Page.Layout "docs" }} active{{ end }}" href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Docs');">Documentation</a> + </li> + <li class="nav-item"> + <a class="nav-link{{ if eq .Page.Title "Examples" }} active{{ end }}" href="/docs/{{ .Site.Params.docs_version }}/examples/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Examples');">Examples</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{ .Site.Params.icons }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Icons');" target="_blank" rel="noopener">Icons</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{ .Site.Params.themes }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Themes');" target="_blank" rel="noopener">Themes</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{ .Site.Params.expo }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Expo');" target="_blank" rel="noopener">Expo</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="{{ .Site.Params.blog }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');" target="_blank" rel="noopener">Blog</a> + </li> + </ul> + </div> + + <ul class="navbar-nav ml-md-auto"> + <li class="nav-item dropdown"> + <a class="nav-item nav-link dropdown-toggle mr-md-2" href="#" id="bd-versions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + v{{ .Site.Params.docs_version }} + </a> + <div class="dropdown-menu dropdown-menu-md-right" aria-labelledby="bd-versions"> + <a class="dropdown-item active" href="/docs/{{ .Site.Params.docs_version }}/">Latest (4.6.x)</a> + <div class="dropdown-divider"></div> + <a class="dropdown-item" href="https://getbootstrap.com/docs/5.0/">5.0.x</a> + <div class="dropdown-divider"></div> + <a class="dropdown-item" href="https://getbootstrap.com/docs/3.4/">v3.4.1</a> + <a class="dropdown-item" href="https://getbootstrap.com/2.3.2/">v2.3.2</a> + <div class="dropdown-divider"></div> + <a class="dropdown-item" href="/docs/versions/">All versions</a> + </div> + </li> + + <li class="nav-item"> + <a class="nav-link pl-2 pr-1 mx-1 py-3 my-n2" href="{{ .Site.Params.github_org }}" target="_blank" rel="noopener" aria-label="GitHub"> + {{ partial "icons/github.svg" (dict "class" "navbar-nav-svg") }} + </a> + </li> + <li class="nav-item"> + <a class="nav-link px-1 mx-1 py-3 my-n2" href="https://twitter.com/{{ .Site.Params.twitter }}" target="_blank" rel="noopener" aria-label="Twitter"> + {{ partial "icons/twitter.svg" (dict "class" "navbar-nav-svg") }} + </a> + </li> + <li class="nav-item"> + <a class="nav-link px-1 mx-1 py-3 my-n2" href="{{ .Site.Params.slack }}" target="_blank" rel="noopener" aria-label="Slack"> + {{ partial "icons/slack.svg" (dict "class" "navbar-nav-svg") }} + </a> + </li> + <li class="nav-item"> + <a class="nav-link px-1 mx-1 py-3 my-n2" href="{{ .Site.Params.opencollective }}/" target="_blank" rel="noopener" aria-label="Open Collective"> + {{ partial "icons/opencollective.svg" (dict "class" "navbar-nav-svg") }} + </a> + </li> + </ul> + + <a class="btn btn-bd-download d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="/docs/{{ .Site.Params.docs_version }}/getting-started/download/">Download</a> +</header> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html b/vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html new file mode 100644 index 000000000..2a8ef05ac --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/docs-sidebar.html @@ -0,0 +1,45 @@ +<form role="search" class="bd-search d-flex align-items-center"> + <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off" data-docs-version="{{ .Site.Params.docs_version }}"> + <button class="btn bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation"> + {{ partial "icons/menu.svg" (dict "width" "30" "height" "30") }} + </button> +</form> + +<div class="collapse d-md-block row" id="bd-docs-nav"> + <nav class="bd-links" aria-label="Main navigation"> + {{- $url := split .Permalink "/" -}} + {{- $page_slug := index $url (sub (len $url) 2) -}} + + {{- range $group := .Site.Data.sidebar -}} + {{- $link := $group.title -}} + {{- $link_slug := $link | urlize -}} + + {{- if $group.pages -}} + {{- $link = index $group.pages 0 -}} + {{- $link_slug = $link.title | urlize -}} + {{- end -}} + + {{- $group_slug := $group.title | urlize -}} + {{- $is_active_group := eq $.Page.Params.group $group_slug }} + + <div class="bd-toc-item{{ if $is_active_group }} active{{ end }}"> + <a class="bd-toc-link" href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ if $group.pages }}{{ $link_slug }}/{{ end }}"> + {{ $group.title }} + </a> + + {{- if and $is_active_group $group.pages }} + <ul class="nav bd-sidenav"> + {{- range $doc := $group.pages -}} + {{- $doc_slug := $doc.title | urlize }} + <li{{ if and $is_active_group (eq $page_slug $doc_slug) }} class="active bd-sidenav-active"{{ end }}> + <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ $doc_slug }}/"> + {{- $doc.title -}} + </a> + </li> + {{- end }} + </ul> + {{- end }} + </div> + {{- end }} + </nav> +</div> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/favicons.html b/vendor/twbs/bootstrap/site/layouts/partials/favicons.html new file mode 100644 index 000000000..61733e32d --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/favicons.html @@ -0,0 +1,9 @@ +{{ "<!-- Favicons -->" | safeHTML }} +<link rel="apple-touch-icon" href="/docs/{{ .Site.Params.docs_version }}/assets/img/favicons/apple-touch-icon.png" sizes="180x180"> +<link rel="icon" href="/docs/{{ .Site.Params.docs_version }}/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png"> +<link rel="icon" href="/docs/{{ .Site.Params.docs_version }}/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png"> +<link rel="manifest" href="/docs/{{ .Site.Params.docs_version }}/assets/img/favicons/manifest.json"> +<link rel="mask-icon" href="/docs/{{ .Site.Params.docs_version }}/assets/img/favicons/safari-pinned-tab.svg" color="#563d7c"> +<link rel="icon" href="/docs/{{ .Site.Params.docs_version }}/assets/img/favicons/favicon.ico"> +<meta name="msapplication-config" content="/docs/{{ .Site.Params.docs_version }}/assets/img/favicons/browserconfig.xml"> +<meta name="theme-color" content="#563d7c"> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/footer.html b/vendor/twbs/bootstrap/site/layouts/partials/footer.html new file mode 100644 index 000000000..02ad2160f --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/footer.html @@ -0,0 +1,12 @@ +<footer class="bd-footer text-muted"> + <div class="container-fluid p-3 p-md-5"> + <ul class="bd-footer-links"> + <li><a href="{{ .Site.Params.github_org }}">GitHub</a></li> + <li><a href="https://twitter.com/{{ .Site.Params.twitter }}">Twitter</a></li> + <li><a href="/docs/{{ .Site.Params.docs_version }}/examples/">Examples</a></li> + <li><a href="/docs/{{ .Site.Params.docs_version }}/about/overview/">About</a></li> + </ul> + <p>Designed and built with all the love in the world by the <a href="/docs/{{ .Site.Params.docs_version }}/about/team/">Bootstrap team</a> with the help of <a href="{{ .Site.Params.repo }}/graphs/contributors">our contributors</a>.</p> + <p>Currently v{{ .Site.Params.current_version }}. Code licensed <a href="{{ .Site.Params.repo }}/blob/main/LICENSE" target="_blank" rel="license noopener">MIT</a>, docs <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" rel="license noopener">CC BY 3.0</a>.</p> + </div> +</footer> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/header.html b/vendor/twbs/bootstrap/site/layouts/partials/header.html new file mode 100644 index 000000000..1cc265a6f --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/header.html @@ -0,0 +1,21 @@ +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> +<meta name="description" content="{{ .Page.Params.description | default .Site.Params.description | markdownify }}"> +<meta name="author" content="{{ .Site.Params.authors }}"> +<meta name="generator" content="Hugo {{ hugo.Version }}"> + +<meta name="docsearch:language" content="en"> +<meta name="docsearch:version" content="{{ .Site.Params.docs_version }}"> + +<title>{{ if .IsHome }}{{ .Site.Title | markdownify }} · {{ .Site.Params.description | markdownify }}{{ else }}{{ .Title | markdownify }} · {{ .Site.Title | markdownify }} v{{ .Site.Params.docs_version }}{{ end }}</title> + +<link rel="canonical" href="{{ .Permalink }}"> + +{{ with .Params.robots -}} +<meta name="robots" content="{{ . }}"> +{{- end }} + +{{ partial "stylesheet" . }} +{{ partial "favicons" . }} +{{ partial "social" . }} +{{ partial "analytics" . }} diff --git a/vendor/twbs/bootstrap/site/layouts/partials/home/masthead-followup.html b/vendor/twbs/bootstrap/site/layouts/partials/home/masthead-followup.html new file mode 100644 index 000000000..1ee8b19b8 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/home/masthead-followup.html @@ -0,0 +1,90 @@ +<div class="masthead-followup"> + <div class="container"> + <div class="row mb-5 pb-md-4 align-items-center"> + <div class="col-md-5"> + <div class="masthead-followup-icon d-inline-block mb-2 text-white bg-success"> + {{ partial "icons/code.svg" (dict "class" "masthead-followup-svg" "width" "32" "height" "32") }} + </div> + <h2>Installation</h2> + <p class="lead font-weight-normal"> + Install Bootstrap’s source Sass and JavaScript files via npm, Composer, or Meteor. + </p> + <p>Package managed installs don’t include documentation or our full build scripts. You can also <a href="https://github.com/twbs/bootstrap-npm-starter">use our npm template repo</a> to quickly generate a Bootstrap project via npm.</p> + <a class="btn btn-lg btn-outline-primary mb-3" href="/docs/{{ .Site.Params.docs_version }}/getting-started/download/">Read installation docs</a> + </div> + <div class="col-md-7 pl-md-5"> + {{ highlight "npm install bootstrap" "sh" "" }} + {{ highlight (printf ("gem install bootstrap -v %s") .Site.Params.current_ruby_version) "sh" "" }} + </div> + </div> + + <div class="row mb-5 pb-md-4 align-items-center"> + <div class="col-md-5"> + <div class="masthead-followup-icon d-inline-block mb-2 text-white bg-primary"> + {{ partial "icons/cloud-fill.svg" (dict "class" "masthead-followup-svg" "width" "32" "height" "32") }} + </div> + <h2>jsDelivr</h2> + <p class="lead font-weight-normal"> + When you only need to include Bootstrap’s compiled CSS or JS, you can use <a href="https://www.jsdelivr.com/">jsDelivr</a>. + </p> + <p> + See it in action with our simple <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/#starter-template">starter template</a>, or <a href="/docs/{{ .Site.Params.docs_version }}/examples/">browse the examples</a> to jumpstart your next project. You can also choose to include Popper and our JS <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/#separate">separately</a>. + </p> + <a class="btn btn-lg btn-outline-primary mb-3" href="/docs/{{ .Site.Params.docs_version }}/layout/overview/">Explore the docs</a> + </div> + <div class="col-md-7 pl-md-5"> + {{ highlight (printf (`<!-- CSS --> +<link href="%s" rel="stylesheet" integrity=%q crossorigin="anonymous"> +`) .Site.Params.cdn.css (.Site.Params.cdn.css_hash | safeHTMLAttr)) "html" "" }} + {{ highlight (printf (`<!-- jQuery and JavaScript Bundle with Popper --> +<script src="%s" integrity=%q crossorigin="anonymous"></script> +<script src="%s" integrity=%q crossorigin="anonymous"></script> +`) .Site.Params.cdn.jquery (.Site.Params.cdn.jquery_hash | safeHTMLAttr) .Site.Params.cdn.js_bundle (.Site.Params.cdn.js_bundle_hash | safeHTMLAttr)) "html" "" }} + </div> + </div> + + <div class="row mb-5 pb-md-4 align-items-center"> + <div class="col-md-5"> + <div class="masthead-followup-icon d-inline-block mb-2 text-white bd-bg-purple-bright"> + {{ partial "icons/circle-square.svg" (dict "class" "masthead-followup-svg" "width" "32" "height" "32") }} + </div> + <h2>Bootstrap Icons</h2> + <p class="lead font-weight-normal"> + For the first time ever, Bootstrap has its own open source SVG icon library, designed to work best with our components and documentation. + </p> + <p> + Bootstrap Icons are designed to work best with Bootstrap components, but they’ll work in any project. They’re SVGs, so they scale quickly and easily, can be implemented in several ways, and can be styled with CSS. + </p> + <a href="{{ .Site.Params.icons }}" class="btn btn-lg btn-outline-primary mb-3">Get Bootstrap Icons</a> + </div> + <div class="col-md-7 pl-md-5"> + <img class="img-fluid mt-3 mx-auto" srcset="/docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-icons.png, + /docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-icons@2x.png 2x" + src="/docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-icons.png" + alt="Bootstrap Icons" width="700" height="425" loading="lazy"> + </div> + </div> + + <div class="row mb-5 pb-md-4 align-items-center"> + <div class="col-md-5"> + <div class="masthead-followup-icon d-inline-block mb-2 text-white bg-danger"> + {{ partial "icons/droplet-fill.svg" (dict "class" "masthead-followup-svg" "width" "32" "height" "32") }} + </div> + <h2>Official Themes</h2> + <p class="lead font-weight-normal"> + Take Bootstrap to the next level with premium themes from the <a href="{{ .Site.Params.themes }}">official Bootstrap Themes marketplace</a>. + </p> + <p> + Themes are built on Bootstrap as their own extended frameworks, rich with new components and plugins, documentation, and powerful build tools. + </p> + <a href="{{ .Site.Params.themes }}" class="btn btn-lg btn-outline-primary mb-3">Browse themes</a> + </div> + <div class="col-md-7 pl-md-5"> + <img class="img-fluid mt-3 mx-auto" srcset="/docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-themes.png, + /docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-themes@2x.png 2x" + src="/docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-themes.png" + alt="Bootstrap Themes" width="700" height="500" loading="lazy"> + </div> + </div> + </div> +</div> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/home/masthead.html b/vendor/twbs/bootstrap/site/layouts/partials/home/masthead.html new file mode 100644 index 000000000..3fad86bcc --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/home/masthead.html @@ -0,0 +1,23 @@ +<main class="bd-masthead" id="content" role="main"> + <div class="container"> + <div class="row"> + <div class="col-6 mx-auto col-md-4 order-md-2"> + {{ partial "icons/bootstrap-stack.svg" (dict "class" "img-fluid mb-3 mb-md-0" "width" "512" "height" "430") }} + </div> + <div class="col-md-8 order-md-1 text-center text-md-left pr-md-5"> + <h1 class="mb-3">Build fast, responsive sites with Bootstrap</h1> + <p class="lead mb-4"> + Quickly design and customize responsive mobile-first sites with Bootstrap, the world’s most popular front-end open source toolkit, featuring Sass variables and mixins, responsive grid system, extensive prebuilt components, and powerful JavaScript plugins. + </p> + <div class="d-flex flex-column flex-md-row"> + <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/" class="btn btn-lg btn-bd-primary mb-3 mr-md-3" onclick="ga('send', 'event', 'Jumbotron actions', 'Get started', 'Get started');">Get started</a> + <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/download/" class="btn btn-lg btn-outline-secondary mb-3" onclick="ga('send', 'event', 'Jumbotron actions', 'Download', 'Download {{ .Site.Params.current_version }}');">Download</a> + </div> + <p class="text-muted mb-0"> + Currently v{{ .Site.Params.current_version }} + </p> + </div> + </div> + {{ partial "ads.html" . }} + </div> +</main> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap-stack.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap-stack.svg new file mode 100644 index 000000000..723812a0d --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap-stack.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 1024 860" focusable="false" role="img"><title>Bootstrap</title><defs><linearGradient id="c" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#5c24ae"/><stop offset="100%" stop-color="#30135a"/></linearGradient><path id="b" d="M355.967 242.807l-322 216.395c-44.275 29.754-44.275 78.443 0 108.197l322 216.395c44.275 29.754 116.725 29.754 161 0l322-216.395c44.275-29.754 44.275-78.443 0-108.197l-322-216.395c-44.275-29.754-116.725-29.754-161 0z"/><filter id="a" width="108%" height="112%" x="-4%" y="-4.3%" filterUnits="objectBoundingBox"><feOffset dy="10" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="10"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/></filter><linearGradient id="f" x1="50%" x2="50%" y1="-17.303%" y2="100%"><stop offset="0%" stop-color="#7331d4"/><stop offset="100%" stop-color="#461b84"/></linearGradient><path id="e" d="M355.967 132.807l-322 216.395c-44.275 29.754-44.275 78.443 0 108.197l322 216.395c44.275 29.754 116.725 29.754 161 0l322-216.395c44.275-29.754 44.275-78.443 0-108.197l-322-216.395c-44.275-29.754-116.725-29.754-161 0z"/><filter id="d" width="108%" height="112%" x="-4%" y="-4.3%" filterUnits="objectBoundingBox"><feOffset dy="10" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="10"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/></filter><linearGradient id="i" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#905bdd"/><stop offset="100%" stop-color="#5521a0"/></linearGradient><path id="h" d="M355.967 22.807l-322 216.395c-44.275 29.754-44.275 78.443 0 108.197l322 216.395c44.275 29.754 116.725 29.754 161 0l322-216.395c44.275-29.754 44.275-78.443 0-108.197l-322-216.395c-44.275-29.754-116.725-29.754-161 0z"/><filter id="g" width="108%" height="112%" x="-4%" y="-4.3%" filterUnits="objectBoundingBox"><feOffset dy="10" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="10"/><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/></filter></defs><g fill="none"><g transform="translate(75 23)"><use fill="#000" filter="url(#a)" xlink:href="#b"/><use fill="url(#c)" xlink:href="#b"/></g><g transform="translate(75 23)"><use fill="#000" filter="url(#d)" xlink:href="#e"/><use fill="url(#f)" xlink:href="#e"/></g><g transform="translate(75 23)"><use fill="#000" filter="url(#g)" xlink:href="#h"/><use fill="url(#i)" xlink:href="#h"/></g><path fill="#fff" d="M558.273 447.667L308.036 279.5l97.982-65.847c42.83-28.784 96.789-31.483 134.245-6.311 26.044 17.502 31.214 46.615 11.444 65.724l1.389.934c38.324-19.932 84.107-18.527 117.396 3.845 44.046 29.6 38.671 68.419-14.561 104.193l-97.658 65.629zM447.112 331.01l49.942-33.562c36.935-24.822 42.31-48.249 15.224-66.451-24.798-16.665-55.49-14.453-85.851 5.95l-59.641 40.081 80.326 53.982zm176.532 35.663c37.63-25.289 42.136-48.832 13.203-68.276-28.932-19.444-64.163-15.614-104.042 11.186l-58.789 39.508 87.92 59.084 61.708-41.502z"/></g></svg>
\ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap.svg new file mode 100644 index 000000000..533190a27 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/bootstrap.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 612 612" role="img" focusable="false"><title>{{ with .title }}{{ . }}{{ else }}Bootstrap{{ end }}</title><path fill="currentColor" d="M510 8a94.3 94.3 0 0 1 94 94v408a94.3 94.3 0 0 1-94 94H102a94.3 94.3 0 0 1-94-94V102a94.3 94.3 0 0 1 94-94h408m0-8H102C45.9 0 0 45.9 0 102v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V102C612 45.9 566.1 0 510 0z"/><path fill="currentColor" d="M196.77 471.5V154.43h124.15c54.27 0 91 31.64 91 79.1 0 33-24.17 63.72-54.71 69.21v1.76c43.07 5.49 70.75 35.82 70.75 78 0 55.81-40 89-107.45 89zm39.55-180.4h63.28c46.8 0 72.29-18.68 72.29-53 0-31.42-21.53-48.78-60-48.78h-75.57zm78.22 145.46c47.68 0 72.73-19.34 72.73-56s-25.93-55.37-76.46-55.37h-74.49v111.4z"/></svg>
\ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/circle-square.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/circle-square.svg new file mode 100644 index 000000000..e62bfdb55 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/circle-square.svg @@ -0,0 +1,4 @@ +<svg{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} focusable="false" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> + <path d="M0 6a6 6 0 1112 0A6 6 0 010 6z"/> + <path d="M12.93 5h1.57a.5.5 0 01.5.5v9a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-1.57a6.953 6.953 0 01-1-.22v1.79A1.5 1.5 0 005.5 16h9a1.5 1.5 0 001.5-1.5v-9A1.5 1.5 0 0014.5 4h-1.79c.097.324.17.658.22 1z"/> +</svg> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/cloud-fill.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/cloud-fill.svg new file mode 100644 index 000000000..4a6262d1e --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/cloud-fill.svg @@ -0,0 +1,3 @@ +<svg{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} focusable="false" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> + <path fill-rule="evenodd" d="M3.5 13a3.5 3.5 0 11.59-6.95 5.002 5.002 0 119.804 1.98A2.5 2.5 0 0113.5 13h-10z" clip-rule="evenodd"/> +</svg> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/code.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/code.svg new file mode 100644 index 000000000..7d7210f2c --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/code.svg @@ -0,0 +1,3 @@ +<svg{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} focusable="false" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> + <path fill-rule="evenodd" d="M5.854 4.146a.5.5 0 010 .708L2.707 8l3.147 3.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0zm4.292 0a.5.5 0 000 .708L13.293 8l-3.147 3.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 00-.708 0z" clip-rule="evenodd"/> +</svg> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/droplet-fill.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/droplet-fill.svg new file mode 100644 index 000000000..f63760587 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/droplet-fill.svg @@ -0,0 +1,3 @@ +<svg{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} focusable="false" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> + <path fill-rule="evenodd" d="M8 16a6 6 0 006-6c0-1.655-1.122-2.904-2.432-4.362C10.254 4.176 8.75 2.503 8 0c0 0-6 5.686-6 10a6 6 0 006 6zM6.646 4.646c-.376.377-1.272 1.489-2.093 3.13l.894.448c.78-1.559 1.616-2.58 1.907-2.87l-.708-.708z" clip-rule="evenodd"/> +</svg> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/github.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/github.svg new file mode 100644 index 000000000..f716775ea --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/github.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 512 499.36" role="img" focusable="false"><title>{{ with .title }}{{ . }}{{ else }}GitHub{{ end }}</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg>
\ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/menu.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/menu.svg new file mode 100644 index 000000000..e9c6c997b --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/menu.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 30 30" role="img" focusable="false"><title>{{ with .title }}{{ . }}{{ else }}Menu{{ end }}</title><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/></svg>
\ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/opencollective.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/opencollective.svg new file mode 100644 index 000000000..9df7af49b --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/opencollective.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }} fill="currentColor" fill-rule="evenodd"{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 40 41" role="img" focusable="false"><title>{{ with .title }}{{ . }}{{ else }}Open Collective{{ end }}</title><path fill-opacity=".4" d="M32.8 21c0 2.4-.8 4.9-2 6.9l5.1 5.1c2.5-3.4 4.1-7.6 4.1-12 0-4.6-1.6-8.8-4-12.2L30.7 14c1.2 2 2 4.3 2 7z"/><path d="M20 33.7a12.8 12.8 0 0 1 0-25.6c2.6 0 5 .7 7 2.1L32 5a20 20 0 1 0 .1 31.9l-5-5.2a13 13 0 0 1-7 2z"/></svg>
\ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/slack.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/slack.svg new file mode 100644 index 000000000..eba4dde8c --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/slack.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 512 512" role="img" focusable="false"><title>{{ with .title }}{{ . }}{{ else }}Slack{{ end }}</title><path fill="currentColor" d="M210.787 234.832l68.31-22.883 22.1 65.977-68.309 22.882z"/><path fill="currentColor" d="M490.54 185.6C437.7 9.59 361.6-31.34 185.6 21.46S-31.3 150.4 21.46 326.4 150.4 543.3 326.4 490.54 543.34 361.6 490.54 185.6zM401.7 299.8l-33.15 11.05 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.38-68.36 22.92 11.46 34.38c4.5 13.92-2.87 29.06-16.78 33.56-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18l-11.46-34.43-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.5-13.92 2.87-29.06 16.78-33.56l33.12-11.03-22.1-65.9-33.15 11.05c-2.87.82-6.14 1.64-9 1.23a27.32 27.32 0 0 1-24.56-18c-4.48-13.93 2.89-29.07 16.81-33.58l33.15-11.05-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.46 34.38 68.36-22.92-11.46-34.38c-4.5-13.92 2.87-29.06 16.78-33.56s29.06 2.87 33.56 16.78l11.47 34.42 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.87 29.06-16.78 33.56L329.7 194.6l22.1 65.9 33.15-11.05c13.92-4.5 29.06 2.87 33.56 16.78s-2.88 29.07-16.81 33.57z"/></svg>
\ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/icons/twitter.svg b/vendor/twbs/bootstrap/site/layouts/partials/icons/twitter.svg new file mode 100644 index 000000000..17427123a --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/icons/twitter.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 512 416.32" role="img" focusable="false"><title>{{ with .title }}{{ . }}{{ else }}Twitter{{ end }}</title><path fill="currentColor" d="M160.83 416.32c193.2 0 298.92-160.22 298.92-298.92 0-4.51 0-9-.2-13.52A214 214 0 0 0 512 49.38a212.93 212.93 0 0 1-60.44 16.6 105.7 105.7 0 0 0 46.3-58.19 209 209 0 0 1-66.79 25.37 105.09 105.09 0 0 0-181.73 71.91 116.12 116.12 0 0 0 2.66 24c-87.28-4.3-164.73-46.3-216.56-109.82A105.48 105.48 0 0 0 68 159.6a106.27 106.27 0 0 1-47.53-13.11v1.43a105.28 105.28 0 0 0 84.21 103.06 105.67 105.67 0 0 1-47.33 1.84 105.06 105.06 0 0 0 98.14 72.94A210.72 210.72 0 0 1 25 370.84a202.17 202.17 0 0 1-25-1.43 298.85 298.85 0 0 0 160.83 46.92"/></svg>
\ No newline at end of file diff --git a/vendor/twbs/bootstrap/site/layouts/partials/scripts.html b/vendor/twbs/bootstrap/site/layouts/partials/scripts.html new file mode 100644 index 000000000..9b05f24f0 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/scripts.html @@ -0,0 +1,23 @@ +<script src="{{ .Site.Params.cdn.jquery }}" {{ printf "integrity=%q" .Site.Params.cdn.jquery_hash | safeHTMLAttr }} crossorigin="anonymous"></script> +<script>window.jQuery || document.write('<script src="/docs/{{ .Site.Params.docs_version }}/assets/js/vendor/jquery.slim.min.js"><\/script>')</script> + +{{ if eq hugo.Environment "production" -}} + <script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }} crossorigin="anonymous"></script> +{{ else -}} + <script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script> +{{- end }} + +{{ if eq .Page.Layout "docs" -}} +<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> +{{- end }} + +{{- $vendor := resources.Match "js/vendor/*.js" -}} +{{- $js := resources.Match "js/*.js" -}} +{{- $targetDocsJSPath := printf "/docs/%s/assets/js/docs.js" .Site.Params.docs_version -}} +{{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}} + +{{- if eq hugo.Environment "production" -}} + {{- $docsJs = $docsJs | resources.Minify -}} +{{- end }} + +<script src="{{ $docsJs.Permalink | relURL }}"></script> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/skippy.html b/vendor/twbs/bootstrap/site/layouts/partials/skippy.html new file mode 100644 index 000000000..8bb041178 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/skippy.html @@ -0,0 +1,8 @@ +<div class="skippy overflow-hidden"> + <div class="container-xl"> + <a class="sr-only sr-only-focusable d-inline-flex p-2 m-1" href="#content">Skip to main content</a> + {{ if (eq .Page.Layout "docs") -}} + <a class="sr-only sr-only-focusable d-none d-md-inline-flex p-2 m-1" href="#bd-docs-nav">Skip to docs navigation</a> + {{- end }} + </div> +</div> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/social.html b/vendor/twbs/bootstrap/site/layouts/partials/social.html new file mode 100644 index 000000000..f44d99f05 --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/social.html @@ -0,0 +1,17 @@ +{{ "<!-- Twitter -->" | safeHTML }} +<meta name="twitter:card" content="{{ if .IsHome }}summary_large_image{{ else }}summary{{ end }}"> +<meta name="twitter:site" content="@{{ .Site.Params.twitter }}"> +<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}"> +<meta name="twitter:title" content="{{ .Title | markdownify }}"> +<meta name="twitter:description" content="{{ .Page.Params.description | default .Site.Params.description | markdownify }}"> +<meta name="twitter:image" content="{{ if .IsHome }}{{ .Site.Params.social_image_path | absURL }}{{ else }}{{ .Site.Params.social_logo_path | absURL }}{{ end }}"> + +{{ "<!-- Facebook -->" | safeHTML }} +<meta property="og:url" content="{{ .Permalink }}"> +<meta property="og:title" content="{{ .Title | markdownify }}"> +<meta property="og:description" content="{{ .Page.Params.description | default .Site.Params.description | markdownify }}"> +<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"> +<meta property="og:image" content="{{ .Site.Params.social_image_path | absURL }}"> +<meta property="og:image:type" content="image/png"> +<meta property="og:image:width" content="1200"> +<meta property="og:image:height" content="630"> diff --git a/vendor/twbs/bootstrap/site/layouts/partials/stylesheet.html b/vendor/twbs/bootstrap/site/layouts/partials/stylesheet.html new file mode 100644 index 000000000..8013e6f9d --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/partials/stylesheet.html @@ -0,0 +1,25 @@ +{{- "<!-- Bootstrap core CSS -->" | safeHTML }} +{{ if eq hugo.Environment "production" -}} +<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.min.css" rel="stylesheet" {{ printf "integrity=%q" .Site.Params.cdn.css_hash | safeHTMLAttr }} crossorigin="anonymous"> +{{- else -}} +<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.css" rel="stylesheet"> +{{- end }} + +{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}} +{{- "<!-- Documentation extras -->" | safeHTML }} +<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet"> +{{- end -}} + +{{- if (ne .Page.Layout "examples") }} +{{- $targetDocsCssPath := printf "/docs/%s/assets/css/docs.css" .Site.Params.docs_version -}} +{{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}} +{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}} + +{{ if eq hugo.Environment "production" -}} + {{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}} +{{- end -}} + +{{- $style := resources.Get "scss/docs.scss" | toCSS $sassOptions | postCSS $postcssOptions }} + +<link href="{{ $style.Permalink | relURL }}" rel="stylesheet"> +{{- end }} |