diff --git a/docs/assets/scss/styles.scss b/docs/assets/scss/styles.scss index 555410dbc19..ce1940380c3 100644 --- a/docs/assets/scss/styles.scss +++ b/docs/assets/scss/styles.scss @@ -145,9 +145,46 @@ pre.editable.error:after { background-color: rgba(255, 0, 0, 0.1); } +/* Additional styling for (responsive) markdown tables */ +.bv-docs-table { + font-size: 90%; + + thead > tr > th { + min-width: 80px; + } + + code { + white-space: nowrap !important; + } +} + /* CSS for table transition example */ table#table-transition-example { .flip-list-move { transition: transform 1s; } } + +/* + * Docsearch overrides + * See: https://github.com/twbs/bootstrap/blob/master/site/static/docs/4.3/assets/scss/_algolia.scss + */ +.algolia-autocomplete { + .ds-dropdown-menu { + background: #fff !important; + border: 1px solid rgba(0, 0, 0, 0.1) !important; + box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175) !important; + + .ds-suggestions { + @media (min-width: 768px) { + max-height: calc(100vh - 12rem); + overflow-y: auto; + } + + .algolia-docsearch-suggestion--subcategory-inline, + .algolia-docsearch-suggestion--title { + display: inline-block !important; + } + } + } +} diff --git a/docs/components/componentdoc.vue b/docs/components/componentdoc.vue index 3dd39a5f610..236b5d01121 100644 --- a/docs/components/componentdoc.vue +++ b/docs/components/componentdoc.vue @@ -30,6 +30,8 @@ - + {{ arg.description }} @@ -128,6 +136,8 @@ diff --git a/docs/components/importdoc.vue b/docs/components/importdoc.vue index a635fa55daf..b2909f7c47a 100644 --- a/docs/components/importdoc.vue +++ b/docs/components/importdoc.vue @@ -9,12 +9,18 @@ Importing individual {{ pluginTitle }} Components - + @@ -30,12 +36,19 @@ Importing individual {{ pluginTitle }} Directives - + diff --git a/docs/components/search.vue b/docs/components/search.vue index b40ed5bd741..d408b59d459 100644 --- a/docs/components/search.vue +++ b/docs/components/search.vue @@ -1,12 +1,14 @@