diff options
| author | Mark Otto <[email protected]> | 2018-12-16 18:18:37 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2018-12-21 09:03:29 -0800 |
| commit | eda851ee76bd01375f39682d903a76cc51207475 (patch) | |
| tree | c0089a8d35153a7f7af991c5070af6449c7880ab /site/docs/4.2/examples/offcanvas/offcanvas.css | |
| parent | 2c0cd7d2edb41d6288c1eb4da18b614b04c4b912 (diff) | |
| download | bootstrap-eda851ee76bd01375f39682d903a76cc51207475.tar.xz bootstrap-eda851ee76bd01375f39682d903a76cc51207475.zip | |
Prep for v4.2.0 release
- Move 4.1 docs to 4.2
- Update versions everywhere to 4.1.3 with release script
- Manually bump the shorthand version in package.json
- Add 4.2 to the versions docs page
- Update some redirects
- Fix tests asset URLs
- Bump Nuget and more
Diffstat (limited to 'site/docs/4.2/examples/offcanvas/offcanvas.css')
| -rw-r--r-- | site/docs/4.2/examples/offcanvas/offcanvas.css | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/site/docs/4.2/examples/offcanvas/offcanvas.css b/site/docs/4.2/examples/offcanvas/offcanvas.css new file mode 100644 index 000000000..22de95a41 --- /dev/null +++ b/site/docs/4.2/examples/offcanvas/offcanvas.css @@ -0,0 +1,75 @@ +html, +body { + overflow-x: hidden; /* Prevent scroll on narrow devices */ +} + +body { + padding-top: 56px; +} + +@media (max-width: 991.98px) { + .offcanvas-collapse { + position: fixed; + top: 56px; /* Height of navbar */ + bottom: 0; + left: 100%; + width: 100%; + padding-right: 1rem; + padding-left: 1rem; + overflow-y: auto; + visibility: hidden; + background-color: #343a40; + transition-timing-function: ease-in-out; + transition-duration: .3s; + transition-property: left, visibility; + } + .offcanvas-collapse.open { + left: 0; + visibility: visible; + } +} + +.nav-scroller { + position: relative; + z-index: 2; + height: 2.75rem; + overflow-y: hidden; +} + +.nav-scroller .nav { + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + padding-bottom: 1rem; + margin-top: -1px; + overflow-x: auto; + color: rgba(255, 255, 255, .75); + text-align: center; + white-space: nowrap; + -webkit-overflow-scrolling: touch; +} + +.nav-underline .nav-link { + padding-top: .75rem; + padding-bottom: .75rem; + font-size: .875rem; + color: #6c757d; +} + +.nav-underline .nav-link:hover { + color: #007bff; +} + +.nav-underline .active { + font-weight: 500; + color: #343a40; +} + +.text-white-50 { color: rgba(255, 255, 255, .5); } + +.bg-purple { background-color: #6f42c1; } + +.lh-100 { line-height: 1; } +.lh-125 { line-height: 1.25; } +.lh-150 { line-height: 1.5; } |
