-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…8731) - responsive layout support ![CleanShot 2024-11-07 at 11.51.21.gif](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/LakojjjzZNf6ogjOVwKE/38b3f11f-59a6-42cc-9a41-8b72ce0998ea.gif)
- Loading branch information
Showing
4 changed files
with
59 additions
and
47 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
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
33 changes: 9 additions & 24 deletions
33
packages/frontend/core/src/mobile/views/all-docs/doc/masonry.css.ts
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 |
---|---|---|
@@ -1,28 +1,13 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const invisibleWrapper = style({ | ||
position: 'absolute', | ||
padding: 'inherit', | ||
width: '100%', | ||
height: 0, | ||
overflow: 'hidden', | ||
visibility: 'hidden', | ||
pointerEvents: 'none', | ||
}); | ||
export const invisibleList = style({ | ||
width: `calc(50% - 17px / 2)`, | ||
}); | ||
export const stacks = style({ | ||
position: 'relative', | ||
width: '100%', | ||
display: 'flex', | ||
gap: 17, | ||
padding: 16, | ||
export const paddingX = 16; | ||
export const columnGap = 17; | ||
|
||
export const masonry = style({ | ||
padding: `16px ${paddingX}px`, | ||
columnGap: columnGap, | ||
}); | ||
export const stack = style({ | ||
width: 0, | ||
flex: 1, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 10, | ||
export const masonryItem = style({ | ||
breakInside: 'avoid', | ||
marginBottom: 10, | ||
}); |
45 changes: 26 additions & 19 deletions
45
packages/frontend/core/src/mobile/views/all-docs/doc/masonry.tsx
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