-
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
b9f9a56
commit f3ad66a
Showing
3 changed files
with
108 additions
and
78 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
93 changes: 93 additions & 0 deletions
93
packages/apps/docs/src/components/Layout/components/TitleHeader/style.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,93 @@ | ||
import { breakpoints, sprinkles, vars } from '@kadena/react-ui/theme'; | ||
|
||
import { $$pageWidth } from '../../global.css'; | ||
|
||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const headerWrapperClass = style([ | ||
sprinkles({ | ||
position: 'relative', | ||
display: 'grid', | ||
}), | ||
{ | ||
gridArea: 'pageheader', | ||
height: `calc(${vars.sizes.$64} + ${vars.sizes.$10})`, | ||
gridTemplateRows: `${vars.sizes.$64} ${vars.sizes.$10}`, | ||
gridTemplateAreas: ` | ||
"main" | ||
"shadow" | ||
`, | ||
zIndex: 99, | ||
|
||
selectors: { | ||
'&::before': { | ||
content: '', | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
right: 0, | ||
bottom: vars.sizes.$10, | ||
backgroundColor: vars.colors.$background, | ||
}, | ||
'&::after': { | ||
content: '', | ||
position: 'absolute', | ||
inset: 0, | ||
background: 'url("/assets/bg-horizontal.png")', | ||
backgroundRepeat: 'no-repeat', | ||
backgroundPositionX: 'center', | ||
backgroundPositionY: '95%', | ||
transform: 'scaleX(-1)', | ||
|
||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
transform: 'scaleX(1)', | ||
}, | ||
}, | ||
}, | ||
}, | ||
|
||
'@media': { | ||
[`screen and ${breakpoints.md}`]: { | ||
zIndex: 101, | ||
}, | ||
}, | ||
}, | ||
]); | ||
|
||
export const headerClass = style([ | ||
sprinkles({ | ||
position: 'relative', | ||
}), | ||
{ | ||
gridArea: 'main', | ||
zIndex: 3, | ||
backgroundColor: 'rgba(250,250,250, .8)', | ||
}, | ||
]); | ||
|
||
export const wrapperClass = style([ | ||
sprinkles({ | ||
position: 'relative', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
marginX: 'auto', | ||
marginTop: 0, | ||
marginBottom: '$6', | ||
paddingBottom: '$10', | ||
paddingTop: '$20', | ||
paddingX: '$4', | ||
}), | ||
{ | ||
maxWidth: $$pageWidth, | ||
}, | ||
]); | ||
|
||
export const subheaderClass = style([ | ||
sprinkles({ | ||
color: '$neutral4', | ||
textAlign: 'center', | ||
}), | ||
]); |
68 changes: 0 additions & 68 deletions
68
packages/apps/docs/src/components/Layout/components/TitleHeader/style.ts
This file was deleted.
Oops, something went wrong.