Skip to content

Instantly share code, notes, and snippets.

View agent-simon-s's full-sized avatar

Simon Sutherland agent-simon-s

View GitHub Profile
@agent-simon-s
agent-simon-s / SCSS-responsive-breaks.scss
Created November 7, 2017 00:42
SCSS: responsive break points
// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }
// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }
// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }
@agent-simon-s
agent-simon-s / Preferences.sublime-settings
Last active November 7, 2017 02:33
Sublime: Preferences Gist
{
"afn_insert_width_first": true,
"afn_use_project_root": false,
"auto_complete_triggers":
[
{
"characters": "b4",
"selector": "text.html"
}
],
@agent-simon-s
agent-simon-s / Sh-open-in-sublime-service.sh
Created November 7, 2017 03:36
Shell: Open in Sublime service for MacOS Folders
/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl -n $@open
@agent-simon-s
agent-simon-s / html-button-ic-cap.sublime-snippit
Created November 8, 2017 05:08
SJDS: HTML base btn icon w caption
<snippet>
<content><![CDATA[
<button class="btn {2:this}" type="button">
<span class="{3:icon} {4:this}"></span>
<span class="caption">{1:SUBMIT}</span>
</button>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ssbtn</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@agent-simon-s
agent-simon-s / scss-comment-header.sublime-snippet
Created November 10, 2017 22:33
scss: comment header sublime snippet
<snippet>
<content><![CDATA[
/* ======== ${1:New Section} ============== */
]]></content>
<tabTrigger>/*=</tabTrigger>
<scope>source.css, source.scss, source.sass</scope>
</snippet>
@agent-simon-s
agent-simon-s / scss-comment-sub-header.sublime-snippet
Created November 10, 2017 22:34
SCSS: comment SUBheader - sublime snippet
<snippet>
<content><![CDATA[
/* -------------- ${1:New Section} ----------------*/
${2:/*-------------------------------------------*/}
]]></content>
<tabTrigger>/*-</tabTrigger>
<scope>source.css, source.scss, source.sass</scope>
</snippet>
@agent-simon-s
agent-simon-s / scss-mixins-template-w-usage.sublime-snippet
Created November 10, 2017 23:01
SCSS: singe mixin template w useage & output notes - sublime snippet
<snippet>
<content><![CDATA[
/* --------- ${1:this} Mixin -------------*/
/*-------------------------------------------*/
//Usage:
// ${4}
//Output:
// ${5}
@agent-simon-s
agent-simon-s / scss-mixins-boiler.scss
Last active November 12, 2017 07:07
SCSS: mixin boilerplate
/* =========== Mixins ============== */
/*
sjds 2017-11-10 Compiled from experiance &
Borrowing heavily from those before
*/
/*
need to add clamp
responsive ratio
@agent-simon-s
agent-simon-s / scss-vars-boiler.scss
Last active November 12, 2017 07:08
SCSS vars boiler
/* ======== SCSS PROJECT VARIABLES ============== */
/* -------------- Typography ----------------*/
/*-------------------------------------------*/
$font-stack-base: "Railway", Helvetica, Arial, "sans-serif"; //railway reg & bold
$font-name-base: "Railway";
//$font-stack-header:; DIN condenced bold
//$font-name-header:; alte din
@agent-simon-s
agent-simon-s / scss-archetype-nav-flex-boiler.scss
Created November 23, 2017 23:41
SCSS archetype nav flex boilerplate
%style-navbar{
margin: auto;
max-width: 880px; //$dim-content-wt
height: auto;
padding:0;
background-color: orange; //$color-bg-nav-default
}
%style-navbar-menu-l{
margin: 0;