/* * # Semantic - Segment * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributor * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Theme *******************************/ @type : 'element'; @element : 'segment'; @import '../../semantic.config'; /******************************* Segment *******************************/ .ui.segment { position: relative; background-color: @background; box-shadow: @boxShadow; margin: @margin 0em; padding: @verticalPadding @horizontalPadding; border-radius: @borderRadius; border: @border; box-sizing: border-box; } .ui.segment:first-child { margin-top: 0em; } .ui.segment:last-child { margin-bottom: 0em; } /* Testing removal .ui.segment:after { content: ''; display: block; height: 0px; clear: both; visibility: hidden; }*/ .ui.vertical.segment { margin: 0em; padding-left: 0em; padding-right: 0em; background-color: transparent; border-radius: 0px; border: none; box-shadow: 0px 1px 0px @borderColor; } .ui.vertical.segment:first-child { padding-top: 0em; } .ui.horizontal.segment { margin: 0em; padding-top: 0em; padding-bottom: 0em; background-color: transparent; border-radius: 0px; border: none; box-shadow: 1px 0px 0px @borderColor; } .ui.horizontal.segment:first-child { padding-left: 0em; } /*------------------- Loose Coupling --------------------*/ /* Menu */ .ui.pointing.menu + .ui.attached.segment { top: 1px; } /* Label */ .ui.bottom.attached.segment > .top.attached.label { border-top-left-radius: 0em; border-top-right-radius: 0em; } .ui.top.attached.segment > .bottom.attached.label { border-bottom-left-radius: 0em; border-bottom-right-radius: 0em; } .ui.attached.segment:not(.top):not(.bottom) > .top.attached.label { border-top-left-radius: 0em; border-top-right-radius: 0em; } .ui.attached.segment:not(.top):not(.bottom) > .bottom.attached.label { border-bottom-left-radius: 0em; border-bottom-right-radius: 0em; } /* Grid */ .ui.page.grid.segment, .ui.grid .ui.segment.column { padding-top: @pageGridMargin; padding-bottom: @pageGridMargin; } .ui.grid.segment, .ui.grid .ui.segment.row, .ui.grid .ui.segment.column { border-radius: 0em; box-shadow: none; border: none; } /* Table */ .ui.basic.table.segment { background: @background; border: @border; box-shadow: @boxShadow; } .ui.very.basic.table.segment { padding: @verticalPadding @horizontalPadding; } /******************************* Types *******************************/ /*------------------- Piled --------------------*/ .ui.piled.segment { margin: @piledMargin 0em; box-shadow: @piledBoxShadow } .ui.piled.segment:first-child { margin-top: 0em; } .ui.piled.segment:last-child { margin-bottom: 0em; } .ui.piled.segment:after, .ui.piled.segment:before { background-color: @white; visibility: visible; content: ""; display: block; height: 100%; left: -1px; position: absolute; width: 100%; box-shadow: @piledBoxShadow } .ui.piled.segment:after { transform: rotate(@piledDegrees); top: 0; z-index: -1; } .ui.piled.segment:before { transform: rotate(-@piledDegrees); top: 0; z-index: -2; } /*------------------- Stacked --------------------*/ .ui.stacked.segment { padding-bottom: @stackedPadding; } .ui.stacked.segment:after, .ui.stacked.segment:before { content: ''; position: absolute; bottom: -3px; left: 0%; border-top: 1px solid @borderColor; background-color: @subtleTransparentBlack; width: 100%; height: @stackedHeight; visibility: visible; } .ui.stacked.segment:before { bottom: 0px; } /* Inverted */ .ui.stacked.inverted.segment:after, .ui.stacked.inverted.segment:before { background-color: @subtleTransparentBlack; border-top: 1px solid @selectedBorderColor; } /*------------------- Circular --------------------*/ .ui.circular.segment { display: table-cell; padding: @circularPadding; text-align: center; vertical-align: middle; border-radius: 500em; } /*------------------- Raised --------------------*/ .ui.raised.segment { box-shadow: @raisedBoxShadow; } /******************************* States *******************************/ .ui.disabled.segment { opacity: @disabledOpacity; color: @disabledTextColor; } /******************************* Variations *******************************/ /*------------------- Basic --------------------*/ .ui.basic.segment { position: relative; background-color: transparent; box-shadow: none; border-radius: 0px; } .ui.basic.segment:first-child { padding-top: 0em; } .ui.basic.segment:last-child { padding-bottom: 0em; } /*------------------- Fittted --------------------*/ .ui.fitted.segment { padding: 0em; } /*------------------- Colors --------------------*/ .ui.black.segment:not(.inverted) { border-top: @coloredBorderSize solid @black; border-radius: @coloredBorderRadius !important; } .ui.blue.segment:not(.inverted) { border-top: @coloredBorderSize solid @blue; border-radius: @coloredBorderRadius !important; } .ui.green.segment:not(.inverted) { border-top: @coloredBorderSize solid @green; border-radius: @coloredBorderRadius !important; } .ui.orange.segment:not(.inverted) { border-top: @coloredBorderSize solid @orange; border-radius: @coloredBorderRadius !important; } .ui.pink.segment:not(.inverted) { border-top: @coloredBorderSize solid @pink; border-radius: @coloredBorderRadius !important; } .ui.purple.segment:not(.inverted) { border-top: @coloredBorderSize solid @purple; border-radius: @coloredBorderRadius !important; } .ui.red.segment:not(.inverted) { border-top: @coloredBorderSize solid @red; border-radius: @coloredBorderRadius !important; } .ui.teal.segment:not(.inverted) { border-top: @coloredBorderSize solid @teal; border-radius: @coloredBorderRadius !important; } .ui.yellow.segment:not(.inverted) { border-top: @coloredBorderSize solid @yellow; border-radius: @coloredBorderRadius !important; } /*------------------- Inverted Colors --------------------*/ .ui.inverted.segment, .ui.inverted.black.segment { background-color: @black !important; color: @white !important; } .ui.inverted.blue.segment { background-color: @blue !important; color: @white !important; } .ui.inverted.green.segment { background-color: @green !important; color: @white !important; } .ui.inverted.orange.segment { background-color: @orange !important; color: @white !important; } .ui.inverted.pink.segment { background-color: @pink !important; color: @white !important; } .ui.inverted.purple.segment { background-color: @purple !important; color: @white !important; } .ui.inverted.red.segment { background-color: @red !important; color: @white !important; } .ui.inverted.teal.segment { background-color: @teal !important; color: @white !important; } .ui.inverted.yellow.segment { background-color: @yellow !important; color: @white !important; } /*------------------- Aligned --------------------*/ .ui.left.aligned.segment { text-align: left; } .ui.right.aligned.segment { text-align: right; } .ui.center.aligned.segment { text-align: center; } /*------------------- Floated --------------------*/ .ui.floated.segment, .ui.left.floated.segment { float: left; } .ui.right.floated.segment { float: right; } /*------------------- Inverted --------------------*/ .ui.inverted.segment { border: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .ui.inverted.segment .segment { color: @textColor; } .ui.inverted.segment .inverted.segment { color: @white; } .ui.inverted.segment, .ui.primary.inverted.segment { background-color: @black; color: @white; } .ui.inverted.block.segment, .ui.inverted.attached.segment { box-shadow: none !important; } /*------------------- Ordinality --------------------*/ .ui.secondary.segment { background: @secondaryBackground; color: @secondaryColor; } .ui.tertiary.segment { background: @tertiaryBackground; color: @textColor; } .ui.secondary.inverted.segment { background: @secondaryInvertedBackground; color: @secondaryInvertedColor; } .ui.tertiary.inverted.segment { background: @tertiaryInvertedBackground; color: @tertiaryInvertedColor; } /*------------------- Attached --------------------*/ .ui.segment.attached { top: 0px; bottom: 0px; margin: 0em; border-radius: 0px; box-shadow: @attachedBoxShadow; } .ui.top.attached.segment { top: @attachedTopOffset; bottom: 0px; margin-top: @margin; margin-bottom: 0em; border-radius: @borderRadius @borderRadius 0em 0em; } .ui.segment.top.attached:first-child { margin-top: 0em; } .ui.segment.bottom.attached { top: @attachedBottomOffset; bottom: 0px; margin-top: 0em; margin-bottom: @margin; box-shadow: @attachedBottomBoxShadow; border-radius: 0em 0em @borderRadius @borderRadius; } .ui.segment.bottom.attached:last-child { margin-bottom: 0em; } .loadUIOverrides();