Skip to content

Instantly share code, notes, and snippets.

View grahamlicence's full-sized avatar

Graham Licence grahamlicence

  • 101 Ways
  • London
View GitHub Profile
@grahamlicence
grahamlicence / steps.md
Created April 3, 2014 11:22
Steps indicator styles
.steps {
    margin-bottom: 0.5em;
    margin-top: 1em;
    border-top: solid 1px $drkyellow;
    text-align: center;
    ul {
        list-style: none;
        padding: 0.5em;
        margin: -1.5em 0 0;
@grahamlicence
grahamlicence / index.html
Last active August 29, 2015 14:03
GitHub banner CSS SVG
<p class="footnote">Experiment by Graham licence. <a href="https://gist.github.com/grahamlicence/a4a5b2d21e4dfa2a9792" class="github">Fork me on GitHub</a></p>
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-moz-@{display}";
{
/*
based on google style guide preset:
https://raw.githubusercontent.com/jscs-dev/node-jscs/master/presets/google.json
modifications for mini digital:
- "validateIndentation" set to 4, rather than the google default of 2
- "maximumLineLength" removed, rather than the google default of 80
- "disallowSpacesInAnonymousFunctionExpression.beforeOpeningCurlyBrace" replaced with "requireSpacesInAnonymousFunctionExpression.beforeOpeningCurlyBrace"
- because this isn't explicitly specified in the google style guide,
{
"bitwise": false,
"browser": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es3": true,
"esnext": true,
"expr": true,
"forin": true,
Sublime Text Packages
A few recommended packages:
“DocBlockr"
Allows you to easily write comments in the format:
/**
*
*/
“EditorConfig"
@grahamlicence
grahamlicence / setup.md
Last active November 6, 2015 14:12
Machine setup

##Mac show hidden files

defaults write com.apple.finder AppleShowAllFiles YES

change git text editor

git config --global core.editor "nano"
@grahamlicence
grahamlicence / placeholder.css
Created March 25, 2013 12:08
Style placeholder text differently from input text
/*
article: http://blog.grahamlicence.co.uk/post/Styling-input-placeholder-CSS-to-differ-from-input.aspx
Note, when adding these styles they must be implemented seperately as the following not work in either browsers
*/
/* Chrome */
input::-webkit-input-placeholder {
font-style: italic;
}
@grahamlicence
grahamlicence / _retina.scss
Last active December 22, 2015 15:58
Retina Sass
/* mixin for retina background images */
@mixin background-image-retina($file, $type, $width, $height) {
width: $width+px;
height: $height+px;
background-image: image-url($file + '.' + $type);
background-repeat: no-repeat;
background-position: 0% 50%;
text-indent: -9999px;
overflow: hidden;
text-align: left;
/***
BASE STYLESHEET
The purpose of this style sheet is to provide a complete reset of styles and provide a few basic classes.
This stylesheet should be included on all pages (even if they drift from a standard template) and, as such,
does not contain any styles for the branding or layout. Branding and layout styles can be found in Generic.css.
@Authors