-
Notifications
You must be signed in to change notification settings - Fork 25
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
1 parent
bbb8005
commit 93e2b4d
Showing
13 changed files
with
187 additions
and
178 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/apps/docs/src/components/LastModifiedDate/LastModifiedDate.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
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
61 changes: 61 additions & 0 deletions
61
packages/apps/docs/src/components/Layout/Full/styles.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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { breakpoints, sprinkles, vars } from '@kadena/react-ui/theme'; | ||
|
||
import { $$pageWidth } from '../global.css'; | ||
|
||
import { createVar, style } from '@vanilla-extract/css'; | ||
|
||
export const $$shadowWidth = createVar(); | ||
export const $$asideMenuWidthCode = createVar(); | ||
export const $$asideMenuWidthMDDefault = createVar(); | ||
export const $$asideMenuWidthLGDefault = createVar(); | ||
|
||
export const asidebackgroundClass = style([ | ||
sprinkles({ | ||
display: 'none', | ||
}), | ||
|
||
{ | ||
vars: { | ||
[$$shadowWidth]: vars.sizes.$25, | ||
[$$asideMenuWidthCode]: '400px', | ||
[$$asideMenuWidthMDDefault]: '200px', | ||
[$$asideMenuWidthLGDefault]: '300px', | ||
}, | ||
|
||
selectors: { | ||
'&::before': { | ||
content: '', | ||
position: 'absolute', | ||
pointerEvents: 'none', | ||
inset: 0, | ||
zIndex: 0, | ||
backgroundImage: 'url("/assets/bg-code.png")', | ||
backgroundRepeat: 'no-repeat', | ||
backgroundPositionY: '-100px', | ||
backgroundPositionX: `calc(100vw - (${$$asideMenuWidthMDDefault} + ${$$shadowWidth}))`, | ||
|
||
'@media': { | ||
[`screen and ${breakpoints.xxl}`]: { | ||
backgroundPositionX: `calc(${$$pageWidth} + ((100vw - ${$$pageWidth}) /2 ) - (${$$asideMenuWidthLGDefault} + ${$$shadowWidth}))`, | ||
}, | ||
}, | ||
}, | ||
'&::after': { | ||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
left: `calc(100vw - (${$$asideMenuWidthMDDefault} + ${vars.sizes.$4}))`, | ||
}, | ||
[`screen and ${breakpoints.xxl}`]: { | ||
left: `calc(${$$pageWidth} + ((100vw - ${$$pageWidth}) /2) - ${$$asideMenuWidthLGDefault})`, | ||
}, | ||
}, | ||
}, | ||
}, | ||
|
||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
display: 'block', | ||
}, | ||
}, | ||
}, | ||
]); |
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
65 changes: 65 additions & 0 deletions
65
packages/apps/docs/src/components/Layout/Redocly/styles.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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { breakpoints, sprinkles, vars } from '@kadena/react-ui/theme'; | ||
|
||
import { $$backgroundOverlayColor, $$pageWidth } from '../global.css'; | ||
|
||
import { createVar, style } from '@vanilla-extract/css'; | ||
|
||
export const $$shadowWidth = createVar(); | ||
export const $$asideMenuWidthCode = createVar(); | ||
|
||
export const codebackgroundClass = style([ | ||
sprinkles({}), | ||
|
||
{ | ||
vars: { | ||
[$$shadowWidth]: vars.sizes.$20, | ||
[$$asideMenuWidthCode]: '400px', | ||
}, | ||
selectors: { | ||
'&::before': { | ||
display: 'none', | ||
content: '', | ||
position: 'absolute', | ||
pointerEvents: 'none', | ||
inset: 0, | ||
backgroundColor: vars.colors.$background, | ||
backgroundImage: 'url("/assets/bg-vertical.png")', | ||
backgroundRepeat: 'no-repeat', | ||
backgroundPositionY: '-100px', | ||
backgroundPositionX: '-100px', | ||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
backgroundColor: 'transparent', | ||
backgroundPositionX: `calc(100vw - (${$$asideMenuWidthCode} + ${$$shadowWidth}))`, | ||
}, | ||
[`screen and ${breakpoints.lg}`]: { | ||
backgroundPositionX: `calc(100vw - (${$$asideMenuWidthCode} + ${$$shadowWidth}))`, | ||
}, | ||
[`screen and ${breakpoints.xl}`]: { | ||
display: 'block', | ||
}, | ||
[`screen and ${breakpoints.xxl}`]: { | ||
backgroundPositionX: `calc(${$$pageWidth} + ((100vw - ${$$pageWidth}) /2 ) - (${$$asideMenuWidthCode} + ${$$shadowWidth}))`, | ||
}, | ||
}, | ||
}, | ||
'&::after': { | ||
backgroundColor: 'transparent', | ||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
left: `calc(100vw - (${$$asideMenuWidthCode} + ${vars.sizes.$4}))`, | ||
}, | ||
[`screen and ${breakpoints.lg}`]: { | ||
left: `calc(100vw - (${$$asideMenuWidthCode} + ${vars.sizes.$4} + ${vars.sizes.$4}))`, | ||
}, | ||
[`screen and ${breakpoints.xl}`]: { | ||
backgroundColor: $$backgroundOverlayColor, | ||
}, | ||
[`screen and ${breakpoints.xxl}`]: { | ||
left: `calc(${$$pageWidth} + ((100vw - ${$$pageWidth}) /2) - (${$$asideMenuWidthCode} + ${vars.sizes.$6} ))`, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
]); |
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
35 changes: 35 additions & 0 deletions
35
packages/apps/docs/src/components/Layout/basestyles.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { breakpoints, sprinkles } from '@kadena/react-ui/theme'; | ||
|
||
import { $$backgroundOverlayColor } from './global.css'; | ||
|
||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const basebackgroundClass = style([ | ||
sprinkles({ | ||
position: 'absolute', | ||
pointerEvents: 'none', | ||
zIndex: 0, | ||
}), | ||
{ | ||
width: '100vw', | ||
height: '100vh', | ||
transform: 'translateX(100vw)', | ||
|
||
selectors: { | ||
'&::after': { | ||
content: '', | ||
position: 'absolute', | ||
inset: 0, | ||
backgroundColor: $$backgroundOverlayColor, | ||
zIndex: 1, | ||
}, | ||
}, | ||
|
||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
position: 'fixed', | ||
transform: 'translateX(0)', | ||
}, | ||
}, | ||
}, | ||
]); |
Oops, something went wrong.