UNPKG

wix-style-react

Version:
109 lines (89 loc) 1.77 kB
:import { -st-from: "wix-ui-core/src/themes/backoffice/colors.st.css"; -st-named: B10, B20, B30, D55, WHITE; } :vars { borderRadius: 6px; } .root { -st-states: selected, disabled, size(enum(tiny, small, medium)), hasBackground; position: relative; display: flex; padding: 18px; flex-direction: column; align-items: center; height: 100%; border-radius: value(borderRadius); box-shadow: 0 0 0 1px value(B30) inset; cursor: pointer; box-sizing: border-box; } .root:size(tiny) { padding: 15px; } .root:selected { box-shadow: 0 0 0 2px value(B10) inset; } .root:selected:disabled { box-shadow: 0 0 0 2px value(D55) inset; } .root:selected:disabled { box-shadow: 0 0 0 2px value(D55) inset; } .root:disabled { box-shadow: 0 0 0 1px value(D55) inset; cursor: default; } .root:disabled::selectedIcon { background: value(D55); } .root:disabled::title, .root:disabled::description { color: value(D55); } .root:hasBackground { padding: 0; height: 100%; box-shadow: 0 0 0 1px value(B30); } .root:hasBackground:selected { box-shadow: 0 0 0 2px value(B10); } .root:hasBackground:selected:disabled { box-shadow: 0 0 0 2px value(D55); } .title, .description, .image { word-break: break-word; text-align: center; } .title:last-child, .description:last-child, .image:last-child { padding: 0; } .title { padding-bottom: 6px; } .image { padding-bottom: 12px; } .backgroundImage { width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: value(borderRadius); } .selectedIcon { position: absolute; top: -10px; right: -10px; background: value(B10); width: 24px; height: 24px; border-radius: 50%; color: value(WHITE); }