Browse Source

Adds additional segment variables, background variables should allow for images, fixes github segment margin

pull/2668/head
jlukic 9 years ago
parent
commit
5f701c1fbe
3 changed files with 16 additions and 14 deletions
  1. 22
      src/definitions/elements/segment.less
  2. 7
      src/themes/default/elements/segment.variables
  3. 1
      src/themes/github/elements/segment.variables

22
src/definitions/elements/segment.less

@ -24,7 +24,7 @@
.ui.segment { .ui.segment {
position: relative; position: relative;
background-color: @background;
background: @background;
box-shadow: @boxShadow; box-shadow: @boxShadow;
margin: @margin; margin: @margin;
padding: @padding; padding: @padding;
@ -46,7 +46,7 @@
padding-left: 0em; padding-left: 0em;
padding-right: 0em; padding-right: 0em;
background-color: transparent;
background: none transparent;
border-radius: 0px; border-radius: 0px;
box-shadow: none; box-shadow: none;
border: none; border: none;
@ -187,7 +187,7 @@
left: 0%; left: 0%;
border-top: 1px solid @borderColor; border-top: 1px solid @borderColor;
background-color: @stackedPageBackground;
background: @stackedPageBackground;
width: 100%; width: 100%;
height: @stackedHeight; height: @stackedHeight;
@ -630,19 +630,21 @@
border: none; border: none;
box-shadow: none; box-shadow: none;
} }
.ui.inverted.segment,
.ui.primary.inverted.segment {
background: @invertedBackground;
color: @invertedTextColor;
}
/* Nested */
.ui.inverted.segment .segment { .ui.inverted.segment .segment {
color: @textColor; color: @textColor;
} }
.ui.inverted.segment .inverted.segment { .ui.inverted.segment .inverted.segment {
color: @white;
}
.ui.inverted.segment,
.ui.primary.inverted.segment {
background-color: @black;
color: @white;
color: @invertedTextColor;
} }
.ui.inverted.block.segment,
/* Attached */
.ui.inverted.attached.segment { .ui.inverted.attached.segment {
border-color: @solidWhiteBorderColor; border-color: @solidWhiteBorderColor;
} }

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

@ -78,9 +78,7 @@
@tallStackedPadding: @verticalPadding + (0.8em); @tallStackedPadding: @verticalPadding + (0.8em);
/* Raised */ /* Raised */
@raisedBoxShadow:
@floatingShadow
;
@raisedBoxShadow: @floatingShadow;
/* Padded */ /* Padded */
@paddedSegmentPadding: 1.5em; @paddedSegmentPadding: 1.5em;
@ -98,6 +96,9 @@
@subtleShadow @subtleShadow
; ;
/* Inverted */
@invertedBackground: @black;
/* Floated */ /* Floated */
@floatedDistance: 1em; @floatedDistance: 1em;

1
src/themes/github/elements/segment.variables

@ -13,7 +13,6 @@
@verticalPadding: 20px; @verticalPadding: 20px;
@horizontalPadding: 20px; @horizontalPadding: 20px;
@margin: 1em;
@borderRadius: 4px; @borderRadius: 4px;
/******************************* /*******************************

Loading…
Cancel
Save