-
Bug ReportI am trying to implement sided coloured segments and top border is something that breaks everything, so that I need to use !important, what I want to avoid. Steps to reproduce
Expected result.ui.blue.segment:not(.inverted) is applied Actual result.ui.blue.segment.segment.segment.segment.segment:not(.inverted) is applied Testcasehttps://jsfiddle.net/8hsq905t/5/ Screenshot (when possible)Version2.7.6 ThemeDefault |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The multiple assigned segment class is there to increase specificity without using .ui.ui.ui.sided.left.blue.segment:not(.inverted) {
border-top: inherit;
} |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks, that’s acceptable solution |
Beta Was this translation helpful? Give feedback.
The multiple assigned segment class is there to increase specificity without using
!important
, so also wanted behavior.In your case you can do the same like
See https://jsfiddle.net/6pxdewtL/