Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Segment] Add basic for segments

Open esargent opened this issue 10 years ago • 6 comments

Enhancement or Bugfix depending on how you look at it:

When you use a basic segment (because you don't want a border) inside a horizontal segments class, you still get the border because the .ui.horizontal.segments > .segment rule takes precedence. So I recommend adding a basic.segments definition to solve the problem and maintain the same expectation even if a basic segment is wrapped by a segments element of some type.

/*-------------------
   Basic
--------------------*/`

.ui.basic.segments {
  background: @basicBackground;
  box-shadow: @basicBoxShadow;
  border: @basicBorder;
  border-radius: @basicBorderRadius;
}

usage example:

<div style="background-color:black;"> <!-- because you can see the issue clearly -->
    <div class="ui basic horizontal segments"> 
        <!--  below basic will be overridden by .ui.horizontal.segments > .segment -->
        <div class="ui basic segment">some content</div> 
        <div class="ui basic compact segment">Free radicals are bad.</div>
    </div>
</div>

Adding as an issue vs pull because I'm not a CSS expert and not clear this is the best way to fix or if it might have other side effects.

esargent avatar Mar 08 '16 22:03 esargent

I second this! Had to create my own custom css.

/* remove shadows from segment ouline, basic segment? */
.ui.no.shadow.segment {
    box-shadow: none;
}

kmd1970 avatar Mar 09 '16 14:03 kmd1970

Thanks for the sugestion. We will consider this enhancement.

jokeronaldo avatar Mar 21 '16 16:03 jokeronaldo

I looked through the "New in 2.2" page and didn't see any mention of this enhancement. Did I miss it? Or is this not going to be an enhancement after all? Thank you. :bowing_man:

shaun-floss avatar Jan 28 '17 22:01 shaun-floss

Not sure why it was closed, I’ll reopen it, because there’s currently one duplicate of this issue that I’d like to reroute here. If that’s a mistake, please close both of them as rejected.

awgv avatar Feb 15 '17 09:02 awgv

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 23 '18 17:02 stale[bot]

Available in https://fomantic-ui.com/elements/segment.html#basic

lubber-de avatar Jan 11 '19 07:01 lubber-de