carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 1.04 kB
JavaScript
;var e=require("styled-components"),t=require("../menu.config.js");function n(e){return e&&e.__esModule?e:{default:e}}var a=n(e);const l=a.default.h2.withConfig({displayName:"menu-segment-title.style__StyledTitle",componentId:"sc-41a2d76d-0"})(["",""],(({menuType:n,variant:a,shouldWrap:l})=>e.css(["margin:0px;padding:16px 16px 8px;font-size:12px;font-weight:500;text-transform:uppercase;line-height:14px;cursor:default;color:",";"," white-space:",";"],t.default[n].title,"alternate"===a&&`background-color: ${t.default[n].alternate};`,l?"normal":"nowrap"))),d=a.default.ul.withConfig({displayName:"menu-segment-title.style__StyledSegmentChildren",componentId:"sc-41a2d76d-1"})(["",""],(({menuType:n,variant:a})=>e.css(["padding:0;li{list-style:none;"," &:not(&:last-child) a,&:not(&:last-child) button,&:not(&:last-child) > span,&:not(&:last-child) > div{border-radius:var(--borderRadius000);}}"],"alternate"===a&&e.css(["background-color:",";"],t.default[n].alternate))));exports.StyledSegmentChildren=d,exports.StyledTitle=l;