Lurker News

Comments (108) 33 threads

Earlier comments
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

gitgud1 reply#
Amazing, I've always loved the design but have been a little intimidated by how intricate it can be to implement, so this looks awesomely easy!!

Also, wondering; how does this use custom css properties without using javascript?

err4nt#
CSS custom properties don't need JavaScript to work - they're a platform feature. You can read them and interact with them from JavaScript just like any other CSS property, but just like any other CSS property it can be used 100% independently from any JS.
cyberpunk#
Really nice! I'll definitely be having a play. Do you think this could be incorporated easily into jekyll/hugo sites?

Although, this cyberpunk at least, tends to stick to TUI's ;)

mcv#
This is really cool and elegant. I feel like I should start a project to use it somewhere. In fact, I'm running a Shadowrun game. Might come in handy.

Load more comments