Skip to content

Instantly share code, notes, and snippets.

View terkel's full-sized avatar

Takeru Suzuki terkel

View GitHub Profile
/* <span class="double-dash">&#x2015;</span> */
.double-dash {
display: inline-block;
font-family: sans-serif;
line-height: 0;
margin-left: 0.5em;
margin-right: 0.5em;
text-align: center;
transform: scaleX(2);
}
// Grayscale
$color-black: hsl(0, 0%, 0%); // #000000
$color-white: hsl(0, 0%, 100%); // #FFFFFF
$color-gray-50: hsl(0, 0%, 98%); // #FAFAFA, rgb(250, 250, 250)
$color-gray-100: hsl(0, 0%, 96%); // #F5F5F5, rgb(245, 245, 245)
$color-gray-200: hsl(0, 0%, 93%); // #EEEEEE, rgb(238, 238, 238)
$color-gray-300: hsl(0, 0%, 88%); // #E0E0E0, rgb(224, 224, 224)
$color-gray-400: hsl(0, 0%, 74%); // #BDBDBD, rgb(189, 189, 189)
$color-gray-500: hsl(0, 0%, 62%); // #9E9E9E, rgb(158, 158, 158)
@function placeholder-image ($width, $height: $width) {
$size: $width + "/" + $height;
$src: "https://unsplash.it/" + $size + "/?random=" + random();
@return url($src);
}
@function random-image ($width: 400, $height: null) {
$height: if($height, $height, $width);
$size: $width + "/" + $height;
$src: "https://unsplash.it/" + $size + "/?random=" + random();
@return url($src);
}
body {
margin: 11.111vh 22.222vw 22.222vh 11.111vw;
}
// Musical intervals
$octave: 2; // 2:1
$major-seventh: 1.875; // 15:8
$minor-seventh: 1.778; // 16:9
$major-sixth: 1.667; // 5:3
$minor-sixth: 1.6; // 8:5
$perfect-fifth: 1.5; // 3:2
$diminished-fifth: 1.414; // √2:1
$augumented-fourth: 1.414; // √2:1
$perfect-fourth: 1.333; // 4:3
<div data-href="http://YOUR-URL-GOES-HERE" data-layout="button_count" class="fb-share-button"></div>
<script src="//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v2.0" id="facebook-jssdk" async></script>
<a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
<script src="//platform.twitter.com/widgets.js" id="twitter-wjs" async></script>
<div data-size="medium" class="g-plusone"></div>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<a href="http://b.hatena.ne.jp/entry/" data-hatena-bookmark-layout="standard-balloon" data-hatena-bookmark-lang="en" class="hatena-bookmark-button"></a>
@terkel
terkel / SassMeister-input.scss
Created July 16, 2014 12:09
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
.outer {
color: red;
.inner {
color: green;
/**
* Show/hide icon labels using media queries.
*
* @param {Object} images NodeList of icon images
* @param {String} mqString Media query string
* @param {Boolean} [fallback] Show label text for no-media-queries browsers
* @example
* var navIcons = document.querySelectorAll('nav img');
* responsiveIconLabel(navIcons, '(min-width: 801px)', true);
*/
@mixin subclass ($superclass) {
.#{ $superclass },
[class^="#{ $superclass }-"],
[class*=" #{ $superclass }-"] {
@content;
}
}