Ghost/ghost/admin/app/styles/patterns/labels.css

120 lines
1.9 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Labels
/* ---------------------------------------------------------- */
.label {
display: inline;
padding: 0.2em 0.6em 0.3em;
2015-05-16 14:43:12 +03:00
border-radius: 0.25em;
2015-05-16 00:28:30 +03:00
color: #fff;
2015-05-16 14:43:12 +03:00
vertical-align: baseline;
2015-05-14 16:45:37 +03:00
text-align: center;
white-space: nowrap;
2015-05-16 14:43:12 +03:00
font-size: 75%;
line-height: 1;
font-weight: 300;
2015-05-14 16:45:37 +03:00
}
.label:empty {
display: none;
}
.gh-btn .label {
2015-05-14 16:45:37 +03:00
position: relative;
top: -1px;
}
h1 .label,
h2 .label,
h3 .label,
h4 .label,
h5 .label,
h6 .label {
2015-05-16 14:43:12 +03:00
position: relative;
top: -0.18em;
2015-05-14 16:45:37 +03:00
display: inline-block;
padding: 0.2em 0.5em 0.25em;
font-size: 70%;
2015-05-16 14:43:12 +03:00
line-height: 70%;
2015-05-14 16:45:37 +03:00
}
a.label:hover,
a.label:focus {
2015-05-16 00:28:30 +03:00
color: #fff;
2015-05-14 16:45:37 +03:00
text-decoration: none;
cursor: pointer;
}
/* Label Colours
/* ---------------------------------------------------------- */
.label-default {
2015-05-16 00:28:30 +03:00
background-color: #a1adb3;
2015-05-14 16:45:37 +03:00
color: #fff;
}
.label-default[href] {
color: #fff;
}
.label-default[href]:hover,
.label-default[href]:focus {
2015-05-16 00:28:30 +03:00
background-color: color(#a1adb3 lightness(-10%));
2015-05-14 16:45:37 +03:00
}
.label-alt {
background-color: #666;
color: #fff;
}
.label-alt[href] {
color: #fff;
}
.label-alt[href]:hover,
.label-alt[href]:focus {
background-color: color(#666 lightness(-10%));
}
.label-blue {
background-color: var(--blue);
color: #fff;
}
.label-blue[href] {
color: #fff;
}
.label-blue[href]:hover,
.label-blue[href]:focus {
background-color: color(var(--blue) lightness(-10%));
}
.label-green {
background-color: var(--green);
color: #fff;
}
.label-green[href] {
color: #fff;
}
.label-green[href]:hover,
.label-green[href]:focus {
background-color: color(var(--green) lightness(-10%));
}
.label-red {
background-color: var(--red);
color: #fff;
}
.label-red[href] {
color: #fff;
}
.label-red[href]:hover,
.label-red[href]:focus {
background-color: color(var(--red) lightness(-10%));
}