This repository was archived by the owner on Jan 30, 2025. It is now read-only.
Releases: zss-in-js/typedcssx
Releases · zss-in-js/typedcssx
1.1.2
1.1.0
Minor update.
- add pseudo selector of &.
- add pseudo has.
This allows expressions like the following:
export const styles = Scoped.sheet({
header_nav: {
"& ul li": {
fontSize: 12,
textAlign: 'left'
},
},
footer_nav: {
hasDivPlusP: {
position: 'relative',
margin: '0 140px'
},
},
})Of course, complex has expressions can be written using &.
Others
- Fixed an error that occurred with pseudo elements with arguments.
1.0.8
There were Type warnings but they have been improved.
sheet<T extends ClassesObjectType>(object: T & ClassesObjectType): ReturnStyleType<T> after
sheet<T extends ClassesObjectType>(object: ExactClassesObjectType<T> | ClassesObjectType): ReturnStyleType<T> It is now possible to assign numbers to the value of certain properties.
These are usually converted to pixel.
export const style = Scoped.style({
fontSize: 14,
opacity: 0.2,
padding: 400,
});