Skip to content

Instantly share code, notes, and snippets.

View shrinkray's full-sized avatar
:octocat:
Focusing

Greg Miller shrinkray

:octocat:
Focusing
View GitHub Profile
@shrinkray
shrinkray / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@shrinkray
shrinkray / number of tickets requested.html
Created October 23, 2014 15:30
Gravity Forms HTML Number Field Using HTML5
<label class='gfield_label' for='num-field'>Number of Tickets Requested<span class='gfield_required'>*</span></label>
<div class='ginput_container'>
<input type="number" min="1" max="64" step="1" value="0" name="tickets-requested" value='' class='small' tabindex='1' id='num-field' >
</div>
@shrinkray
shrinkray / CSS3+LESS-Carbon-Fiber-Background.markdown
Created December 6, 2014 02:17
CSS3+LESS Carbon Fiber Background
@shrinkray
shrinkray / LESS-Mixin-For-3D-Text.markdown
Created December 6, 2014 02:19
LESS Mixin For 3D Text
@shrinkray
shrinkray / LESS-Mixins-CSS-arrow.markdown
Created December 6, 2014 02:20
LESS Mixins CSS arrow

LESS Mixins CSS arrow

Still many things to do and edge cases to fix. So feel free to make suggestions here or on the GitHub repo: https://github.com/HugoGiraudel/LESS-Mixin-for-CSS-arrows. :)

USAGE:
.arrow(size, color, direction, offset, border-size, border-color);

  • size: you can set pretty much whatever you want. Further tests required for em unit.

  • color: sadly, no way to inherit. Use the same color as the background of your element.

@shrinkray
shrinkray / Flat-shadow-LESS-mixin.markdown
Created December 6, 2014 02:21
Flat shadow LESS mixin
@shrinkray
shrinkray / CSS3+LESS-Simple-Mesh-Background.markdown
Created December 6, 2014 02:22
CSS3+LESS Simple Mesh Background

CSS3+LESS Simple Mesh Background

You can change the color of LESS Mixin

.LESS_mesh_st2 (color1, color1b, color2, color2b, size)

A Pen by Trumphouse on CodePen.

License.

@shrinkray
shrinkray / Useful-Gradient-LESS-Mixin.markdown
Created December 6, 2014 02:24
Useful Gradient LESS Mixin
@shrinkray
shrinkray / Captioned-Images.markdown
Created December 6, 2014 02:26
Captioned Images

Captioned Images

Images with layered caption states. These widgets live on The Daily Beast homepage. The components are built using Less mixins. The width of each widget can vary based on configuration through a CMS, using a set of manageable classes.

A Pen by Natalie Olivo on CodePen.

License.

@shrinkray
shrinkray / LESS-REM-PX-Mixin.markdown
Created December 6, 2014 02:30
LESS REM/PX Mixin

LESS REM/PX Mixin

This is a simple LESS mixin where you can declare the REM value you want throughout your LESS docs and the mixin will properly convert given number into the REM value and PX fallback for IE browsers which don't support REM.

A Pen by Joshua Hynes on CodePen.

License.