Skip to content

Commit

Permalink
docs: fix layout media queries section
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed Jul 3, 2024
1 parent 459b51e commit 780c0dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/component-model/layout-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,18 @@ The compound selector is place as-is into the generated class selector, so any s

## Media Queries

Similarly to the compound selector, the layout supports media queries with the value followed by `@` character. Generally, not predefined values maps to `min-width` media query (The layout engine comes with `portrait` and `landscape` built-in queries).
In the similar way to the compound selector, the layout supports media queries with the value followed by `@` character. Not predefined values maps to `min-width` media query:

```html
<div layout="row gap" layout@768px="column gap:2"></div>
```

The layout engine comes with `portrait` and `landscape` built-in queries:

```html
<div layout="row" layout@portrait="column gap:2" layout@landscape="row gap:3"></div>
```

## Arguments

The attribute value contains space-separated list of rules. The rules are applied in the order they are added to the attribute. The rules comes with useful predefined arguments, but depending on the rule, they can take a list of arguments separated by `:` character (without the whitespace):
Expand Down

0 comments on commit 780c0dd

Please sign in to comment.