Skip to content

Instantly share code, notes, and snippets.

View dgrahn's full-sized avatar

Dan Grahn dgrahn

View GitHub Profile
@dgrahn
dgrahn / step.overrides.import.less
Last active May 23, 2017 01:15
Add '.unstackable' option to steps. (Also includes '.padless' option in case you need to shrink the steps on a mobile device)
.ui.unstackable.steps {
flex-direction: row;
}
.ui.unstackable.steps .step {
width: auto !important;
}
@media only screen and (max-width: (@largestMobileScreen)) {
.ui.unstackable.padless.steps .step {
@dgrahn
dgrahn / core_ext.rb
Last active December 28, 2015 10:49
My favorite Ruby Core Extensions.
class Object
# Check to see if a the object exists within an array. This is a reflexion of
# {Array#include?} to make conditionals more readable.
#
# @param array [Array(Object)] The array to check
#
# @example
# 'Draper'.in? ['Sterling', 'Cooper', 'Draper', 'Pryce']
# # => true
#