/* * # 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; 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-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: 1em; 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: 1; } /******************************* 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.attached.label { position: absolute; top: 0px; left: 0px; margin-top: 0px !important; background-color: transparent; -webkit-border-radius: 4px 0px 0px 0px; -moz-border-radius: 4px 0px 0px 0px; border-radius: 4px 0px 0px 0px; } .ui.right.attached.label { left: auto; right: 0px; -webkit-border-radius: 0px 4px 0px 0px; -moz-border-radius: 0px 4px 0px 0px; border-radius: 0px 4px 0px 0px; } .ui.bottom.attached.label { top: auto; bottom: 0px; -webkit-border-radius: 0px 0px 0px 4px; -moz-border-radius: 0px 0px 0px 4px; border-radius: 0px 0px 0px 4px; } .ui.bottom.right.attached.label { -webkit-border-radius: 0px 0px 4px 0px; -moz-border-radius: 0px 0px 4px 0px; border-radius: 0px 0px 4px 0px; } /*------------------- 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; } /*------------------- 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; } /* 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, 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, 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, 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; } /*------------------- 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.8em; } .ui.small.labels .label, .ui.small.label { font-size: 0.7em; } .ui.large.labels .label, .ui.large.label { font-size: 1em; }