diff options
| author | Shohei Yoshida <[email protected]> | 2019-06-06 15:04:48 +0900 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-06-06 09:04:48 +0300 |
| commit | 543ff4e3e5c29509b3aa8643073d3cd0d109c536 (patch) | |
| tree | beff31b66261140dc2ffe0fc733b170ca1664f4c /site/static/docs | |
| parent | 1c510ddaecb2117ccdd5675c1eee30caa9e3ffe8 (diff) | |
| download | bootstrap-543ff4e3e5c29509b3aa8643073d3cd0d109c536.tar.xz bootstrap-543ff4e3e5c29509b3aa8643073d3cd0d109c536.zip | |
Clean component examples CSS (#28872)
* Remove unused classes/styles and use utilities instead of specific styles
* Use `getElementById` instead of `querySelector`
Diffstat (limited to 'site/static/docs')
| -rw-r--r-- | site/static/docs/4.3/assets/js/src/application.js | 2 | ||||
| -rw-r--r-- | site/static/docs/4.3/assets/scss/_component-examples.scss | 72 |
2 files changed, 3 insertions, 71 deletions
diff --git a/site/static/docs/4.3/assets/js/src/application.js b/site/static/docs/4.3/assets/js/src/application.js index dfbced413..201eb48b3 100644 --- a/site/static/docs/4.3/assets/js/src/application.js +++ b/site/static/docs/4.3/assets/js/src/application.js @@ -83,7 +83,7 @@ } // Activate animated progress bar - var btnToggleAnimatedProgress = document.querySelector('.bd-toggle-animated-progress') + var btnToggleAnimatedProgress = document.getElementById('btnToggleAnimatedProgress') if (btnToggleAnimatedProgress) { btnToggleAnimatedProgress.addEventListener('click', function () { btnToggleAnimatedProgress.parentNode diff --git a/site/static/docs/4.3/assets/scss/_component-examples.scss b/site/static/docs/4.3/assets/scss/_component-examples.scss index 62ebf6953..8b7a3bab8 100644 --- a/site/static/docs/4.3/assets/scss/_component-examples.scss +++ b/site/static/docs/4.3/assets/scss/_component-examples.scss @@ -18,13 +18,6 @@ .row + .row { margin-top: 1rem; } - - .flex-items-top, - .flex-items-middle, - .flex-items-bottom { - min-height: 6rem; - background-color: rgba(255, 0, 0, .1); - } } .bd-example-row-flex-cols .row { @@ -138,19 +131,6 @@ margin-top: 2rem; } - .pos-f-t { - position: relative; - margin: -1rem; - - @include media-breakpoint-up(sm) { - margin: -1.5rem; - } - } - - .custom-file-input:lang(es) ~ .custom-file-label::after { - content: "Elegir"; - } - > .form-control { + .form-control { margin-top: .5rem; @@ -160,12 +140,11 @@ > .nav + .nav, > .alert + .alert, > .navbar + .navbar, - > .progress + .progress, - > .progress + .btn { + > .progress + .progress { margin-top: 1rem; } - > .dropdown-menu:first-child { + > .dropdown-menu { position: static; display: block; } @@ -173,10 +152,6 @@ > .form-group:last-child { margin-bottom: 0; } - - > .close { - float: none; - } } // Typography @@ -202,11 +177,6 @@ } } -// Contextual background colors -.bd-example-bg-classes p { - padding: 1rem; -} - // Images .bd-example { > svg + svg, @@ -227,18 +197,6 @@ } } -// Forms -.bd-example-control-sizing select, -.bd-example-control-sizing input[type="text"] + input[type="text"] { - margin-top: .5rem; -} -.bd-example-form .input-group { - margin-bottom: .5rem; -} -.bd-example > textarea.form-control { - resize: vertical; -} - // List groups .bd-example > .list-group { max-width: 400px; @@ -310,37 +268,11 @@ } } -// Example tabbable tabs -.bd-example-tabs .nav-tabs { - margin-bottom: 1rem; -} - -// Popovers -.bd-example-popover-static { - padding-bottom: 1.5rem; - background-color: #f9f9f9; - - .popover { - position: relative; - display: block; - float: left; - width: 260px; - margin: 1.25rem; - } -} - // Tooltips .tooltip-demo a { white-space: nowrap; } -.bd-example-tooltip-static .tooltip { - position: relative; - display: inline-block; - margin: 10px 20px; - opacity: 1; -} - // Scrollspy demo on fixed height div .scrollspy-example { position: relative; |
