Skip to content

Instantly share code, notes, and snippets.

@starryeyez024
Last active September 2, 2016 20:07
Show Gist options
  • Select an option

  • Save starryeyez024/7fba9641a5ced3cf5c93e3a366729326 to your computer and use it in GitHub Desktop.

Select an option

Save starryeyez024/7fba9641a5ced3cf5c93e3a366729326 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<p>
<a href="#" class="cta-primary">Learn more</a>
</p>
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// Color Schemer (v0.2.8)
// ----
@import "color-schemer";
// Sass color functions use HSL https://robots.thoughtbot.com/controlling-color-with-sass-color-functions
$brand-primary: #C00;
// note the darken function in the hover state
p {
font-family: "Overpass",Overpass,Helvetica,helvetica,arial,sans-serif;
font-size: 16px;
}
.cta-primary {
background-color: $brand-primary;
color: #fff;
display: inline-block;
border: 0;
font-size: 1.6rem;
padding: 9px 40px;
line-height: 1.2;
padding: .9rem 4rem;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
&:hover {
background-color: darken($brand-primary, 6%);
}
}
p {
font-family: "Overpass",Overpass,Helvetica,helvetica,arial,sans-serif;
font-size: 16px;
}
.cta-primary {
background-color: #C00;
color: #fff;
display: inline-block;
border: 0;
font-size: 1.6rem;
padding: 9px 40px;
line-height: 1.2;
padding: .9rem 4rem;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
}
.cta-primary:hover {
background-color: #ad0000;
}
<p>
<a href="#" class="cta-primary">Learn more</a>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment