Lurker News

Comments (108) 33 threads

Show all comments

Showing thread 13 of 33

bkyan1 reply#
Does the augmented-ui property have to live inline on the html tag, itself? ... or is there are way to define the whole exe process within the CSS class without having to inline the augmented-ui property in the HTML?
James0x572 replies#
It has to live on dom element.

BUT
I wrote a separate plugin that does exactly what you're thinking: https://github.com/propjockey/aug-attr-spliced.js
It allows you to specify

  .mydiv { --augmented-ui: tl-clip exe; }
in the CSS file and it will automatically apply the dom element attribute to whatever matches the CSS selector. The plugin needs work and optimizing and is my current priority, but the basics are there and it's functioning!
bkyan#
Oh, nice! ツ I'll check it out.
bkyan1 reply#
Hmmm... This doesn't work with external stylesheets due to browser security.
bkyan1 reply#
Preprocessing the external CSS and generating static jQuery snippets like the following, works for my use case, though:

$('section > .outer > .inner').attr('augmented-ui', "bl-clip r-clip-y br-round br-inset-clean exe");

Continue this thread — 1 reply