Skip to content

Instantly share code, notes, and snippets.

View RyanRoberts's full-sized avatar
💭
I may be slow to respond.

Ryan RyanRoberts

💭
I may be slow to respond.
View GitHub Profile
.initial
.top-banner-ad-container
.top-banner-ad-container--desktop
.top-banner-ad-container--facia-layout
.ad-slot
@RyanRoberts
RyanRoberts / SassMeister-input-HTML.html
Created October 24, 2014 11:45
Generated by SassMeister.com.
<div class="box">
</div>
@RyanRoberts
RyanRoberts / SassMeister-input-HTML.html
Created October 24, 2014 11:45
Generated by SassMeister.com.
<div class="box">
</div>
@RyanRoberts
RyanRoberts / SassMeister-input-HTML.html
Created November 4, 2014 10:13
Generated by SassMeister.com.
<h1>A lone button</h1>
<p>Etiam porta sen malesuada magna mollis euismod. <a href="#">Donec ullamcorper nulla non meths actor fringilla.</a> Cras justo odapibus ac facilisis in egestas get quam.</p>
<p><a class="btn" href="#">Button</a></p>
<h1>A button within scoped content</h1>
<div class="scopedContent">
<p>Etiam porta sen malesuada magna mollis euismod. <a href="#">Donec ullamcorper nulla non meths actor fringilla.</a> Cras justo odapibus ac facilisis in egestas get quam.</p>
<p><a class="btn" href="#">Button</a></p>
</div>
@RyanRoberts
RyanRoberts / SassMeister-input-HTML.html
Created January 27, 2015 12:39
Generated by SassMeister.com.
<hr class="rule">
@RyanRoberts
RyanRoberts / SassMeister-input.scss
Created February 17, 2015 13:49
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
// I must say I am not a big fan of having global variables here and there.
// There is a number of issues and drawbacks of handling basic configuration
// with global variables without having functional wrappers:
// - `!global` has to be written yet could be forgotten;
// - there is no way to make sure the value is valid;
@RyanRoberts
RyanRoberts / SassMeister-input.scss
Created February 19, 2015 11:46
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$spacing-unit: 24px;
$spacing-unit-tiny: round(0.25 * $spacing-unit);
$spacing-unit-small: round(0.5 * $spacing-unit);
$spacing-unit-large: round(2 * $spacing-unit);
@RyanRoberts
RyanRoberts / Precision responsive typography.markdown
Created March 28, 2016 09:26
Precision responsive typography

Precision responsive typography

I've not seen this before so I think I've figured out something new and hopefully useful.

It appears that by using calc() and vw we can get responsive typography that scales perfectly between specific pixel values within a specific viewport range.

Check it out. (might be buggy in some browsers)

http://madebymike.com.au/writing/precise-control-responsive-typography/

@RyanRoberts
RyanRoberts / 0_reuse_code.js
Created May 11, 2016 08:36
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

SHORTCUTS

Key/Command Description
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + L Clears the Screen
Ctrl + C Kill whatever you are running