Skip to content

Instantly share code, notes, and snippets.

@cutme
cutme / Interactive Form.markdown
Created April 21, 2016 18:14
Interactive Form

Interactive Form

Interactive input form built with just CSS. Abusing focus state & labels to handle transitions & navigation.

Navigate between inputs using Tab (Next) & Shift + Tab (Prev).

Pure CSS. No JS included.

A Pen by Emmanuel Pilande on CodePen.

@cutme
cutme / Flappy Dialog.markdown
Created April 21, 2016 18:17
Flappy Dialog
@cutme
cutme / CSS Gooey Menu (Version 2).markdown
Created April 21, 2016 18:19
CSS Gooey Menu (Version 2)
@cutme
cutme / CSS Calc - boxes always a %age of their container.markdown
Created June 27, 2016 01:02
CSS Calc - boxes always a %age of their container

CSS Calc - boxes always a %age of their container

A simple demo to demonstrate a responsive container containing boxes of equal widths within.

A Pen by Vincent Pickering on CodePen.

License.

@cutme
cutme / css
Last active October 7, 2017 13:40
[Calc() - Quick and Dirty Grid System] Quick and dirty grid system using calc #css #grid
/*Setup Environment */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:16px; margin:0; padding:0; }
.block { float:left; display:inline-block; background-color:#999999; color:#000000; font-size:0.8em; text-align:center; line-height:4em; border:1px solid white; }
/*
Calc Demo Quick and Dirty Fluid Grid system
--
If we need a quick grid system to test, apply to a legacy or internal system in a hurry, calc makes it so simple.
@cutme
cutme / glightbox.js
Last active January 11, 2021 15:42
[Glightbox] Open image in lightbox #glightbox #lightbox #javascript
/*
* Open image in gLightbox (https://github.com/mcstudios/glightbox)
*
* Usage:
* <a hre="picture.jpg" class="js-image">Open picture</a>
*/
import GLightbox from 'glightbox';
require('../../node_modules/glightbox/dist/css/glightbox.css');