/* * # Semantic - Segment * http://github.com/jlukic/semantic-ui/ * * * Copyright 2013 Contributors * 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: #FFFFFF; box-shadow: 0px 0px 0px 1px @borderColor; margin: @margin 0em; padding: @verticalPadding @horizontalPadding; border-radius: @borderRadius; box-sizing: border-box; } .ui.segment:first-child { margin-top: 0em; } .ui.segment:last-child { margin-bottom: 0em; } .ui.segment:after { content: ''; display: block; height: 0px; clear: both; visibility: hidden; } .ui.vertical.segment { margin: 0em; padding-right: 0em; padding-left: 0em; background-color: transparent; border-radius: 0px; 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; box-shadow: 1px 0px 0px @borderColor; } .ui.horizontal.segment:first-child { padding-right: 0em; } /*------------------- Loose Coupling --------------------*/ .ui.pointing.menu + .ui.attached.segment { top: 1px; } .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; } /* No padding on edge content */ .ui.segment > :first-child { margin-top: 0em; } .ui.segment > :last-child { margin-bottom: 0em; } /******************************* Types *******************************/ /*------------------- Piled --------------------*/ .ui.piled.segment { margin: (2 * @margin) 0em; box-shadow: 0px 0px 1px 1px @borderColor; } .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: #FFFFFF; visibility: visible; content: ""; display: block; height: 100%; right: -1px; position: absolute; width: 100%; box-shadow: 0px 0px 1px 1px @borderColor; } .ui.piled.segment:after { transform: rotate(1.2deg); top: 0; z-index: -1; } .ui.piled.segment:before { transform: rotate(-1.2deg); top: 0; z-index: -2; } /*------------------- Stacked --------------------*/ .ui.stacked.segment { padding-bottom: @verticalPadding + (0.7em); } .ui.stacked.segment:after, .ui.stacked.segment:before { content: ''; position: absolute; bottom: -3px; right: 0%; border-top: 1px solid @borderColor; background-color: @subtleTransparentBlack; width: 100%; height: 5px; 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: 2em; text-align: center; vertical-align: middle; border-radius: 500em; } /*------------------- Raised --------------------*/ .ui.raised.segment { box-shadow: 0px 1px 2px 1px @borderColor; } /******************************* 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 { border-top: @coloredBorderSize solid @black; } .ui.blue.segment { border-top: @coloredBorderSize solid @blue; } .ui.green.segment { border-top: @coloredBorderSize solid @green; } .ui.orange.segment { border-top: @coloredBorderSize solid @orange; } .ui.pink.segment { border-top: @coloredBorderSize solid @pink; } .ui.purple.segment { border-top: @coloredBorderSize solid @purple; } .ui.red.segment { border-top: @coloredBorderSize solid @red; } .ui.teal.segment { border-top: @coloredBorderSize solid @teal; } .ui.yellow.segment { border-top: @coloredBorderSize solid @yellow; } /*------------------- Inverted Colors --------------------*/ .ui.inverted.segment, .ui.inverted.black.segment { background-color: @black !important; color: #FFFFFF !important; } .ui.inverted.blue.segment { background-color: @blue !important; color: #FFFFFF !important; } .ui.inverted.green.segment { background-color: @green !important; color: #FFFFFF !important; } .ui.inverted.orange.segment { background-color: @orange !important; color: #FFFFFF !important; } .ui.inverted.pink.segment { background-color: @pink !important; color: #FFFFFF !important; } .ui.inverted.purple.segment { background-color: @purple !important; color: #FFFFFF !important; } .ui.inverted.red.segment { background-color: @red !important; color: #FFFFFF !important; } .ui.inverted.teal.segment { background-color: @teal !important; color: #FFFFFF !important; } .ui.inverted.yellow.segment { background-color: @yellow !important; color: #FFFFFF !important; } /*------------------- Aligned --------------------*/ .ui.left.aligned.segment { text-align: right; } .ui.right.aligned.segment { text-align: left; } .ui.center.aligned.segment { text-align: center; } .ui.justified.segment { text-align: justify; hyphens: auto; } /*------------------- Floated --------------------*/ .ui.floated.segment, .ui.left.floated.segment { float: right; } .ui.right.floated.segment { float: left; } /*------------------- Inverted --------------------*/ .ui.inverted.segment { border: none; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .ui.inverted.segment .segment { color: rgba(0, 0, 0, 0.7); } .ui.inverted.segment .inverted.segment { color: #FFFFFF; } .ui.inverted.segment, .ui.primary.inverted.segment { background-color: @black; color: #FFFFFF; } /*------------------- Ordinality --------------------*/ .ui.secondary.segment { background-color: @secondaryColor; color: @textColor; } .ui.tertiary.segment { background-color: @tertiaryColor; color: @lightTextColor; } .ui.secondary.inverted.segment { background-color: @black; background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%); color: @offWhite; } .ui.tertiary.inverted.segment { background-color: @black; background-image: linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%); color: @darkWhite; } /*------------------- Attached --------------------*/ .ui.segment.attached { top: -1px; bottom: -1px; margin: 0em; border-radius: 0px; box-shadow: 0px 0px 0px 1px @solidBorderColor; } .ui.top.attached.segment { top: 0px; bottom: -1px; 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: -1px; bottom: 0px; margin-top: 0em; margin-bottom: @margin; border-radius: 0px 0px @borderRadius @borderRadius; } .ui.segment.bottom.attached:last-child { margin-bottom: 0em; } .loadUIOverrides() !important;