Browse Source

Fixes piled attached #1219

pull/1243/head
jlukic 10 years ago
parent
commit
eb2e99eb84
2 changed files with 26 additions and 10 deletions
  1. 34
      src/definitions/elements/segment.less
  2. 2
      src/themes/default/elements/segment.variables

34
src/definitions/elements/segment.less

@ -175,6 +175,22 @@
z-index: -2;
}
/* Piled Attached */
.ui[class*="top attached"].piled.segment {
margin-top: @piledMargin;
margin-bottom: 0em;
}
.ui.piled.segment[class*="top attached"]:first-child {
margin-top: 0em;
}
.ui.piled.segment[class*="bottom attached"] {
margin-top: 0em;
margin-bottom: @piledMargin;
}
.ui.piled.segment[class*="bottom attached"]:last-child {
margin-bottom: 0em;
}
/*-------------------
Stacked
--------------------*/
@ -349,39 +365,39 @@
Colors
--------------------*/
.ui.black.segment:not(.inverted) {
.ui.black.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @black;
border-radius: @coloredBorderRadius !important;
}
.ui.blue.segment:not(.inverted) {
.ui.blue.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @blue;
border-radius: @coloredBorderRadius !important;
}
.ui.green.segment:not(.inverted) {
.ui.green.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @green;
border-radius: @coloredBorderRadius !important;
}
.ui.orange.segment:not(.inverted) {
.ui.orange.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @orange;
border-radius: @coloredBorderRadius !important;
}
.ui.pink.segment:not(.inverted) {
.ui.pink.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @pink;
border-radius: @coloredBorderRadius !important;
}
.ui.purple.segment:not(.inverted) {
.ui.purple.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @purple;
border-radius: @coloredBorderRadius !important;
}
.ui.red.segment:not(.inverted) {
.ui.red.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @red;
border-radius: @coloredBorderRadius !important;
}
.ui.teal.segment:not(.inverted) {
.ui.teal.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @teal;
border-radius: @coloredBorderRadius !important;
}
.ui.yellow.segment:not(.inverted) {
.ui.yellow.segment:not(.inverted):not(.attached) {
border-top: @coloredBorderSize solid @yellow;
border-radius: @coloredBorderRadius !important;
}

2
src/themes/default/elements/segment.variables

@ -50,7 +50,7 @@
/* Piled */
@piledZIndex: auto;
@piledMargin: 2em;
@piledMargin: 3em;
@piledBoxShadow: 0px 0px 1px 1px @borderColor;
@piledDegrees: 1.2deg;

Loading…
Cancel
Save