Skip to content

Instantly share code, notes, and snippets.

@lcaballero
Created September 12, 2013 21:20
Show Gist options
  • Select an option

  • Save lcaballero/6543945 to your computer and use it in GitHub Desktop.

Select an option

Save lcaballero/6543945 to your computer and use it in GitHub Desktop.
Css Buttons Less Buttons
.btn-sizing(@color:#fff, @radius: 3px, @padding_top: 4px, @padding_sides: 10px) {
font-weight: bold;
color:@color;
border-radius: @radius;
padding: @padding_top @padding_sides;
}
.btn-colors(@border: #660000, @top: #cb0000, @bottom: #9c0000) {
border: 1px solid @border;
.vertical-gradient(@top, @bottom);
}
.vertical-gradient(@top: #cb0000, @bottom: #9c0000) {
background: @top; /* Old browsers */
background: -moz-linear-gradient(top, @top 0%, @bottom 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @top), color-stop(100%, @bottom)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, @top 0%, @bottom 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, @top 0%, @bottom 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, @top 0%, @bottom 100%); /* IE10+ */
background: linear-gradient(to bottom, @top 0%, @bottom 100%); /* W3C */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment