Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS debug utility #187

Open
mhulse opened this issue Aug 8, 2018 · 0 comments
Open

CSS debug utility #187

mhulse opened this issue Aug 8, 2018 · 0 comments

Comments

@mhulse
Copy link
Owner

mhulse commented Aug 8, 2018

Here’s a few pretty simple techniques:

Give it borders

.thing {
    border: 1px solid red;
}

Now you can see what thing is doing … Keep in mind, border can affect box model.

Outline everything

/* Click anywhere to outlines (change `*` to a specific element for more control): */
body:active * {
    box-shadow: inset 0 0 0 5px rgba(255, 0, 0, 0.5);
}

The box-shadow can also be applied to a specific rule set.

Use x to turn off properties

Disable property by making it invalid:

.foo {
    color: red;
    border: 1px solid blue;
    xdisplay: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant