Skip to content

Instantly share code, notes, and snippets.

@RyanSquared
Created December 2, 2015 18:15
Show Gist options
  • Save RyanSquared/58e16b6382b11c04dbf6 to your computer and use it in GitHub Desktop.
Save RyanSquared/58e16b6382b11c04dbf6 to your computer and use it in GitHub Desktop.
Badges CSS file
/*
Copyright &copy; 2015 Charles "ChickenNuggers" Heywood <vandor2012@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
.badge {
color: #eee;
border-radius: 3px;
font-size: 12px;
font-family: Arial Helvetica Roboto sans-serif;
}
.badge span {
padding: 3px;
}
.badge > span:first-child {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
background: -webkit-linear-gradient(#444, #777);
color: #fff;
}
.badge > span:last-child {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
.badge-red > span:last-child {
background: linear-gradient(#c00, #e00);
color: #111;
}
.badge-green > span:last-child {
background: linear-gradient(#0c0, #0e0);
color: #111;
}
.badge-blue > span:last-child {
background: linear-gradient(#00c, #00e);
color: #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment