Skip to content

A simple javascript plugin that provides a visual cues for css breakpoints.

License

Notifications You must be signed in to change notification settings

drewmcc/visual-breakpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Visual CSS Breakpoints

A simple javascript plugin that provides a visual cues for css breakpoints.

Description

I was having trouble keeping track of what breakpoints I was looking at when previewing projects in the browser so I decided to build this little plugin to help developers track what they breakpoints they were viewing. This plugin shows the developer the current screen width, the breakpoint's name/value (set by the developer), and provides visual cues via color to inform the developer.

Demo

See what this is all about -- view the demo.

Use

Things are pretty straightforward here:

Adding this plugin to your project

To add Visual Breakpoints, add the following before the closing body tag of your project:

<script type="text/javascript" src="your/path/to/width-check.js"></script>

Adding your own breakpoints

To add your own breakpoints, simply open width-check.js and edit/add/remove the default breakpoints in the plugin to match what's currently set up in your stylesheets.

When to add breakpoints

"Start with the small screen first, then expand until it looks like shit. TIME FOR A BREAKPOINT!" –Stephen Hay

About

A simple javascript plugin that provides a visual cues for css breakpoints.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published