I enjoy seeing other people's solution, but since I really learned the power of grid, most of this is overdone with flex. As an example, here's how you can make a vstack with grid. vstack { display:grid; } It's ridiculously simple and clean, works with all the elements without extra wrappers, no margins, no cleaning up trailing spaces, etc... add spacing class using "grid-gap" and it's the near perfect solution. The…
Pylon – Declarative layout primitives for CSS and HTML
51–60 of 78 posts
Re: Pylon – Declarative layout primitives for CSS and HTML
#52I enjoy seeing other people's solution, but since I really learned the power of grid, most of this is overdone with flex. As an example, here's how you can make a vstack with grid. vstack { display:grid; } It's ridiculously simple and clean, works with all the elements without extra wrappers, no margins, no cleaning up trailing spaces, etc... add spacing class using "grid-gap" and it's the near perfect solution. The…
Only problem with grid vs flex is browser support. I opt for flex still because it's got better support.
The benefit of an assumption like "everything by default is vertical", then the few people without grid support, but with flex, will have a "mostly" ok display.
Also, it's not hard to have a fallback to flex for horizontal items. (the only place it would really matter)
Re: Pylon – Declarative layout primitives for CSS and HTML
#53Earlier quoted context omitted.
They mix content and presentation. If you separate content from presentation, then you can have a presentation for desktop an another for mobile. Also, you can totally change the layout without the need to change your HTML, as showcased in http://www.csszengarden.com/
The whole concept of separated “content” form “presentation” in UI is a bunch of nonsense. Maybe it works somewhere in some very limited sense, but I’ve yet to see anything complex that separates these things.
Re: Pylon – Declarative layout primitives for CSS and HTML
#54Earlier quoted context omitted.
They mix content and presentation. If you separate content from presentation, then you can have a presentation for desktop an another for mobile. Also, you can totally change the layout without the need to change your HTML, as showcased in http://www.csszengarden.com/
The whole concept of separated “content” form “presentation” in UI is a bunch of nonsense. Maybe it works somewhere in some very limited sense, but I’ve yet to see anything complex that separates these things.
If you’d instead left presentation to the display tool, you’d only need to change the content.
The HTML presentation/content argument is this scaled up.
Re: Pylon – Declarative layout primitives for CSS and HTML
#55for paragraph. Their featured snippets appear to be capable of extracting info that isn't in that form and bumping it to the top of results, but to prefer not to. My $.02 from starting to learn that game.
Re: Pylon – Declarative layout primitives for CSS and HTML
#56In a prior life I developed a slew of XUL apps, including a full-suite medical record system and billing system. It had its quirks, but for a developer-heavy (and design-light) firm it was a great way to build standard, predictable, and accessible UIs.
Re: Pylon – Declarative layout primitives for CSS and HTML
#57Fun idea. The naming is weird as pylon used to be a python web framework but since it's not going to have any chance to become popular, overriding it seems alright.
Re: Pylon – Declarative layout primitives for CSS and HTML
#58Earlier quoted context omitted.
They mix content and presentation. If you separate content from presentation, then you can have a presentation for desktop an another for mobile. Also, you can totally change the layout without the need to change your HTML, as showcased in http://www.csszengarden.com/
The whole concept of separated “content” form “presentation” in UI is a bunch of nonsense. Maybe it works somewhere in some very limited sense, but I’ve yet to see anything complex that separates these things.
In other domains separating content from presentation works well. But in web development the incentives don't align with that idea.
Re: Pylon – Declarative layout primitives for CSS and HTML
#59Re: Pylon – Declarative layout primitives for CSS and HTML
#60Wow. So many kill-joys in this thread. I think the project is neat. It certainly is an opinionated way of doing a layout and it reads quite nicely. If CSS classes were provided as an alternative I think the project might have more adopters. Good work :)
I agree with you, I think this is clean and easy to use.
Personally, I've stuck with Bootstrap for quite awhile now. It's not perfect but it's pretty good, well documented, and I work to keep it simple. So I don't really use a lot of what Bootstrap does and that's why this project appeals to me.