0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/client/app/styles/patterns/labels.scss
2015-05-22 19:02:09 +01:00

129 lines
2.2 KiB
SCSS

// ------------------------------------------------------------
// Labels
//
// Labels are little bubbles of info.
// Imagine an unread email counter.
//
// * Labels
// * Colours
// ------------------------------------------------------------
//
// Labels
// --------------------------------------------------
.label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: 300;
line-height: 1;
color: #FFF;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
// Empty labels collapse automatically (not available in IE8)
&:empty {
display: none;
}
// Quick fix for labels in buttons
.btn & {
position: relative;
top: -1px;
}
}
h1, h2, h3, h4, h5, h6 {
.label {
display: inline-block;
padding: 0.2em 0.5em 0.25em;
top: -0.18em;
position: relative;
line-height: 70%;
font-size: 70%;
}
}
// Add hover effects, but only for links
a.label {
&:hover,
&:focus {
color: #FFF;
text-decoration: none;
cursor: pointer;
}
}
//
// Colours
// --------------------------------------------------
.label-default {
background-color: #A1ADB3;
color: #fff;
&[href] {
color: #fff;
&:hover,
&:focus {
background-color: darken(#A1ADB3, 10%);
}
}
}
.label-alt {
background-color: #666;
color: #fff;
&[href] {
color: #fff;
&:hover,
&:focus {
background-color: darken(#666, 10%);
}
}
}
.label-blue {
background-color: $blue;
color: #fff;
&[href] {
color: #fff;
&:hover,
&:focus {
background-color: darken($blue, 10%);
}
}
}
.label-green {
background-color: $green;
color: #fff;
&[href] {
color: #fff;
&:hover,
&:focus {
background-color: darken($green, 10%);
}
}
}
.label-red {
background-color: $red;
color: #fff;
&[href] {
color: #fff;
&:hover,
&:focus {
background-color: darken($red, 10%);
}
}
}