Zakum
Explore posts from serversKPCKevin Powell - Community
•Created by Zakum on 1/4/2023 in #front-end
Sliding sidenav (pushes main content)
Hey friends, I have a left-side navigation pane that on smaller screens should slide out from left to right like a drawer and push the main content to the right.
Are there any tutorials on this kind of side nav? I've tried a few times but can never get this effect to work flawlessly using grid.
4 replies
KPCKevin Powell - Community
•Created by Zakum on 10/16/2022 in #front-end
Any alternative to repeatedly importing your SASS color palette?
Hi everyone, I'm working on a svelte project with sass.
I have a partial
_colors.scss
that has a general palette used in multiple components.
As the project grows, the number of @use colors
will increase.
For testing, I added @use colors/typography/themes
to a component that doesn't need any of them.
In Chrome DevTools: Coverage tab I noticed that this increases the resultant css file, as well as the unused CSS percentage.
So I assume it's bad practice to repeatedly import a partial such as _colors.scss
into multiple components. Is the best alternative using css var()
instead? I do like the brevity of a simple $gray
over custom properties.6 replies