Skip to content

Instantly share code, notes, and snippets.

@pixelchar
pixelchar / example.css
Created November 17, 2017 15:38
Using CSS Grid for two-column <dl>s
dl {
display: grid;
grid-template: auto / 10em 1fr;
}
dt {
background: #fee;
}
dd {
@pixelchar
pixelchar / index.html
Created June 20, 2017 13:25
SGK Quick Nav
<div class="wrapper">
<ul id="skg-side-nav">
<li class="active"><a href="">Get Involved</a></li>
<li><a href="">Register</a></li>
<li><a href="">Donate</a></li>
<li><a href="">Sponsor</a></li>
<li><a href="">Volunteer</a></li>
</ul>
</div>
@pixelchar
pixelchar / styles.css
Created July 11, 2016 15:40
Large offset text shadow as fuzzy highlight
.fuzzy-highlight {
text-shadow: #ff0 0 0 50px;
}
@pixelchar
pixelchar / terminal
Created February 5, 2016 13:13
Terminal command to default to the expanded save mode in OS X
defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE
@pixelchar
pixelchar / terminal
Created February 5, 2016 13:12
Terminal command to make TweetBot open t.co URLs directly in Safari
defaults write com.tapbots.TweetbotMac OpenURLsDirectly YES
@pixelchar
pixelchar / terminal.txt
Last active February 5, 2016 13:11
Terminal command to stop OS X from automatically opening Photos.app
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
@function color-interpolate($c1, $c2, $percent) {
@return $c1 * $percent + $c2 * (1 - $percent);
}
<img src="example.svg" alt="example">
@pixelchar
pixelchar / alternate-solution.css
Last active October 1, 2015 19:06
Auto hide the persistent scrollbar in Edge, IE 10/11
html {
-ms-overflow-style: scrollbar !important;
}
@pixelchar
pixelchar / .gitignore
Last active September 30, 2015 13:35 — forked from octocat/.gitignore
My common .gitignore config
# Jekyll generated files #
##########################
_site
.sass-cache
# Sublime settings #
####################
.sublime-project
.sublime-workspace