UNPKG

wix-style-react

Version:
92 lines (74 loc) 1.55 kB
:import { -st-from: '../../Foundation/stylable/colors.st.css'; -st-named: THEME-COLOR-10, THEME-COLOR-40, THEME-COLOR-50, D80; } :import { -st-from: '../../Foundation/stylable/easing.st.css'; -st-named: speed-fast-1; } :import { -st-from: "./MonthDropdown/MonthDropdown.st.css"; -st-default: MonthDropdown; } :import { -st-from: "./YearDropdown/YearDropdown.st.css"; -st-default: YearDropdown; } :import { -st-from: "../../IconButton/IconButton.st.css"; -st-default: IconButton; } .root { -st-states: size(enum(small, medium)); display: flex; align-items: center; justify-content: center; padding: 18px 24px 0; background: value(D80); border-radius: 8px 8px 0 0; color: value(THEME-COLOR-10); } .root:size(medium) { padding: 18px 24px 0; } .root:size(small) { padding: 12px 12px 0; } .yearAndMonthWrapper{ display: flex; align-items: center; justify-content: center; } .caption { padding: 0 6px; } .monthDropdown { -st-extends: MonthDropdown; } .yearDropdown { -st-extends: YearDropdown; } .arrowLeft { -st-extends: IconButton; margin-right: auto; } .arrowRight { -st-extends: IconButton; margin-left: auto; } .arrowIcon { display: block; cursor: pointer; } :global([dir="rtl"]) .arrowIcon { transform: scaleX(-1); } :global([dir="rtl"]) .arrowLeft { margin-left: auto; margin-right: 0; } :global([dir="rtl"]) .arrowRight { margin-left: 0; margin-right: auto; } /* st-namespace-reference="../../../../src/Calendar/DatePickerHead/DatePickerHead.st.css" */