Unfortunately I couldn't find a way to achieve this with AMCSS. It's possible to chain attributes like [am-foo][am-bar], but that defeats the purpose whilst chaining attribute values is desired instead.
EDIT: I'm sorry, it was late last night and I totally overlooked this simple solution I was after. Obviously you can chain any types of attributes, like so:
I really like the idea behind AMCSS, but it seems to lack an essential feature -- trait chaining.
In CSS you can chain classes to apply specific styles only when certain classes co-exist on an element:
Unfortunately I couldn't find a way to achieve this with AMCSS. It's possible to chain attributes like
[am-foo][am-bar]
, but that defeats the purpose whilst chaining attribute values is desired instead.EDIT: I'm sorry, it was late last night and I totally overlooked this simple solution I was after. Obviously you can chain any types of attributes, like so: