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 / css-tricks-cheat.css
Last active November 6, 2017 02:50
css-tricks-cheat
.foo {
box-sizing: border-box; //box model padding removed from size, not added to
word-wrap: break-word; //limited control of warping text
white-space: nowrap; // limited toggle of text wrapping
text-overflow: ellipsis; //ltd ctrl truncating text line only needs over-x: d:b or d:ib
transform: scale(0.9, 0.9); //scaling
object-fit: fill; // also cover, contain, // bg like controls for images
background: linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0));
height:100vh;
decoration-color:red; decoration-style:dotted; //fine tune underline
@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 / 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 / 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 / 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 / BtxOABTask2Do.todo
Last active August 15, 2018 02:59
Btx OAB Task 2Do
OAB Tasks
Infrastructure:
Clean out old files
New File Structute sections, pages, includes, proj
update controllers & routconfig
Basic respinsive Mark-up
Base SCSS structure
Url ManipulaTION SCRIPT
Images:
@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