/* * # Semantic Label - Flat * http://github.com/quirkyinc/semantic * * * Copyright 2013 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * * Released: April 26 2013 */ /******************************* Label *******************************/ .ui.label { display: inline-block; vertical-align: middle; margin: -0.5em 0.25em 0em; background-color: #E8E8E8; padding: 0.5em 0.8em; color: rgba(0, 0, 0, 0.65); text-transform: uppercase; -webkit-border-radius: 0.325em; -moz-border-radius: 0.325em; border-radius: 0.325em; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; -webkit-transition: background 0.1s linear ; -moz-transition: background 0.1s linear ; -o-transition: background 0.1s linear ; -ms-transition: background 0.1s linear ; transition: background 0.1s linear ; } a.ui.label { cursor: pointer; } .ui.label.disabled { opacity: 0.5; } .ui.label .detail { display: inline-block; margin-left: 0.5em; font-weight: bold; opacity: 0.8; } .ui.label .icon.close { cursor: pointer; margin-left: 0.5em; opacity: 0.7; -webkit-transition: background 0.1s linear ; -moz-transition: background 0.1s linear ; -o-transition: background 0.1s linear ; -ms-transition: background 0.1s linear ; transition: background 0.1s linear ; } /******************************* States *******************************/ /*------------------- Hover --------------------*/ a.ui.labels .label:hover, a.ui.label:hover { background-color: #E0E0E0; color: rgba(0, 0, 0, 0.7); } .ui.labels a.label:hover:before, a.ui.label:hover:before { background-color: #E0E0E0; color: rgba(0, 0, 0, 0.7); } .ui.label .icon.close:hover { opacity: 0.99; } /******************************* Variations *******************************/ /*------------------- Tag --------------------*/ .ui.tag.labels .label, .ui.tag.label { margin-left: 1em; position: relative; padding: 0.33em 1.3em 0.33em 1.4em; -webkit-border-radius: 0px 3px 3px 0px; -moz-border-radius: 0px 3px 3px 0px; border-radius: 0px 3px 3px 0px; } .ui.tag.labels .label:before, .ui.tag.label:before { position: absolute; top: 0.3em; left: 0.3em; content: ''; margin-left: -1em; background-image: none; width: 1.5em; height: 1.5em; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); transform: rotate(45deg); -webkit-transition: background 0.1s linear ; -moz-transition: background 0.1s linear ; -o-transition: background 0.1s linear ; -ms-transition: background 0.1s linear ; transition: background 0.1s linear ; } .ui.tag.labels .label:after, .ui.tag.label:after { position: absolute; content: ''; top: 50%; left: -0.25em; margin-top: -0.3em; background-color: #FFFFFF; width: 0.55em; height: 0.55em; -webkit-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3); -moz-border-radius: 100px 100px 100px 100px; -webkit-border-radius: 100px 100px 100px 100px; border-radius: 100px 100px 100px 100px; } /*------------------- Attached --------------------*/ .ui.top.attached.label, .ui.attached.label { width: 100%; position: absolute; margin: 0em; top: 0em; left: 0em; -webkit-border-radius: 4px 4px 0em 0em; -moz-border-radius: 4px 4px 0em 0em; border-radius: 4px 4px 0em 0em; } .ui.bottom.attached.label { top: auto; bottom: 0em; -webkit-border-radius: 0em 0em 4px 4px; -moz-border-radius: 0em 0em 4px 4px; border-radius: 0em 0em 4px 4px; } .ui.top.left.attached.label { width: auto; margin-top: 0em !important; -webkit-border-radius: 4px 0em 4px 0em; -moz-border-radius: 4px 0em 4px 0em; border-radius: 4px 0em 4px 0em; } .ui.top.right.attached.label { width: auto; left: auto; right: 0em; -webkit-border-radius: 0em 4px 0em 4px; -moz-border-radius: 0em 4px 0em 4px; border-radius: 0em 4px 0em 4px; } .ui.bottom.left.attached.label { width: auto; top: auto; bottom: 0em; -webkit-border-radius: 4px 0em 0em 4px; -moz-border-radius: 4px 0em 0em 4px; border-radius: 4px 0em 0em 4px; } .ui.bottom.right.attached.label { width: auto; -webkit-border-radius: 4px 0em 4px 0em; -moz-border-radius: 4px 0em 4px 0em; border-radius: 4px 0em 4px 0em; } /*------------------- Corner Label --------------------*/ .ui.corner.label { background-color: transparent; position: absolute; top: 0em; right: 0em; z-index: 10; margin: 0em; font-size: 0.9em; width: 1.75em; height: 1.75em; padding: 0em; text-align: center; -webkit-transition: color 0.2s ease; -moz-transition: color 0.2s ease; -o-transition: color 0.2s ease; -ms-transition: color 0.2s ease; transition: color 0.2s ease; } .ui.corner.label:after { position: absolute; content: ""; right: 0em; top: 0em; z-index: -1; width: 0em; height: 0em; border-color: transparent #E8E8E8 transparent transparent; border-style: solid; border-width: 0em 2.75em 2.75em 0em; -webkit-transition: border-color 0.2s ease; -moz-transition: border-color 0.2s ease; -o-transition: border-color 0.2s ease; -ms-transition: border-color 0.2s ease; transition: border-color 0.2s ease; } .ui.corner.label .icon { margin: 0.35em 0em; vertical-align: top; } .ui.corner.label .text { display: inline-block; margin: 0.7em 0em 0em 0em; width: 2.5em; font-size: 0.7em; text-align: center; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } /* Left Corner */ .ui.left.corner.label, .ui.left.corner.label:after { right: auto; left: 0em; } .ui.left.corner.label:after { border-width: 2.75em 2.75em 0em 0em; border-color: #E8E8E8 transparent transparent; } .ui.left.corner.label .text { -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -o-transform: rotate(-45deg); -ms-transform: rotate(-45deg); transform: rotate(-45deg); } /* Hover */ .ui.corner.label:hover { background-color: transparent; } a.ui.corner.label:hover::after { border-right-color: #E0E0E0; } a.ui.left.corner.label:hover::after { border-right-color: transparent; border-top-color: #E0E0E0; } /*------------------- Fluid --------------------*/ .ui.label.fluid, .ui.fluid.labels > .label { width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } /*------------------- Inverted --------------------*/ .ui.inverted.labels .label, .ui.inverted.label { color: #FFFFFF !important; } /*------------------- Colors --------------------*/ /*--- Black ---*/ .ui.black.labels .label, .ui.black.label { background-color: #5C6166 !important; color: #FFFFFF !important; } .ui.labels .black.label:before, .ui.black.labels .label:before, .ui.black.label:before { background-color: #5C6166 !important; } /* Hover */ a.ui.black.labels .label:hover, a.ui.black.label:hover { background-color: #888888 !important; } .ui.labels a.black.label:hover:before, .ui.black.labels a.label:hover:before, a.ui.black.label:hover:before { background-color: #888888 !important; } /*--- Green ---*/ .ui.green.labels .label, .ui.green.label { background-color: #A1CF64 !important; color: #FFFFFF !important; } .ui.labels .green.label:before, .ui.green.labels .label:before, .ui.green.label:before { background-color: #A1CF64 !important; } /* Hover */ a.ui.green.labels .label:hover, a.ui.green.label:hover { background-color: #89B84C !important; } .ui.labels a.green.label:hover:before, .ui.green.labels a.label:hover:before, a.ui.green.label:hover:before { background-color: #89B84C !important; } /*--- Red ---*/ .ui.red.labels .label, .ui.red.label { background-color: #EF4D6D !important; color: #FFFFFF !important; } .ui.labels .red.label:before, .ui.red.labels .label:before, .ui.red.label:before { background-color: #EF4D6D !important; } /* Corner */ .ui.red.corner.label { background-color: transparent; } /* Hover */ a.ui.red.labels .label:hover, a.ui.red.label:hover { background-color: #DE3859 !important; color: #FFFFFF !important; } .ui.labels a.red.label:hover:before, .ui.red.labels a.label:hover:before, a.ui.red.label:hover:before { background-color: #DE3859 !important; } /*--- Blue ---*/ .ui.blue.labels .label, .ui.blue.label { background-color: #6ECFF5 !important; color: #FFFFFF !important; } .ui.labels .blue.label:before, .ui.blue.labels .label:before, .ui.blue.label:before { background-color: #6ECFF5 !important; } /* Hover */ a.ui.blue.labels .label:hover, .ui.blue.labels a.label:hover, a.ui.blue.label:hover { background-color: #1AB8F3 !important; color: #FFFFFF !important; } .ui.labels a.blue.label:hover:before, .ui.blue.labels a.label:hover:before, a.ui.blue.label:hover:before { background-color: #1AB8F3 !important; } /*--- Purple ---*/ .ui.purple.labels .label, .ui.purple.label { background-color: #564F8A !important; color: #FFFFFF !important; } .ui.labels .purple.label:before, .ui.purple.labels .label:before, .ui.purple.label:before { background-color: #564F8A !important; } /* Hover */ a.ui.purple.labels .label:hover, .ui.purple.labels a.label:hover, a.ui.purple.label:hover { background-color: #3E3773 !important; color: #FFFFFF !important; } .ui.labels a.purple.label:hover:before, .ui.purple.labels a.label:hover:before, a.ui.purple.label:hover:before { background-color: #3E3773 !important; } /*--- Pink ---*/ .ui.teal.labels .label, .ui.teal.label { background-color: #00B5AD !important; color: #FFFFFF !important; } .ui.labels .teal.label:before, .ui.teal.labels .label:before, .ui.teal.label:before { background-color: #00B5AD !important; } /* Hover */ a.ui.teal.labels .label:hover, .ui.teal.labels a.label:hover, a.ui.teal.label:hover { background-color: #009A93 !important; color: #FFFFFF !important; } .ui.labels a.teal.label:hover:before, .ui.teal.labels a.label:hover:before, a.ui.teal.tag.label:hover:before { background-color: #009A93 !important; } /*------------------- Circular --------------------*/ .ui.circular.label { margin-right: 0.5em; margin-top: -1em; width: 2em; height: 2em; padding: 0.5em; line-height: 1em; text-align: center; } /*------------------- Pointing --------------------*/ .ui.pointing.label { position: relative; } .ui.attached.pointing.label { position: absolute; } .ui.pointing.label:before { position: absolute; content: ""; width: 0.6em; height: 0.6em; background-image: none; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); transform: rotate(45deg); z-index: 2; -webkit-transition: background 0.1s linear ; -moz-transition: background 0.1s linear ; -o-transition: background 0.1s linear ; -ms-transition: background 0.1s linear ; transition: background 0.1s linear ; } /*--- Above ---*/ .ui.pointing.label:before { background-color: #E8E8E8; } .ui.pointing.label, .ui.pointing.above.label { margin-top: 1em; } .ui.pointing.label:before, .ui.pointing.above.label:before { margin-left: -0.3em; top: -0.3em; left: 50%; } /*--- Below ---*/ .ui.pointing.below.label { margin-top: 0em; margin-bottom: 1em; } .ui.pointing.below.label:before { margin-left: -0.3em; top: auto; right: auto; bottom: -0.3em; left: 50%; } /*--- Left ---*/ .ui.pointing.left.label { margin-top: 0em; margin-left: 1em; } .ui.pointing.left.label:before { margin-top: -0.3em; bottom: auto; right: auto; top: 50%; left: 0em; } /*--- Right ---*/ .ui.pointing.right.label { margin-top: 0em; margin-right: 1em; } .ui.pointing.right.label:before { margin-top: -0.3em; right: -0.3em; top: 50%; bottom: auto; left: auto; } /*------------------ Floating Label -------------------*/ .ui.floating.label { position: absolute; z-index: 100; top: -1em; left: 100%; margin: 0em 0em 0em -1.5em !important; -webkit-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset; -moz-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset; box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset; } /*------------------- Sizes --------------------*/ .ui.label { font-size: 0.8rem; } .ui.small.labels .label, .ui.small.label { font-size: 0.7rem; } .ui.large.labels .label, .ui.large.label { font-size: 1rem; }