Home > Web Front-end > CSS Tutorial > Recommend a useful Chrome DevTools plug-in: CSS Overview Panel

Recommend a useful Chrome DevTools plug-in: CSS Overview Panel

青灯夜游
Release: 2021-02-03 16:29:08
forward
2586 people have browsed it

This article recommends a practical Chrome DevTools plug-in: CSS Overview Panel (CSS Overview Panel), use it to reconstruct and improve style sheets. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

Recommend a useful Chrome DevTools plug-in: CSS Overview Panel

The CSS Overview Panel provides interesting information about your CSS. You can view high-level CSS metrics, which are especially useful when refactoring. How to use this feature

Enable this feature:

    From the "DevTools Experiments (
  • Experiments pane

    )" pane Enable CSS Overview (Cmd Shift P>Show Experiments)

  • Select "
  • Show CSS Overview" from "DevTools"

    Command Menu " (Cmd Shift P)

  • In the CSS Overview panel, you can navigate to different sections:

    Overview Summary ( Overview Summary)
  • - Interesting metrics on CSS such as number of elements, style sheets, class vs ID selectors, complex selectors and more.
  • Colors
  • -Visual preview background color, text color, fill color and border color. The colors themselves are clickable, so you can see exactly which elements use those colors.
  • Font information (Font info)
  • - Measures the usage of fonts and how often they appear in style sheets. Includes font weight and line height metrics. Font indicators can be selected to display affected elements.
  • Unused declarations
  • - Unused CSS declarations can be clicked as usual.
  • Media queries

    - Details of CSS media queries (such as min/max width values) and how often they appear in the style sheet. You can click on these to jump directly to the source panel. If you enable source mapping, you will be able to see original styles such as Sass.

Recommend a useful Chrome DevTools plug-in: CSS Overview PanelWhen to use this feature

When

Refactor

your code, or standardize the layout of each page Use this feature when styling your brand. For example, if you notice slight variations of a "color" scattered throughout your CSS, the Colors pane in the Overview panel is a good place to identify such things. You can also use the Media Queries panel in the CSS Overview panel to check that you are targeting the expected set of media query breakpoints and make sure your page looks good on a variety of screen sizes.

Unused declarations

The panel may help improve network and rendering

performance

by telling you what CSS you can remove. Finally, you can use the CSS Overview panel to communicate the status of your CSS code to other members of your front-end team, especially new hires, including areas that may need focus. The CSS Overview panel provides valuable metrics about CSS, while the Lighthouse panel provides metrics for the entire site, including JavaScript.

For more knowledge about computer programming, please visit:

Introduction to Programming

! !

The above is the detailed content of Recommend a useful Chrome DevTools plug-in: CSS Overview Panel. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template