thana
05/04/2022, 11:50 AM<Drawer
sx={{
width: drawerWidth,
flexShrink: 0,
'& .MuiDrawer-paper': {
width: drawerWidth,
boxSizing: 'border-box',
},
}}
How would i add these stylings to the MuiDrawer-paper class the kotlin way?turansky
05/04/2022, 6:57 PMsx {
MuiDrawer.paper {
width = drawerWidth
}
}
thana
05/06/2022, 6:54 AMturansky
05/06/2022, 11:06 AMthana
05/06/2022, 11:15 AM'& .MuiDrawer-paper'
(mind the &
). i mean MAYBE kotlin/js already reners this selector when i use the code snippet you posted as an answer, but i cant find that out.
Another instance: i couldn't find any documentation about how i can declare arbitrary css classes using kotlin/js and register it somewhere. i googled it and ended up here https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-css/README.md
And it writes After constructing a stylesheet you can serialize it into a string and do with it as you please:
. reading this i kinda feel pranked because its the do with it as you please:
is exactly the part i was looking forthana
05/06/2022, 11:16 AM