Search

Nalezeno "Tricks": 3051

The Many Faces of VS Code in the Browser


VS Code is built from web technologies (HTML, CSS, and JavaScript), but dare I say today it’s mostly used a local app that’s installed on your machine. That’s starting to shift, though, as there has been an absolute explosion of … The post The Many Faces of VS Code in...

PHP Date and Time Recipes


Dealing with dates and times is one of those things that can frustrate programmers a lot. At the same time, they are fundamental to software development, used from everything from meta and how things are ordered to time-based triggers and … The post PHP Date and Time Recipes appeared first...

Zero Trickery Custom Radios and Checkboxes


I feel like half of all “custom-designed radio buttons and checkboxes” do two things: Make them bigger Colorize them I always think of SurveyMonkey for having big chunky radios and checkboxes. And indeed, just poking at their interface quickly, even … The post Zero Trickery...

What do you get for using a search input type?


Like this: <input type="search"> You get an extra-round-y appearance in Safari, which at one time matched the macOS look for search inputs, but not really anymore. I don’t hate the look, except… Safari totally ignores the font-size you set on … The post What do you...

Cherry-Picking Commits in Git


In part 5 of this series, we looked at rebasing and merging. Although there are a couple of differences between git merge and git rebase, both commands have the same goal: they integrate changes from one branch into another. The post Cherry-Picking Commits in Git appeared first on CSS-Tricks....

The Gap (Design Engineering)


Egor Kloos describes a situation where a (purely visual) designer asks for some changes to a component. There is a misunderstanding where the (code monkey) developer implements the change exactly as requested—but really what was required was both a bug … The post The Gap (Design Engineering)...

A Clever Sticky Footer Technique


Upon hearing “sticky footer” these days, I would think most people imagine a position: sticky situation where a footer element appears fixed on the screen while in the scrolling context of some parent element. That’s not quite what I’m talking … The post A Clever...

Line length revisited: following the research


Mary Dyson produces nitty gritty research on the long-accepted notion that shorter line lengths are more legible than longer ones. The study finds that shorter lines do not necessarily lead to faster reading. If you’re looking for a definitive answer … The post Line length revisited:...

Generate a Pull Request of Static Content With a Simple HTML Form


Jamstack has been in the website world for years. Static Site Generators (SSGs) — which often have content that lives right within a GitHub repo itself — are a big part of that story. That opens up the idea of … The post Generate a Pull Request of Static Content With a Simple HTML Form...

Jamstack TV


That’s the name of Netlify’s YouTube Channel. Love that. I linked up Rich’s talk the other day, which was a part of this past JamstackConf, but now all the talks are up on there. Rich got to talk … The post Jamstack TV appeared first on CSS-Tricks. You can support...

Color Alpha Anywhere


In my “Different Degrees of Custom Property Usage” article, I noted a situation about colors and CSS custom properties where I went “too far” with breaking up HSL color values. Breaking every single color into its H, S, and L parts … The post Color Alpha Anywhere...

Defining and Applying UI Themes Using the Mimcss CSS-in-JS Library


Theming UI refers to the ability to perform a change in visual styles in a consistent manner that defines the “look and feel” of a site. Swapping color palettes, à la dark mode or some other means, is a good … The post Defining and Applying UI Themes Using the Mimcss CSS-in-JS Library...

Other Looks at the Conditional Border Radius Trick


Remember when Ahmad Shadeed wrote about that border-radius “toggle” he found in Facebook’s CSS? It was interesting! I covered it. A few weeks after that surge of linkage, a couple of articles came out digging into it a little deeper. … The post Other Looks at...

Interactive Rebase: Clean up your Commit History


Interactive Rebase is the Swiss Army knife of Git commands: lots of use cases and lots of possibilities! It's really a great addition to any developer's tool chain, because it lets you revise your local commit history—before you share your work with the rest of the team. Let's see what you can...

Semantic menu context


Scott digs into the history of the <menu> element. He traced it as far back as HTML 2 (!) in a 1994 changelog. The vibe then, it seems, was to mark up a list. I would suspect the intention … The post Semantic menu context appeared first on CSS-Tricks. You can support CSS-Tricks...

Easy Dark Mode (and Multiple Color Themes!) in React


I was working on a large React application for a startup, and aside from just wanting some good strategies to keep our styles organized, I wanted to give this whole “dark mode” thing a shot. With the huge ecosystem around … The post Easy Dark Mode (and Multiple Color Themes!) in React...

Quickly Get Alerted to Front-End Errors and Performance Issues


(This is a sponsored post.) Measuring things is great. They say what you only fix what you measure. Raygun is great at measuring websites. Measuring performance, measuring errors and crashes, measuring code problems. You know what’s even better than … The post Quickly Get Alerted...

Don’t Snore on CORS


Whatever, I just needed a title. Everyone’s favorite web security feature has crossed my desk a bunch of times lately and I always feel like that is a sign I should write something because that’s what blogging is. The main … The post Don’t Snore on CORS appeared first...

Quick and Dirty Bootstrap Overrides at Runtime


Oh, Bootstrap, that old standard web library that either you hate or you spend all your time defending as “it’s fine, it’s not that bad.” Regardless of what side you fall on, it’s a powerful UI framework that’s everywhere, … The post Quick and Dirty Bootstrap Overrides at Runtime appeared...

cleanup.pictures


Nice domain, eh? Does just what it says on the tin: cleans up pictures. You draw over areas of the image you want cleaned up, and it does its best using weird science. It’s like Photoshop’s Spot Healing Brush… The post cleanup.pictures appeared first on CSS-Tricks. You...

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