You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

449 lines
8.1 KiB

/*
* # 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: @white;
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;
}
.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
--------------------*/
.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: @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 {
border-top: @coloredBorderSize solid @black;
border-radius: @coloredBorderRadius;
}
.ui.blue.segment {
border-top: @coloredBorderSize solid @blue;
border-radius: @coloredBorderRadius;
}
.ui.green.segment {
border-top: @coloredBorderSize solid @green;
border-radius: @coloredBorderRadius;
}
.ui.orange.segment {
border-top: @coloredBorderSize solid @orange;
border-radius: @coloredBorderRadius;
}
.ui.pink.segment {
border-top: @coloredBorderSize solid @pink;
border-radius: @coloredBorderRadius;
}
.ui.purple.segment {
border-top: @coloredBorderSize solid @purple;
border-radius: @coloredBorderRadius;
}
.ui.red.segment {
border-top: @coloredBorderSize solid @red;
border-radius: @coloredBorderRadius;
}
.ui.teal.segment {
border-top: @coloredBorderSize solid @teal;
border-radius: @coloredBorderRadius;
}
.ui.yellow.segment {
border-top: @coloredBorderSize solid @yellow;
border-radius: @coloredBorderRadius;
}
/*-------------------
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;
}
.ui.justified.segment {
text-align: justify;
hyphens: auto;
}
/*-------------------
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;
}
/*-------------------
Ordinality
--------------------*/
.ui.secondary.segment {
background-color: @secondaryBackground;
color: @secondaryColor;
}
.ui.tertiary.segment {
background-color: @tertiaryBackground;
color: @textColor;
}
.ui.secondary.inverted.segment {
background-color: @black;
background-image: @secondaryInvertedBackground;
color: @secondaryInvertedColor;
}
.ui.tertiary.inverted.segment {
background-color: @black;
background-image: @tertiaryInvertedColor;
color: @tertiaryInvertedColor;
}
/*-------------------
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();