heh
This commit is contained in:
parent
1735d4ef65
commit
6a0c1cb377
2 changed files with 55 additions and 2 deletions
39
src/routes/(shell)/index.module.css
Normal file
39
src/routes/(shell)/index.module.css
Normal file
|
@ -0,0 +1,39 @@
|
|||
.list {
|
||||
anchor-name: --carousel;
|
||||
overflow: auto;
|
||||
scroll-snap-type: inline mandatory;
|
||||
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
|
||||
inline-size: 80%;
|
||||
justify-self: center;
|
||||
|
||||
& > li {
|
||||
inline-size: 30vw;
|
||||
list-style: none;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
&::scroll-button(inline-start),
|
||||
&::scroll-button(inline-end) {
|
||||
position: fixed;
|
||||
position-anchor: --carousel;
|
||||
}
|
||||
|
||||
&::scroll-button(inline-start) {
|
||||
--_inner: center span-inline-end;
|
||||
--_outer: inline-start center;
|
||||
|
||||
position-area: var(--_outer);
|
||||
content: 'arrow_back' / 'Previous';
|
||||
}
|
||||
|
||||
&::scroll-button(inline-end) {
|
||||
--_inner: center span-inline-start;
|
||||
--_outer: inline-end center;
|
||||
|
||||
position-area: var(--_outer);
|
||||
content: 'arrow_forward' / 'Next';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue