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: 2px 4px;
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;
font-size: 1.2rem;
2015-05-16 14:43:12 +03:00
line-height: 1;
font-weight: 400;
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 {
background: var(--lightgrey);
color: var(--midgrey);
2015-05-14 16:45:37 +03:00
}
.label-default[href] {
color: var(--midgrey);
2015-05-14 16:45:37 +03:00
}
.label-default[href]:hover,
.label-default[href]:focus {
background: color-mod(var(--lightgrey) l(-5%));
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-mod(#666 lightness(-10%));
2015-05-14 16:45:37 +03:00
}
.label-blue {
background-color: var(--blue);
color: #fff;
}
.label-blue[href] {
color: #fff;
}
.label-blue[href]:hover,
.label-blue[href]:focus {
background-color: color-mod(var(--blue) lightness(-10%));
2015-05-14 16:45:37 +03:00
}
.label-green {
background-color: var(--green);
color: #fff;
}
.label-green[href] {
color: #fff;
}
.label-green[href]:hover,
.label-green[href]:focus {
background-color: color-mod(var(--green) lightness(-10%));
2015-05-14 16:45:37 +03:00
}
.label-red {
background-color: var(--red);
color: #fff;
}
.label-red[href] {
color: #fff;
}
.label-red[href]:hover,
.label-red[href]:focus {
background-color: color-mod(var(--red) lightness(-10%));
2015-05-14 16:45:37 +03:00
}