wix-style-react
Version:
98 lines (80 loc) • 1.71 kB
CSS
/* st-namespace-reference="../../../src/AvatarGroup/AvatarGroup.st.css" */
:import {
-st-from: '../Foundation/stylable/colors.st.css';
-st-named: D60, D20, D10-10, D80;
}
:import {
-st-from: "../Text/Text.st.css";
-st-default: Text;
}
.root {
-st-states: divider, type(enum(stretched, condensed));
text-align: center;
display: flex;
flex-direction: row;
align-items: center;
}
/* Avatar Item */
.avatarContainer {
display: flex;
flex-direction: row;
z-index: 1;
}
.root:type(stretched) .avatarContainer {
margin-right: 6px;
}
.root:type(condensed) .avatarContainer {
margin-right: -6px;
border-radius: 50%;
border: 2px solid value(D80);
}
/* More Indicator */
.moreIndicatorCircle {
-st-states: size(enum(small, medium));
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background-color: value(D80);
border: 2px solid value(D10-10);
}
.moreIndicatorText {
-st-extends: Text;
color: value(D20);
text-align: center;
user-select: none;
}
.moreIndicatorCircle:size(small) {
height: 20px;
width: 20px;
}
.moreIndicatorCircle:size(medium) {
height: 26px;
width: 26px;
}
.moreIndicatorCircle:size(small) .moreIndicatorText {
font-size: 10px;
}
.moreIndicatorCircle:size(medium) .moreIndicatorText {
font-size: 12px;
}
/* Divider */
.divider {
-st-states: size(enum(small, medium)), type(enum(stretched, condensed));
margin-right: 6px;
background-color: value(D60);
}
.divider:type(stretched) {
margin-left: 6px;
margin-right: 12px;
}
.divider:type(condensed) {
margin-left: 18px;
margin-right: 12px;
}
.divider:size(small) {
height: 24px;
}
.divider:size(medium) {
height: 30px;
}