Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
criswell
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
criswell
1y ago
This is a really cool idea. The use of custom attributes without `data-` before it makes me a little nervous. Is that a concern here? I saw `project` being used on elements and if that's officially used for something eventually can it
2.
▲
by
criswell
1y ago
This takes away so many of the criticisms I see in this thread. The issue with Tailwind, and my only minor criticism, is just long, unreadable, not easy to deliminate lists of classes. This very easily takes care of that (and I use it for m
3.
▲
by
criswell
3y ago
If I didn't sit at a desk way too much I'd give it a shot. There seems to be some solid advantages.
4.
▲
by
criswell
3y ago
I really like Arc. Takes some getting used to but worth the adjustment I think.
5.
▲
by
criswell
3y ago
"it's trivial to edit and add stuff, and requires basically no maintenance whatsoever." What an absolute dream.
6.
▲
by
criswell
3y ago
If every instinct you have is wrong, then the opposite would have to be right.
7.
▲
by
criswell
3y ago
I don't recall that, just to not rely on the order of an object's keys, which appears to be outdated advice (at least for Javascript). https://2ality.com/2015/10/property-traversal-order-es6.html
8.
▲
by
criswell
3y ago
give me apache directory listing styled websites or give me death
9.
▲
by
criswell
4y ago
I want to say this but too lazy to defend it.
10.
▲
by
criswell
4y ago
This is why I'm so bummed by it.
11.
▲
by
criswell
4y ago
Intellisense would help a lot with this task: https://gist.github.com/crswll/db0d276bbf0884b003f3715d48e68...
12.
▲
by
criswell
4y ago
Looking forward to the takes on your 91st account.
13.
▲
by
criswell
4y ago
I know it's going to be abused to hell like everything popular but definitely a useful power tool. It'll be really nice for container queries when they're ready. Something like: `wider-than-[500px]:hover:text-red-500` and so
14.
▲
by
criswell
4y ago
You can't get punched in the mouth on the internet.
15.
▲
by
criswell
6y ago
There's `space-y-N` which does exactly this, `space-x-N` for horizontal.
16.
▲
by
criswell
6y ago
If you want to change the padding in a project that's using Tailwind you only need to look for classes that begin with `p` followed by a letter for a side or x and y for an axis (same is true for margins). Those are by far the most cry
17.
▲
by
criswell
6y ago
Yeah, but humans.
18.
▲
by
criswell
8y ago
I'm sorry I'm just not seeing the value in it. I'm just seeing more complexity JS and CSS wise without solving any problems.
19.
▲
by
criswell
8y ago
I'm just saying if you want to target something on an element it needs to be set in an attribute and classList takes care of this. I use classes strictly for styling. I change these styles by adding and removing class names and classLi
20.
▲
by
criswell
8y ago
I wasn’t aware of the tilde attribute selector. Still a lot more characters, though. The classList api is still a lot more suited for this than dataset. None of the modifications done through the dataset api would reflect in the DOM and be
21.
▲
by
criswell
8y ago
Totally talking without thinking about it too much here: The classList API makes modifications to the class property very easily. You'd be essentially limited to one identifier in attribute selectors. You can't really select from
22.
▲
by
criswell
8y ago
You're changing the source order doing this which can get messy plus generating a lot of long selectors. Example: .m4, .profile-card, .other-card, .header, .foo, blah { margin: 4em; }
23.
▲
by
criswell
8y ago
This is how you can do all of that: class="hover:red" -> .hover\:red:hover { color: red } class="before:red" -> .before\:red::before { color: red } class="medium:red" -> @media (min-width: 50
24.
▲
by
criswell
8y ago
I'm a frontend developer of about 15 years as well and I think functional css makes a lot of sense. My biggest argument for it is not having to name every thing. You know how many times I've had to think of a name for a random con
25.
▲
by
criswell
8y ago
You can use `text-primary` or `text-secondary`. Sure it's less obvious looking at the markup what something looks like but it allows for theming.
26.
▲
by
criswell
9y ago
Hopefully most are updating the property and not the attribute.
27.
▲
by
criswell
9y ago
It would only give you the last character of the password though. You can use CSS selectors to check the start [value^=a] and anything in the middle [value*=a] as well though which can be revealing I imagine.
28.
▲
by
criswell
9y ago
I love the logo. Making something as scary as a { look friendly.
29.
▲
by
criswell
9y ago
Why was it hard to read for you? I'm having no trouble. I'm wondering if a lot of the CSS is more tailored towards macOS/Chrome? Also, the site being responsive makes `Command +`ing work beautifully (if the issue is font-size
30.
▲
by
criswell
10y ago
If you like this, you'll lOoOoOoOve this: http://cssreference.io/
More ›