Skip to content

Instantly share code, notes, and snippets.

@leidottw
Created February 16, 2014 08:01
Show Gist options
  • Select an option

  • Save leidottw/9030928 to your computer and use it in GitHub Desktop.

Select an option

Save leidottw/9030928 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div>
變亮變暗
</div>
// ----
// Sass (v3.3.0.rc.4)
// Compass (v1.0.0.alpha.18)
// ----
$color: #ca76ba;
div {
background: $color;
&:hover {
background: $color * 1.5;
}
&:active {
background: $color / 1.5;
}
}
div {
background: #ca76ba;
}
div:hover {
background: #ffb1ff;
}
div:active {
background: #864e7c;
}
<div>
變亮變暗
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment