Jacob Otto
03/26/2021, 10:22 AMBig Chungus
03/26/2021, 10:24 AMJacob Otto
03/26/2021, 10:30 AMposition(
sm = { fixed {
left { "50%" }
*** I WANT TO HAVE IT HERE ***
} },
md = { fixed { left { none } } }
)
Jacob Otto
03/26/2021, 10:39 AMcss(sm = "transform: translate(-50%, 0%);", md = "transform: translate(0%, 0%);")
πBig Chungus
03/26/2021, 10:58 AMBig Chungus
03/26/2021, 10:59 AMJacob Otto
03/26/2021, 11:32 AMChristian Hausknecht
03/29/2021, 8:38 AM// somehow within a styling context - NOT A WORKING EXAMPLE, just a sketch ;-)
sm {
position { fixed { left { "50%" } } }
css("transform: translate(-50%, 0%)")}
md {
position { fixed { left { none } } }
css("transform: translate(0%, 0%)")
}
On the other hand one might argue, that with the current approach you clearly can discover for each function separately, how it behaves for different breakpoints.
But your solution is the currently supported one and quite useable imho.Big Chungus
03/29/2021, 1:16 PM