Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Oct 30, 2023
1 parent 4331a5a commit c0b5498
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
34 changes: 20 additions & 14 deletions src/app/components/SidebarDrawer.css.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
import { keyframes, style } from '@vanilla-extract/css'
import { sidebarVars, viewportVars, zIndexVars } from '../styles/vars.css.js'

const expand = keyframes({
from: {
left: `calc(-1 * ${sidebarVars.width})`,
},
to: {
left: 0,
const expand = keyframes(
{
from: {
left: `calc(-1 * ${sidebarVars.width})`,
},
to: {
left: 0,
},
},
})
'expand',
)

const fadeIn = keyframes({
from: {
opacity: 0,
},
to: {
opacity: 1,
const fadeIn = keyframes(
{
from: {
opacity: 0,
},
to: {
opacity: 1,
},
},
})
'fadeIn',
)

export const root = style({
display: 'none',
Expand Down
2 changes: 1 addition & 1 deletion src/app/styles/vars.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ globalStyle(':root', {
[viewportVars['max-720px']]: {
vars: {
[contentVars.horizontalPadding]: spaceVars['16'],
[contentVars.verticalPadding]: spaceVars['24'],
[contentVars.verticalPadding]: spaceVars['32'],
[sidebarVars.horizontalPadding]: spaceVars['16'],
},
},
Expand Down

0 comments on commit c0b5498

Please sign in to comment.