From 8793cdbf631124d23d214eeeb12817807e917363 Mon Sep 17 00:00:00 2001 From: Matthias Leuffen Date: Sat, 25 Nov 2023 05:06:21 +0100 Subject: [PATCH] sync --- README.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 33a0421..1a366a0 100755 --- a/README.md +++ b/README.md @@ -87,8 +87,6 @@ In the example above, we define a template named `header1` that can be used to c | `data-replace` | Indicates that the slot content should be replaced | `` | | `data-copy` | Indicates that the content should be copied instead of moved | `` | - -FIXME: Slots are not replaced in the order they are defined in the template. First data-copy, then data-select, then default slot. Slots are replaced in the order they are defined within the template. An element can only be selected once unless the `data-copy` attribute is set. If no `` element without a `data-select` attribute is found, elements that are not explicitly selected will be removed. To add classes or wrap a sub-element of a slot into its own template, use the `data-child-class` attribute or the `--joda-wrap` command respectively. @@ -164,10 +162,39 @@ For a detailed example of how JodaSplit processes input, see the [jodasplit-outp ### Responsive Design (Jodaresponsive) -TODO: Add examples - JodaStyle includes a processor for responsive design, which applies classes based on the viewport size and custom responsive classes. +#### Responsive Class Syntax + +The syntax for responsive classes is as follows: + +``` +class="class :: :breakpoint: " +``` + +Example: + +```html +
+``` + +This is equivalent to: + +```html +
+``` + +#### Breakpoints + +| Breakpoint | Width | +|------------|--------| +| xsm | 0px | +| sm | 576px | +| md | 768px | +| lg | 992px | +| xl | 1200px | +| xxl | 1400px | + For more information on how to use responsive design with JodaStyle, refer to the [Jodaresponsive](/processor/jodaresponsive.ts) processor. ## API Reference