Search

Nalezeno "Code": 1641

How I Learned to Stop Worrying and Love Git Hooks


The merits of Git as a version control system are difficult to contest, but while Git will do a superb job in keeping track of the commits you and your teammates have made to a repository, it will not, in itself, guarantee the quality of those commits. Git will not stop you from committing code...

A Codebase and a Community


I woke up one morning and realized that I had it all wrong. I discovered that code and design are unable to solve every problem on a design systems team, even if many problems can be solved by coding and designing in a dark room all day. Wait, huh? How on earth does that make any sense? Well...

TRON’s SUN Network Code V1.0 is Released, DAppChain MainNet Goes Live


On September 25, 2019, an announcement is made by the leading blockchain company TRON Foundation that they will release SUN Network V1.0 (DAppChain) mainnet for the sidechain solutions. TRON Foundation develops the base of a decentralized internet. The TRON protocol supports the DApps with high...

A Dark Mode Toggle with React and ThemeProvider


I like when websites have a dark mode option. Dark mode makes web pages easier for me to read and helps my eyes feel more relaxed. Many websites, including YouTube and Twitter, have implemented it already, and we’re starting to see it trickle onto many other sites as well. In this tutorial, we’re...

Thinking in React Hooks


Amelia Wattenberger has written this wonderful and interactive piece about React Hooks and details how they can clean up code and remove all those troubling lifecycle events: React introduced hooks one year ago, and they've been a game-changer for a lot of developers. There are tons of how-to...

Filtering Data Client-Side: Comparing CSS, jQuery, and React


Say you have a list of 100 names: <ul> <li>Randy Hilpert</li> <li>Peggie Jacobi</li> <li>Ethelyn Nolan Sr.</li> <!-- and then some --> </ul> ...or file names, or phone numbers, or whatever. And you want to filter them...

Link Underlines That Animate Into Block Backgrounds


It's a cool little effect. The default link style has an underline (which is a good idea) and then on :hover you see the underline essentially thicken up turning into almost what it would have looked liked if you used a background-color on the link instead. Here's an example of the effect on...

Table with Expando Rows


"Expando Rows" is a concept where multiple related rows in a <table> are collapsed until you open them. You'd call that "progressive disclosure" in interaction design parlance. After all these years on CSS-Tricks, I have a little better eye for what the accessibility concerns of...

Buddy on CSS-Tricks


Here's a little direct product endorsement for ya: I literally use Buddy for deployment on all my projects. Buddy isn't just a deployment tool, we'll get to that, but it's something that Buddy does very well and definitely a reason you might look at picking it up yourself if you're looking around...

Git Pathspecs and How to Use Them


When I was looking through the documentation of git commands, I noticed that many of them had an option for <pathspec>. I initially thought that this was just a technical way to say “path,” and assumed that it could only accept directories and filenames. After diving into the rabbit hole...

A Comparison of Static Form Providers


Let’s attempt to coin a term here: "Static Form Provider." You bring your HTML <form>, but don’t worry about the back-end processing that makes it work. There are a lot of these services out there! Static Form Providers do all tasks like validating, storing, sending notifications,...

A Color Picker for Product Images


Sounds kind of like a hard problem doesn't it? We often don't have product shots in thousands of colors, such that we can flip out the <img src="product-red.jpg" alt="red product"> with <img src="product-blue.jpg" alt="blue product">. Nor do we typically have products in a vector...

Overflow And Data Loss In CSS


"Data Loss" is a funny term. My brain thinks of like packet loss on the way from the server to your browser, resulting in missing content in files. Perhaps it is that on some level, but in CSS parlance, it has to do with the overflow property. Too much content for sized container + hidden overflow...

(Why) Some HTML is “optional”


Remy Sharp digs into the history of the web and describes why the <p> tag doesn’t need to be closed like this: <p>Paragraphs don’t need to be closed <p>Pretty weird, huh? Remy writes: Pre-DOM, pre-browsers, the world's first browser was being written by Sir...

Bitcoin QR Code Generators: Search Results Dominated by Scammers


Bitcoin or the cryptocurrency space, in general, has been through a lot over the past couple of years. Followed by an epic bull run in 2017, the price of Bitcoin has consistently slumped last year, which has somewhat rebounded in 2019, rising back above $10,000 per BTC. And now, more reasons...

caniemail.com


As long as I can remember the main source for feature support in HTML email clients is Campaign Monitor's guide. Now there is a new player on the block: caniemail.com. HTML email is often joked about in how you have to code for it in such an antiquated way (<table>s! really!) but that's...

Logical Operations with CSS Variables


Very often, while using switch variables (a variable that's either 0 or 1, a concept that's explained in a greater detail in in this post), I wish I could perform logical operations on them. We don't have functions like not(var(--i)) or and(var(--i), var(--k)) in CSS, but we can emulate these...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace