|
|
/* * # 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; padding: 0.33em 0.8em; font-weight: bold; text-transform: uppercase; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; -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; font-size: 0.9em; margin-left: 0.5em; opacity: 0.6; } .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 */ .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; padding: 0.5em 1em; color: #AAAAAA; -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 --------------------*/ /*--- Standard ---*/ .ui.labels .label, .ui.label { background-color: rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.3); } .ui.labels .label:before, .ui.label:before { background-color: rgba(0, 0, 0, 0.1); color: #555555; } /* Hover */ a.ui.labels .label:hover, a.ui.label:hover { background-color: #F0F0F0; } .ui.labels a.label:hover:before, a.ui.label:hover:before { background-color: #F0F0F0; } /*--- Black ---*/ .ui.black.labels .label, .ui.black.label { background-color: #5C6166; color: #FFFFFF; } .ui.labels .black.label:before, .ui.black.labels .label:before, .ui.black.label:before { background-color: #5C6166; } /* Hover */ a.ui.black.labels .label:hover, a.ui.black.label:hover { background-color: #888888; } .ui.labels a.black.label:hover:before, .ui.black.labels a.label:hover:before, a.ui.black.label:hover:before { background-color: #888888; } /*--- Green ---*/ .ui.green.labels .label, .ui.green.label { background-color: #A1CF64; color: #FFFFFF; } .ui.labels .green.label:before, .ui.green.labels .label:before, .ui.green.label:before { background-color: #A1CF64; } /* Hover */ a.ui.green.labels .label:hover, a.ui.green.label:hover { background-color: #89B84C; } .ui.labels a.green.label:hover:before, .ui.green.labels a.label:hover:before, a.ui.green.label:hover:before { background-color: #89B84C; } /*--- Red ---*/ .ui.red.labels .label, .ui.red.label { background-color: #EF4D6D; color: #FFFFFF; } .ui.labels .red.label:before, .ui.red.labels .label:before, .ui.red.label:before { background-color: #EF4D6D; } /* Hover */ a.ui.red.labels .label:hover, a.ui.red.label:hover { background-color: #DE3859; color: #FFFFFF; } .ui.labels a.red.label:hover:before, .ui.red.labels a.label:hover:before, a.ui.red.label:hover:before { background-color: #DE3859; } /*--- Blue ---*/ .ui.blue.labels .label, .ui.blue.label { background-color: #6ECFF5; color: #FFFFFF; } .ui.labels .blue.label:before, .ui.blue.labels .label:before, .ui.blue.label:before { background-color: #6ECFF5; } /* Hover */ a.ui.blue.labels .label:hover, a.ui.blue.label:hover { background-color: #1AB8F3; color: #FFFFFF; } .ui.labels a.blue.label:hover:before, .ui.blue.labels a.label:hover:before, a.ui.blue.label:hover:before { background-color: #1AB8F3; } /*--- Purple ---*/ .ui.purple.labels .label, .ui.purple.label { background-color: #564F8A; color: #FFFFFF; } .ui.labels .purple.label:before, .ui.purple.labels .label:before, .ui.purple.label:before { background-color: #564F8A; } /* Hover */ a.ui.purple.labels .label:hover, a.ui.purple.label:hover { background-color: #3E3773; color: #FFFFFF; } .ui.labels a.purple.label:hover:before, .ui.purple.labels a.label:hover:before, a.ui.purple.label:hover:before { background-color: #3E3773; } /*--- Pink ---*/ .ui.teal.labels .label, .ui.teal.label { background-color: #00B5AD; color: #FFFFFF; } .ui.labels .teal.label:before, .ui.teal.labels .label:before, .ui.teal.label:before { background-color: #00B5AD; } /* Hover */ a.ui.teal.labels .label:hover, a.ui.teal.label:hover { background-color: #009A93; color: #FFFFFF; } .ui.labels a.teal.label:hover:before, .ui.teal.labels a.label:hover:before, a.ui.teal.tag.label:hover:before { background-color: #009A93; } /*------------------- 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, .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: 13px; } .ui.small.labels .label, .ui.small.label { font-size: 11px; } .ui.large.labels .label, .ui.large.label { font-size: 15px; }
|