From aed0ff265ba3d41607159c1c5f3d31d6ddaff73a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 13 Jul 2019 01:01:38 +0300 Subject: [PATCH 1/3] v5: Playground for new ideas WIP effort to look at some components and design choices that could make their way into v5. --- .../docs/5.0/examples/playground/index.html | 68 +++++++++++++++ .../5.0/examples/playground/playground.css | 86 +++++++++++++++++++ 2 files changed, 154 insertions(+) create mode 100644 site/content/docs/5.0/examples/playground/index.html create mode 100644 site/content/docs/5.0/examples/playground/playground.css diff --git a/site/content/docs/5.0/examples/playground/index.html b/site/content/docs/5.0/examples/playground/index.html new file mode 100644 index 000000000..5907450b3 --- /dev/null +++ b/site/content/docs/5.0/examples/playground/index.html @@ -0,0 +1,68 @@ +--- +layout: examples +title: Playground +extra_css: + - "playground.css" +--- + +
+ + + +
+ +
+ +
+ Example of a well with macOS style segmented nav above. +
+
+ + + +
+
+ +
+ + +
diff --git a/site/content/docs/5.0/examples/playground/playground.css b/site/content/docs/5.0/examples/playground/playground.css new file mode 100644 index 000000000..6bdf8668a --- /dev/null +++ b/site/content/docs/5.0/examples/playground/playground.css @@ -0,0 +1,86 @@ +/* stylelint-disable declaration-no-important */ + +body > div { + max-width: 40rem; +} + +.btn-group { + /* margin-bottom: -50%; */ +} + +.btn-group > .btn { + flex: 0; +} + +.btn-outline-primary:not(:hover) { + background-color: #fff; +} + + +.carousel-indicators { + position: static; +} + +.carousel-indicators li { + width: .5rem; + height: .5rem; + background-color: currentColor; + border-radius: 50%; +} + +.carousel-indicators li:last-child { + margin-right: 0; +} + + +.modal-sheet { + position: absolute; + /* display: block; */ + overflow: hidden; +} + +.modal-sheet .modal-dialog { + position: absolute; + right: .5rem; + bottom: -100%; + left: .5rem; + margin-bottom: .5rem; + box-shadow: 0 6px 24px rgba(0, 0, 0, .25); + transition: bottom .75s ease-in-out; +} + +.modal-sheet.show .modal-dialog { + bottom: 0; +} + + +.modal-sheet .modal-content { + border-radius: 1rem; +} + +.modal-sheet .modal-footer { + padding-bottom: 2rem; +} + +/* Hack for now */ +.modal-backdrop { display: none !important; } + + +.button-group { + display: flex; + padding: .1em; + background-color: rgba(0, 0, 0, .1); + border: 1px solid rgba(0, 0, 0, .1); + border-radius: 4rem; +} +.button-group-item { + flex: 1 1 0; + padding: .375rem .75rem; + background: none; + border: 0; +} +.button-group-item.active { + background-color: #fff; + border-radius: 3.9rem; + box-shadow: 0 .1em .2em rgba(0, 0, 0, .1); +} From 1bf7999a41d96498ea6b1a94f9f1a9ceb5e07f2f Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 23 Jul 2019 22:36:05 -0700 Subject: [PATCH 2/3] Add an iOS style list group with switches and chevrons --- .../docs/5.0/examples/playground/index.html | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/site/content/docs/5.0/examples/playground/index.html b/site/content/docs/5.0/examples/playground/index.html index 5907450b3..6deddf3e8 100644 --- a/site/content/docs/5.0/examples/playground/index.html +++ b/site/content/docs/5.0/examples/playground/index.html @@ -5,6 +5,32 @@ extra_css: - "playground.css" --- +
+
+
Item with switch
+
+ + +
+
+
+
Another with switch
+
+ + +
+
+
+
Choose an option
+
+ Selected + + + +
+
+
+
From daeddd51f0d37333572ed830ba6f900704b92cdf Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 19 Nov 2020 17:50:37 +0200 Subject: [PATCH 3/3] Adapt to main changes --- .../docs/5.0/examples/playground/index.html | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/site/content/docs/5.0/examples/playground/index.html b/site/content/docs/5.0/examples/playground/index.html index 6deddf3e8..ff0854b84 100644 --- a/site/content/docs/5.0/examples/playground/index.html +++ b/site/content/docs/5.0/examples/playground/index.html @@ -10,14 +10,14 @@ extra_css:
Item with switch
- +
Another with switch
- +
@@ -48,11 +48,11 @@ extra_css:
-