这里是 Frontend Focus 的中文翻译项目,每周在 己思 平台首发。
翻译及校对:richshaw2015,Yully Che
This new experimental feature in Chrome looks really neat. It provides an overview of the CSS on a site, detailing colors, fonts, media queries and unused declarations.
来源:Robin Rendle
Rachel Andrew takes a look at some of the interesting CSS features that are making their way into browsers right now, including Flexbox gap support, the aspect ratio unit, and more.
来源:Smashing Magazine
Covers different options and approaches (design, technical considerations, etc) for implementing dark mode.
来源:Mohamed Adhuham
A visual trip down memory lane covering many of the old web dev techniques and online trends from the early days of the web. Beware, some flashing animations on this page.
来源:Pavel Laptev
A snappy and dynamic talk from Una Kravets highlighting how just a single-line of CSS can do “some serious heavy lifting” and build a robust modern layout. You can see them all in action here.
来源:Google Chrome Developers
Microsoft Edge on Android will soon let you try new Chrome features.
Version 78 of Firefox enables link rel="preload"
support.
The first beta of WordPress 5.5 is now available.
Google’s Rich Results testing tool is now out of beta.
A big British bank were caught (accidentally, we hope) using the Wayback Machine as a ‘CDN’ for some JavaScript assets.
How to create a hover effect for a menu where images appear with an animation on each item.
来源:Mary Lou
The Tailwind team talk about how they set up their blog and some challenges they faced, particularly some complexities around the choice to use MDX for content.
来源:Adam Wathan
border-radius
属性定义水平和垂直圆角A look at how to use CSS border-radius
to create not only basic shapes but complex ones too.
来源:Jehy Tompkins
来源:Alex Russell
来源:Timi Omoyeni
It’s great not only to see people transitioning to the Jamstack (we have a newsletter for that), but also to hear about some of the difficulties they faced in making that transition.
来源:Sahil Parikh
Built on top of d3.js, this lets you bring together patterns and colors in an elegant and, dare we say, old school manner.
来源:Riccardo Scalco
Released to celebrate Independence Day, here’s an all-American stylesheet. Even if you have no need for US-related symbols and patterns, you might pick up something from how they’re implemented.
.usa-stars {
background: linear-gradient(324deg, #3c3b6e 4%, transparent 4%) -0.7in 0.43in,
linear-gradient(36deg, #3c3b6e 4%, transparent 4%) 0.3in 0.43in,
linear-gradient(72deg, #fff 8.5%, transparent 8.5%) 0.3in 0.43in,
linear-gradient(288deg, #fff 8.5%, transparent 8.5%) -0.7in 0.43in,
linear-gradient(216deg, #fff 7.5%, transparent 7.5%) -0.7in 0.23in,
linear-gradient(144deg, #fff 7.5%, transparent 7.5%) 0.3in 0.23in,
linear-gradient(324deg, #3c3b6e 4%, transparent 4%) -0.2in 0.93in,
linear-gradient(36deg, #3c3b6e 4%, transparent 4%) 0.8in 0.93in,
linear-gradient(72deg, #fff 8.5%, transparent 8.5%) 0.8in 0.93in,
linear-gradient(288deg, #fff 8.5%, transparent 8.5%) -0.2in 0.93in,
linear-gradient(216deg, #fff 7.5%, transparent 7.5%) -0.2in 0.73in,
linear-gradient(144deg, #fff 7.5%, transparent 7.5%) 0.8in 0.73in,
#3c3b6e;
background-size: 1in 1in;
}
来源:Bennett Feely
A new tool by Zach Leatherman that can run locally or on Netlify for running continuous performance measurements.
来源:Zach Leatherman
Has a visual timeline to help create, view, and run animations without having to go back and forth between browser and editor.
来源:Mitch Samuels
Works fast. Just enter a URL and all the images will be displayed in a gallery from where you can download all, or choose the ones you want (for personal use only, of course).
来源:Pabueco
Claims to be 2x faster than React and comes in at less than 2KB.
来源:Jorge Bucaran
Currently in private alpha. This tool runs a modern browser headlessly that then draws your website for anyone visiting on an old version of Internet Explorer. We’re linking to this more because it’s an interesting idea.
来源:flaggerdoot
译者注:如需了解,请查看原文。
译者注:如需了解,请查看原文。
Copyright © 2015-2022 BY-NC-ND 4.0