generated from just-the-docs/just-the-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
title: Layout | ||
layout: home | ||
nav_order: 4 | ||
parent: Configuration | ||
--- | ||
|
||
# Configuration | ||
|
||
Add the following config to a card | ||
|
||
```yaml | ||
title: Grid layout | ||
type: custom:layout-card | ||
layout_type: custom:grid-layout | ||
layout: | ||
grid-template-columns: repeat(3, minmax(0px, 1fr)) | ||
grid-template-rows: auto | ||
grid-template-areas: | | ||
"header . ." | ||
"status . ." | ||
"favorit . ." | ||
"room1 room2 room3" | ||
"room4 room5 room6" | ||
"footer footer footer" | ||
mediaquery: | ||
'(max-width: 600px)': | ||
grid-template-columns: repeat(2, minmax(0px, 1fr)) | ||
grid-template-areas: | | ||
"header header" | ||
"status status" | ||
"favorit favorit" | ||
"room1 room2" | ||
"room3 room4" | ||
"room5 room5" | ||
'(max-width: 1000px)': | ||
grid-template-columns: repeat(2, minmax(0px, 1fr)) | ||
grid-template-areas: | | ||
"header header" | ||
"status status" | ||
"favorit favorit" | ||
"room1 room2" | ||
"room3 room4" | ||
"room5 room6" | ||
'(max-width: 1200px)': | ||
grid-template-columns: repeat(3, minmax(0px, 1fr)) | ||
grid-template-areas: | | ||
"header header ." | ||
"status status ." | ||
"favorit favorit ." | ||
"room1 room2 room3" | ||
"room4 room5 room6" | ||
cards: | ||
- type: custom:decluttering-card | ||
view_layout: | ||
grid-area: header | ||
template: header_card | ||
|
||
``` | ||
|
||
You can add your own cards or more decluttering cards with templates. |