Skip to content

Instantly share code, notes, and snippets.

@davilious
Created March 19, 2015 18:45
Show Gist options
  • Select an option

  • Save davilious/94e1fe0fee67f628d718 to your computer and use it in GitHub Desktop.

Select an option

Save davilious/94e1fe0fee67f628d718 to your computer and use it in GitHub Desktop.
Map in Sass
$input-disabled-color: #000000;
$input: (
disabled-background: lighten($input-disabled-color, 75%),
disabled-border: lighten($input-disabled-color, 50%),
disabled-text: lighten($input-disabled-color, 50%)
);
input[disabled] {
background: map-get($input, disabled-background);
border: map-get($input, disabled-border);
color: map-get($input, disabled-text);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment