@@ -2,7 +2,11 @@ import { css } from "@linaria/core";
22import cn from "classnames" ;
33import { Component , JSX } from "solid-js" ;
44import DialogImage from "~/DialogImage" ;
5- import { breakpoint , breakpointUntil } from "~/style/commonStyle" ;
5+ import {
6+ breakpoint ,
7+ breakpointFrom ,
8+ breakpointUntil ,
9+ } from "~/style/commonStyle" ;
610
711const images : Component [ ] = Object . values (
812 import . meta. glob ( "@assets/gallery/*.jpg" , {
@@ -47,20 +51,21 @@ const _GallerySite = css``;
4751
4852const Grid = css `
4953 display : grid;
50- grid-template-columns : repeat (auto-fit , minmax ( 350 px , 1fr ) );
54+ grid-template-columns : repeat (3 , 1fr );
5155 grid-gap : 0 ;
52- ${ breakpointUntil ( "m" ) } {
53- grid-template-columns : repeat (auto-fit, minmax (300px , 1fr ));
56+ ${ breakpoint ( "xs" ) } {
57+ grid-template-columns : repeat (2 , 1fr );
58+ }
59+ ${ breakpoint ( "l" ) } {
60+ grid-template-columns : repeat (4 , 1fr );
61+ }
62+ ${ breakpoint ( "xl" ) } {
63+ grid-template-columns : repeat (5 , 1fr );
5464 }
5565` ;
5666
5767const card = css `
58- ${ breakpoint ( "s" ) } {
59- & : nth-child (1n + 18) + div {
60- display : none;
61- }
62- }
63- ${ breakpoint ( "m" ) } {
68+ ${ breakpoint ( "s" , "m" ) } {
6469 & : nth-child (1n + 18) + div {
6570 display : none;
6671 }
0 commit comments