yammik / sandbocss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SandboCSS

('sandbox' hahahhahaha get it)

A CSS cheatsheet and sandbox in one app. A cheatbox, if you will...wait no, sandsheet? Seatshox?
Most available CSS properties you can apply to an HTML element are displayed on the left panel, organized alphabetically.
CSS is a pain sometimes. Maybe by playing around with this sandbox you will get a better understanding of what certain properties do. :>

Usage

This app lives here.
Or clone this repo and run npm install && npm start in your Terminal.
Classic mode is the most fun to play with as of this writing.
Simply input a class name, and click the ➕ button to create a div with the given class name. A red outline indicates the div is selected. While a div is selected, creating a new div will nest the new one inside the currently selected one.
Click a CSS property and enter or select a value to apply the style to the currently selected div!

Powered by

Future works

  • hover over a property to display explanation or link?
  • Change data format: add a key called 'unit' for each attribute, so it won't have to check for edge cases like opacity to add/remove a unit

About


Languages

Language:JavaScript 88.9%Language:CSS 8.0%Language:HTML 3.1%