From e946348eca928fa1c42dbb92c7a612543832dccc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 14 Jan 2018 16:06:52 -0800 Subject: Examples updates (#24898) * fix cover nav * Improve signin visuals and alignment with that flexbox love * rewrite cover example in flexbox * lighten signin bg * first pass at pricing example * redo examples index with data file * tighten up spacing a bit * update navbar descriptions * link pricing * move that back * property order * Fix test errors. * Compress pricing.png. * add form validation example * remove that * rename that * restyle and space out * fix errors * change order * cleanup album css and styles * tweak examples index * make it a badge * options * improve sticky footer alignment * redesign example index * brand new blog layout * start new screenshots * new product example page a la apple * add email field * fix linter, remove unused blog css * hook up feather icons to start * redo dashboard * fix linting * add floating labels example * formatting * formatting * lint * fix values on select * optional input, plus input group * new dashboard image * start to reboot the offcanvas example * updated images * new offcanvas mostly implemented * linting * edit description * more description changes * - Add vertical margin to album hero buttons for when they're stacked - Adjust font-size and padding for pricing header and hero - Fix checkout's stacked column margins, plus update their check/radio markup - Update product's utilities to be responsive - Made blog cards somewhat responsive (needs a bit more work tbh) * drop leading zero * more linting * swap empty images for holder, fix border * dist the docs * navbars have no margin-bottom to begin * add css var, tweak padding for mobile * comment headers * nix commented out code * nix the navbar structure for a custom one, stack it on mobile * tweak heading button group for mobile * Removed narrow jumbotron and justified nav examples as these are easily accomplished with new components in v4 * improve card sizing on pricing * update and compress --- docs/4.0/examples/album/album.css | 43 +--- docs/4.0/examples/album/index.html | 171 ++++++++++--- docs/4.0/examples/blog/blog.css | 157 +++++------- docs/4.0/examples/blog/index.html | 120 ++++++--- docs/4.0/examples/checkout/form-validation.css | 11 + docs/4.0/examples/checkout/index.html | 268 +++++++++++++++++++++ docs/4.0/examples/cover/cover.css | 66 +---- docs/4.0/examples/cover/index.html | 63 +++-- docs/4.0/examples/dashboard/dashboard.css | 95 +++++--- docs/4.0/examples/dashboard/index.html | 231 ++++++++++-------- .../examples/floating-labels/floating-labels.css | 87 +++++++ docs/4.0/examples/floating-labels/index.html | 46 ++++ docs/4.0/examples/index.html | 22 ++ docs/4.0/examples/index.md | 174 ------------- docs/4.0/examples/justified-nav/index.html | 105 -------- docs/4.0/examples/justified-nav/justified-nav.css | 50 ---- docs/4.0/examples/narrow-jumbotron/index.html | 79 ------ .../examples/narrow-jumbotron/narrow-jumbotron.css | 82 ------- docs/4.0/examples/navbar-fixed/index.html | 61 +++++ .../4.0/examples/navbar-fixed/navbar-top-fixed.css | 5 + docs/4.0/examples/navbar-static/index.html | 61 +++++ docs/4.0/examples/navbar-static/navbar-top.css | 4 + docs/4.0/examples/navbar-top-fixed/index.html | 61 ----- .../examples/navbar-top-fixed/navbar-top-fixed.css | 5 - docs/4.0/examples/navbar-top/index.html | 61 ----- docs/4.0/examples/navbar-top/navbar-top.css | 4 - docs/4.0/examples/offcanvas/index.html | 172 +++++++------ docs/4.0/examples/offcanvas/offcanvas.css | 109 +++++---- docs/4.0/examples/offcanvas/offcanvas.js | 2 +- docs/4.0/examples/pricing/index.html | 142 +++++++++++ docs/4.0/examples/pricing/pricing.css | 25 ++ docs/4.0/examples/product/index.html | 178 ++++++++++++++ docs/4.0/examples/product/product.css | 81 +++++++ docs/4.0/examples/screenshots/album.png | Bin 13122 -> 93136 bytes docs/4.0/examples/screenshots/blog.png | Bin 49368 -> 142010 bytes docs/4.0/examples/screenshots/carousel.png | Bin 23624 -> 89966 bytes docs/4.0/examples/screenshots/checkout.png | Bin 0 -> 113361 bytes docs/4.0/examples/screenshots/cover.png | Bin 14586 -> 30989 bytes docs/4.0/examples/screenshots/dashboard.png | Bin 23971 -> 164509 bytes docs/4.0/examples/screenshots/floating-labels.png | Bin 0 -> 66351 bytes docs/4.0/examples/screenshots/grid.png | Bin 26116 -> 125080 bytes docs/4.0/examples/screenshots/jumbotron-narrow.png | Bin 25020 -> 0 bytes docs/4.0/examples/screenshots/jumbotron.png | Bin 20278 -> 130670 bytes docs/4.0/examples/screenshots/justified-nav.png | Bin 18724 -> 0 bytes docs/4.0/examples/screenshots/navbar-bottom.png | Bin 8503 -> 52404 bytes docs/4.0/examples/screenshots/navbar-fixed.png | Bin 10349 -> 61031 bytes docs/4.0/examples/screenshots/navbar-static.png | Bin 10890 -> 63516 bytes docs/4.0/examples/screenshots/navbar.png | Bin 24840 -> 0 bytes docs/4.0/examples/screenshots/navbars.png | Bin 0 -> 133830 bytes docs/4.0/examples/screenshots/offcanvas.png | Bin 31561 -> 21095 bytes docs/4.0/examples/screenshots/pricing.png | Bin 0 -> 118759 bytes docs/4.0/examples/screenshots/product.png | Bin 0 -> 97442 bytes docs/4.0/examples/screenshots/sign-in.png | Bin 4231 -> 22124 bytes docs/4.0/examples/screenshots/starter-template.png | Bin 8180 -> 41863 bytes .../examples/screenshots/sticky-footer-navbar.png | Bin 11917 -> 61605 bytes docs/4.0/examples/screenshots/sticky-footer.png | Bin 7342 -> 37080 bytes docs/4.0/examples/sign-in/index.html | 36 +++ docs/4.0/examples/sign-in/signin.css | 49 ++++ docs/4.0/examples/signin/index.html | 39 --- docs/4.0/examples/signin/signin.css | 38 --- docs/4.0/examples/sticky-footer-navbar/index.html | 4 +- docs/4.0/examples/sticky-footer/index.html | 4 +- 62 files changed, 1783 insertions(+), 1228 deletions(-) create mode 100644 docs/4.0/examples/checkout/form-validation.css create mode 100644 docs/4.0/examples/checkout/index.html create mode 100644 docs/4.0/examples/floating-labels/floating-labels.css create mode 100644 docs/4.0/examples/floating-labels/index.html create mode 100644 docs/4.0/examples/index.html delete mode 100644 docs/4.0/examples/index.md delete mode 100644 docs/4.0/examples/justified-nav/index.html delete mode 100644 docs/4.0/examples/justified-nav/justified-nav.css delete mode 100644 docs/4.0/examples/narrow-jumbotron/index.html delete mode 100644 docs/4.0/examples/narrow-jumbotron/narrow-jumbotron.css create mode 100644 docs/4.0/examples/navbar-fixed/index.html create mode 100644 docs/4.0/examples/navbar-fixed/navbar-top-fixed.css create mode 100644 docs/4.0/examples/navbar-static/index.html create mode 100644 docs/4.0/examples/navbar-static/navbar-top.css delete mode 100644 docs/4.0/examples/navbar-top-fixed/index.html delete mode 100644 docs/4.0/examples/navbar-top-fixed/navbar-top-fixed.css delete mode 100644 docs/4.0/examples/navbar-top/index.html delete mode 100644 docs/4.0/examples/navbar-top/navbar-top.css create mode 100644 docs/4.0/examples/pricing/index.html create mode 100644 docs/4.0/examples/pricing/pricing.css create mode 100644 docs/4.0/examples/product/index.html create mode 100644 docs/4.0/examples/product/product.css create mode 100644 docs/4.0/examples/screenshots/checkout.png create mode 100644 docs/4.0/examples/screenshots/floating-labels.png delete mode 100644 docs/4.0/examples/screenshots/jumbotron-narrow.png delete mode 100644 docs/4.0/examples/screenshots/justified-nav.png delete mode 100644 docs/4.0/examples/screenshots/navbar.png create mode 100644 docs/4.0/examples/screenshots/navbars.png create mode 100644 docs/4.0/examples/screenshots/pricing.png create mode 100644 docs/4.0/examples/screenshots/product.png create mode 100644 docs/4.0/examples/sign-in/index.html create mode 100644 docs/4.0/examples/sign-in/signin.css delete mode 100644 docs/4.0/examples/signin/index.html delete mode 100644 docs/4.0/examples/signin/signin.css (limited to 'docs') diff --git a/docs/4.0/examples/album/album.css b/docs/4.0/examples/album/album.css index 1d052298d..7eabbf9b2 100644 --- a/docs/4.0/examples/album/album.css +++ b/docs/4.0/examples/album/album.css @@ -1,17 +1,19 @@ -body { - min-height: 75rem; /* Can be removed; just added for demo purposes */ -} - -.navbar { - margin-bottom: 0; +:root { + --jumbotron-padding-y: 3rem; } .jumbotron { - padding-top: 6rem; - padding-bottom: 6rem; + padding-top: var(--jumbotron-padding-y); + padding-bottom: var(--jumbotron-padding-y); margin-bottom: 0; background-color: #fff; } +@media (min-width: 768px) { + .jumbotron { + padding-top: calc(var(--jumbotron-padding-y) * 2); + padding-bottom: calc(var(--jumbotron-padding-y) * 2); + } +} .jumbotron p:last-child { margin-bottom: 0; @@ -25,29 +27,6 @@ body { max-width: 40rem; } -.album { - min-height: 50rem; /* Can be removed; just added for demo purposes */ - padding-top: 3rem; - padding-bottom: 3rem; - background-color: #f7f7f7; -} - -.card { - float: left; - width: 33.333%; - padding: .75rem; - margin-bottom: 2rem; - border: 0; -} - -.card > img { - margin-bottom: .75rem; -} - -.card-text { - font-size: 85%; -} - footer { padding-top: 3rem; padding-bottom: 3rem; @@ -56,3 +35,5 @@ footer { footer p { margin-bottom: .25rem; } + +.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); } diff --git a/docs/4.0/examples/album/index.html b/docs/4.0/examples/album/index.html index 6e5fc6173..391baca26 100644 --- a/docs/4.0/examples/album/index.html +++ b/docs/4.0/examples/album/index.html @@ -22,11 +22,11 @@