Giter Club home page Giter Club logo

x-debug-css's Introduction

X Debug CSS

This is a CSS debugger tool for visual abstraction of DOM elements of the current HTML page.

We have been using this tool for every web project, and find it very useful for frontend development.

JS Version is all included with necesarry CSS styles and code.

Keyboard Controls:

Shift + D : Enables blueprint debugger

Shift + X : Enables outlined debugger

Twitter login section sample :

Three ways to use:

  1. Include JS :

Add x-debug-css.js to your project scripts (Recommended)

<script src="./x-debug-css.js" type="text/javascript" language="javascript"></script>

Use it for project development with ease

  1. Include CSS

Add x-debug-css.css to your project styles

  <link href="./x-debug-css.css" rel="stylesheet" />

Needs to add and remobe .x-debug-css class to your body style manually.

  1. Use bookmarklet
Use as bookmarklet on your Chrome toolbar. Click and inspect any website!

- Save bookmark.html to your computer and open.
- Bookmark this local page ( file may be  delete later )
- Copy link address on text [javascript:var style=document.createElement('style');style.innerHTML=` .debug-css :not(g):not(path){color: hsla(210, 80%, 100%, 0.9) !important; background: hsla(210, 80%, 50%, 0.5) !important; outline: solid 0.125rem hsla(210, 80%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important;}.debug-css-outlined :not(g):not(path){outline: 1px solid red !important;; box-shadow: none !important; filter: none !important;}`;document.head.appendChild(style);document.documentElement.classList.toggle('debug-css');](x-debugCSS)  right mouse click
- Edit your bookmark in Chrome and change URL with copied link URL 
- Save and close.

Your x-debugCSS bookmarklet is ready ๐Ÿ––๐Ÿผ

Click [bookmark] for any page you want to X Debug CSS layout.

Project is derived and utilized from @zaydek's debug-css library.

x-debug-css's People

Stargazers

Mehmet ARICI avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.