Skip to content

Instantly share code, notes, and snippets.

View chrisfromredfin's full-sized avatar

Chris Wells chrisfromredfin

View GitHub Profile
/// @group colors
/// @colors demo-colors
$demo-colors: (
'alto': #d8d8d8,
'scorpion': #5b5b5b,
'tree-poppy': #f36c38,
'white': white,
'wild-sand': #f5f5f5,
'grey-light': #d5dbe4,
);
/// @font sans-stack (300, 300 italic, regular, 600)
/// <link href=”https://fonts.googleapis.com/css?family=Work+Sans:300,400,600" rel="stylesheet">
$sans-stack: (
'name': 'Work Sans',
'source': 'https://fonts.google.com/specimen/Work+Sans',
'stack': ("Helvetica Neue", "Lucida Grande"),
);
theme: herman
herman:
sass:
includepaths:
- 'sass'
includes:
- 'util/mixins'
theme: herman
herman:
sass:
includepaths:
- 'sass'
/// @example scss -
/// @import “style.scss”
/// .embed-container {
/// @include embed-container(400px, 300px);
/// }
/// Mixins: custom re-useable but configurable tools we use.
/// @group Mixins
/// Helper mixin to drop on the wrapper for an iframe
/// that you would like to be responsive.
///
/// @group Mixins
/// @author Smashing Magazine
///
/// @param {Length} $width - Element's width
@mixin embed-container($width, $height) {
$ratio: ($height / $width) * 100%;
position: relative;
padding-bottom: $ratio;
height: 0;
overflow: hidden;
max-width: 100%;
iframe, object, embed {
/// Components: small, re-useable components used on the site.
/// @group components
/// @name Button
/// @group Components
/// @example markup
/// <a href="#" class="button">Click me</a>
%button {
border-radius: 5px;
background-color: green;
diff --git a/css/color_field_widget_box.css b/css/color_field_widget_box.css
index d224c0d..1ef10c2 100644
--- a/css/color_field_widget_box.css
+++ b/css/color_field_widget_box.css
@@ -8,6 +8,7 @@
font-size: 1.2em;
margin: 0 3px;
padding: 1px 8px;
+ box-shadow: 0 0 1px #000;
}
@chrisfromredfin
chrisfromredfin / gist:1bf115f4ec6d4b69e67654a091052dfa
Created March 20, 2017 14:50
AppleScript - Safari close tabs to the right
tell window 1 of application "Safari"
close (tabs where index > (get index of current tab))
end