Skip to content

Instantly share code, notes, and snippets.

@robertlyall
Created April 9, 2014 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertlyall/10284256 to your computer and use it in GitHub Desktop.
Save robertlyall/10284256 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.btn-group
%a.btn{:href => '#'} Refresh
%a.btn{:href => '#'} Follow
%a.btn{:href => '#'} Back to list
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
.btn-group
border-radius: 4px
.btn
border-radius: 0
&:first-child,
&:last-child
border-radius: 4px
&:first-child
border-bottom-right-radius: 0
border-top-right-radius: 0
&:last-child
border-bottom-left-radius: 0
border-top-left-radius: 0
.btn
background: #FDFEFE
background-image: linear-gradient(to top, #F2F9FA 0%, #FDFEFE 100%)
border: 1px solid #c6d5d9
border-radius: 4px
color: #7b989e
display: inline-block
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
font-size: 12px
margin-right: -5px
padding: 8px 10px
text-decoration: none
&:hover
background-image: linear-gradient(to top, #FDFEFE 0%, #F2F9FA 100%)
.btn-group {
border-radius: 4px;
}
.btn-group .btn {
border-radius: 0;
}
.btn-group .btn:first-child, .btn-group .btn:last-child {
border-radius: 4px;
}
.btn-group .btn:first-child {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.btn-group .btn:last-child {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.btn {
background: #fdfefe;
background-image: linear-gradient(to top, #f2f9fa 0%, #fdfefe 100%);
border: 1px solid #c6d5d9;
border-radius: 4px;
color: #7b989e;
display: inline-block;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
margin-right: -5px;
padding: 8px 10px;
text-decoration: none;
}
.btn:hover {
background-image: linear-gradient(to top, #fdfefe 0%, #f2f9fa 100%);
}
<div class='btn-group'>
<a class='btn' href='#'>Refresh</a>
<a class='btn' href='#'>Follow</a>
<a class='btn' href='#'>Back to list</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment