Nested Media Queries

We don’t have “regular” nesting in CSS. Maybe this becomes a thing someday, or something like it. That would be cool, although that pre-spec doesn’t mention anything about media queries. I’d hope we get that right out of the gate …

The post Nested Media Queries appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://www.bram.us/2021/01/11/nested-media-queries/

4y | CSS tricks
Recreating Game Elements for the Web: The Among Us Card Swipe

As a web developer, I pay close attention to the design of video games. From the HUD in Overwatch to the catch screen in Pokemon Go to hunting in Oregon Trail, games often have interesting mechanics and satisfying interactions, …

The post Recreating Game Elements for the Web: The Among Us Card Swipe appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/recreating-game-elements-for-the-web-the-among-us-card-swipe/

4y | CSS tricks
SVG within CSS

Stefan Judis has a “Today I Learned” (TIL) post explaining how SVGs filters can be inlined in CSS. The idea is that CSS has the filter property which supports some built-in functions, like grayscale(100%) and stuff like that. But …

The post SVG within CSS appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/svg-within-css/

4y | CSS tricks
(Jay Freestone’s) Front-end predictions for 2021

React framework maturity, early container queries, WASM adoption, and monoliths. I’ll take all four, please. Not feeling like a particularly front-end-y? Jay says:

Interestingly, the biggest developments in the front-end are unlikely to be traditionally front-end concerns. Back in our 

The post (Jay Freestone’s) Front-end predictions for 2021 appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://www.browserlondon.com/bl

4y | CSS tricks
Animating a CSS Gradient Border

This little trick for gradient borders is super useful: .border-gradient { border: 5px solid; border-image-slice: 1; border-image-source: linear-gradient(to left, #743ad5, #d53a9d); } Here’s some basic demos from our article on the subject. Sephanie Eckles was sharing around the idea …

The post Animating a CSS Gradient Border appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://www.bram.us/2021/01/29/animating-a-css-gradient-border/

4y | CSS tricks
Exploring the Complexities of Width and Height in CSS

The following article is co-authored by Uri Shaked and Michal Porag. Let’s explore the complexities of how CSS computes the width and height dimensions of elements. This is based on countless late-night hours debugging and fiddling with lots of …

The post Exploring the Complexities of Width and Height in CSS appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/exploring-the-complexities-of-width-and-height-in-css/

4y | CSS tricks
Weekly Platform News: The :not() pseudo-class, Video Media Queries, clip-path: path() Support

Hey, we’re back with weekly updates about the browser landscape from Šime Vidas. In this week’s update, the CSS :not pseudo class can accept complex selectors, how to disable smooth scrolling when using “Find on page…” in Chrome, Safari’s …

The post Weekly Platform News: The :not() pseudo-class, Video Media Queries, clip-path: path() Support appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/weekl

4y | CSS tricks
Some React Blog Posts I’ve Bookmarked and Read Lately

The React Hooks Announcement In Retrospect: 2 Years Later — Ryan Carniato considers hooks to be the most significant turning point in front end in the past five years, but he also says hooks have muddied the waters as well. … The post Some React Blog Posts I’ve Bookmarked and Read Lately appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter. https://css-tricks.com/some-react-blog-posts-ive-bookmarked-and-read-lately/

4y | CSS tricks
Some Typography Blog Posts I’ve Bookmarked and Read Lately

Font-size: An Unexpectedly Complex CSS Property — From Manish Goregaokar in 2017. Of many oddities, I found the one where font: medium monospace renders at 13px where font: medium sans-serif renders at 16px particularly weird. The good line-height — Since … The post Some Typography Blog Posts I’ve Bookmarked and Read Lately appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter. https://css-tricks.com/some-typography-blog-posts-ive-bookmarked-and-read

4y | CSS tricks
Algolia

Algolia is for search. Literally any website can take advantage of Algolia-powered search. You put JSON data (“records”) in, and then you can search them at lightning speed. The magic of Algolia is that they help you with both of …

The post Algolia appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/algolia/

4y | CSS tricks

Ricerca