Skip to content

Instantly share code, notes, and snippets.

View grahamlicence's full-sized avatar

Graham Licence grahamlicence

  • 101 Ways
  • London
View GitHub Profile
iframe {
max-width: 100%;
}
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
/***
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
@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;
@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;
}