Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Kirk-Nielsen chriskirknielsen

View GitHub Profile
View reset-button.css
.reset-button {
appearance: none; /* Browser prefixes might be necessary */
display: inline-block;
margin: 0;
padding: 0;
color: inherit;
font-family: inherit;
font-size: 1em;
line-height: 1.2;
@chriskirknielsen
chriskirknielsen / colomapa.scss
Last active Mar 26, 2018
SCSS function to return a colour from a list, in hexidecimal or rgba value
View colomapa.scss
$colors: ( // Define a list of colours to use
'main': #00a39b,
'secondary': #cf0079,
'light': #e6e6e6,
'gray': #686868,
'dark': #161616
);
/** SCSS function to return a colour from a list, in hexidecimal or rgba value
* @param name: key used in the $colors list associated with a hexadecimal colour