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 / gist:cb646b7a65fbb338faf2
Created January 13, 2015 18:46
Storefront CSS Mod to set left column for wider tree view
/*Snippet: Storefront CSS
Mod to increase left col width to accommodate tree view */
#mainContent3ColumnContainer {
padding: 0 200px 0 340px;
background-color: rgb(255,255,255);
}
#mainContent3ColumnWrapper {
@shrinkray
shrinkray / LESS-mixin:-randomFromArray.markdown
Created December 6, 2014 02:34
LESS mixin: randomFromArray
@shrinkray
shrinkray / Flexbox.less-Example-HTML.markdown
Created December 6, 2014 02:31
Flexbox.less Example HTML
@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.

@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 / Useful-Gradient-LESS-Mixin.markdown
Created December 6, 2014 02:24
Useful Gradient 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 / Flat-shadow-LESS-mixin.markdown
Created December 6, 2014 02:21
Flat shadow LESS mixin
@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.