diff --git a/src/components/Block/Block.stories.svelte b/src/components/Block/Block.stories.svelte index c89f1d41..61e79519 100644 --- a/src/components/Block/Block.stories.svelte +++ b/src/components/Block/Block.stories.svelte @@ -55,7 +55,7 @@ -
+
Column
Column
@@ -148,8 +148,11 @@ } } - div.container-fluid { + div#block-flex-example { padding: 25px 0; + div.row { + display: flex; + } div.row > div { background-color: rgb(211, 132, 123); border: 1px solid white; @@ -157,6 +160,7 @@ padding: 20px; color: white; text-align: center; + flex-grow: 1; } div.row:first-child { div { diff --git a/src/components/Block/stories/docs/customLayouts.md b/src/components/Block/stories/docs/customLayouts.md index dabbd961..fd48c583 100644 --- a/src/components/Block/stories/docs/customLayouts.md +++ b/src/components/Block/stories/docs/customLayouts.md @@ -10,4 +10,4 @@ If you need to get really radical, the easiest way is to create a `Block` with a ``` -The demo below does exactly that to create an edge-to-edge grid with [bootstrap](https://getbootstrap.com/docs/5.2/layout/grid/). +The demo below does exactly that to create an edge-to-edge grid with [flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/). diff --git a/src/docs/docs-components/ThemeBuilder/Customiser/Value.jsx b/src/docs/docs-components/ThemeBuilder/Customiser/Value.jsx index 5bfae2de..c0ab37da 100644 --- a/src/docs/docs-components/ThemeBuilder/Customiser/Value.jsx +++ b/src/docs/docs-components/ThemeBuilder/Customiser/Value.jsx @@ -5,7 +5,7 @@ import ColourPicker from './ColourPicker.jsx'; const Input = ({ value, onChange }) => { // Number type - if (!isNaN(value)) return onChange(e.target.value)}/>; + if (!isNaN(value)) return onChange(Number(e.target.value))}/>; // Colour type if (!/var\(.*\)/i.test(value) && CSS.supports('color', value)) return ( diff --git a/src/docs/docs-components/ThemeBuilder/Customiser/styles.module.scss b/src/docs/docs-components/ThemeBuilder/Customiser/styles.module.scss index 0d72be99..4564639f 100644 --- a/src/docs/docs-components/ThemeBuilder/Customiser/styles.module.scss +++ b/src/docs/docs-components/ThemeBuilder/Customiser/styles.module.scss @@ -40,7 +40,7 @@ } div.key { div.key { - padding-left: 20px; + padding-left: 10px; } } div.value { @@ -67,10 +67,11 @@ .colourpicker :global { width: 160px; + margin-bottom: 10px; .react-colorful { - height: 140px; + height: 120px; width: 160px; - border: 1px solid #ccc; + border: 1px solid #666; border-radius: 4px; overflow: hidden; } @@ -87,6 +88,6 @@ } input { width: 100%; - margin-bottom: 10px !important; + margin-bottom: 5px !important; } }