{"id":253132,"date":"2017-03-28T05:54:27","date_gmt":"2017-03-28T12:54:27","guid":{"rendered":"http:\/\/css-tricks.com\/?p=253132"},"modified":"2017-03-28T05:54:27","modified_gmt":"2017-03-28T12:54:27","slug":"using-devtools-tweak-designs-browser","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/using-devtools-tweak-designs-browser\/","title":{"rendered":"Using DevTools to Tweak Designs in the Browser"},"content":{"rendered":"

Let’s look at some ways we can use the browsers DevTools to do design work. There are a few somewhat hidden tricks you mind find handy!<\/p>\n

<\/p>\n

Toggling Classes With Checkboxes<\/h3>\n

This is useful when trying to pick a design from different options or to toggle the active state of an element without adding the class manually in DevTools. <\/p>\n

To achieve this, we could use different classes and scope styles inside them. So if we want to see different options for a banner design, we could so something like: <\/p>\n

.banner-1 {\r\n  \/* Style variation *\/\r\n}\r\n\r\n.banner-2 {\r\n  \/* Style variation *\/\r\n}<\/code><\/pre>\n

Google Chrome gives us the ability to add all of these classes and toggle (show\/hide) them with a checkbox to make a quick comparison between them.<\/p>\n