Chrys
02/29/2024, 2:22 PMhead { style{ +"styles in string "} }
the most kotlinesque way to achieve the equivalent of this html:
<head>
<style>
#api{
// some style definitions
}
.heading h1{
// some style definitions
}
#attributeList{
// some style definitions
}
.attrEntry input:focus{
// some style definitions
}
#api button:hover {
// some style definitions
}
.divider h2, .create p{
// some style definitions
}
#attributeList + .buttons{
// some style definitions
}
@media only screen and (max-width: 720px) {
html{
// some style definitions
}
}
</style>
</head>
turansky
02/29/2024, 5:25 PMGlobals
component from koltin-emotion
can do this (if you use React)