wix-style-react
Version:
79 lines (62 loc) • 1.24 kB
CSS
/* st-namespace-reference="../../../src/ListItemSection/ListItemSection.st.css" */
:import {
-st-from: '../Foundation/stylable/colors.st.css';
-st-named: D20, D40, D60, D70, D80;
}
:import {
-st-from: "../Text/Text.st.css";
-st-default: Text;
}
.root {
-st-states: subheader, divider, whitespace, ellipsis, suffix;
background-color: value(D80);
display: flex;
padding: 12px 24px 6px 24px;
width: 100%;
box-sizing: border-box;
}
.root:subheader {
background-color: value(D70);
padding: 9px 24px;
box-shadow: inset 0 1px 0 0 value(D60), inset 0 -1px 0 0 value(D60);
}
.root:divider {
padding: 6px 24px 5px;
}
.root:whitespace {
padding: 6px 24px;
}
.title {
-st-extends: Text;
}
.title:skin(standard) {
color: value(D40);
}
.root:subheader .title:skin(standard) {
color: value(D20);
}
.titleWrapper {
width: 100%;
}
.root:suffix .titleWrapper{
width: 70%;
}
.suffixWrapper {
width: 30%;
margin-left: 6px;
text-align: right;
}
:global([dir="rtl"]) .suffixWrapper {
margin-right: 6px;
text-align: left;
}
.suffix {
text-align: right;
height: auto ;
}
:global([dir="rtl"]) .suffix {
text-align: left;
}
.root:not(:ellipsis) .suffix {
white-space: normal;
}