CSS Scope & Mixins

YouTube

Thoughts on Native CSS Mixins, by @chriscoyier (@frontendmasters.com):

https://frontendmasters.com/blog/thoughts-on-native-css-mixins/

#css #mixins

Thoughts on Native CSS Mixins – Frontend Masters Blog

There are no browser implementations of mixins yet, nor a fleshed out spec. So perhaps now is the best time to try to understand and opine.

Unconditional Love for Conditional CSS - Geoff Graham

(Re-published from the Smashing Magazine newsletter.)

Geoff Graham

Vue: Composables и TS это вам не Mixins и JS. С ними сложнее

Пришел к хитрому паттерну. Делюсь. Будет полезен тем кому нравиться или приходится работать с Vue. В подходящей ситуации он сэкономит кучу времени и поможет избежать дублирования кода. Поехали!

https://habr.com/ru/articles/927214/

#mixins #composables #vue #javascript #typescript #ts #js #props #events #оптимизация_кода

Vue: Composables и TS это вам не Mixins и JS. С ними сложнее

Пришел к хитрому паттерну. Делюсь. Будет полезен тем кому нравиться или приходится работать с Vue. В подходящей ситуации он сэкономит кучу времени и поможет избежать дублирования кода. Контекст Есть...

Хабр

Tailwind’s “@ apply” Feature Is Better Than It Sounds, by @zellwk.bsky.social (@csstricks):

https://css-tricks.com/tailwinds-apply-feature-is-better-than-it-sounds/

#tailwind #sass #mixins #comparisons

Tailwind's @apply Feature is Better Than it Sounds | CSS-Tricks

Most of the time, people showcase Tailwind's @apply feature with one of Tailwind's single-property utilities (which changes a single CSS declaration). When showcased this way, @apply doesn't sound promising at all. So obviously, nobody wants to use it. Personally, I think Tailwind's @apply feature is better than described.

CSS-Tricks
The mix-in revolution

How an ice cream innovator in Somerville influenced Lisp pioneers at the MIT AI Lab­—and made a lasting mark on programming.

MIT Technology Review
Slightly enhanced sticky revealing footer

Andy Bell showed a nice little UI effect with his “sticky revealing footer”. However, on some pages, the experience was mediocre. A quest was started to improve it.

Crinkles

halfway to implementing #mixins for #rustlang out of #spite: the "it doesn't actually let you do that, does it" edition

afraid to report i've finally found a compelling use case for #procedural #macros 😔 #smh

last 2-3 weeks, besides a bunch of mostly aimless traveling, were dedicated to this insane 70+-#commit #refactor on the #rust #tui #daw, bouncing between 5 and 512 compile errors...

and i'm still not happy with the code quality... but let's say i've massaged the code around enough, and collected the not-yet-clarified bits in several places rather than all over the place...

my favorite language feature that neither #rustlang nor #ecmascript has? #mixins. there, i said it 😔