UNPKG

@nutui/nutui-react

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

60 lines (59 loc) 2.19 kB
:root, page { --nut-scale-f: 1; --nut-scale-font: var(--nut-scale-f, 1); --nut-scale-icon: var(--nut-scale-f, 1); --nut-icon-height: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important; --nut-icon-width: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important; --nut-icon-line-height: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important; } /* #ifdef harmony */ /* #endif */ /* #ifndef harmony */ /* #endif */ .nut-countup-list { /* #ifdef dynamic*/ display: flex; /* #endif */ /* #ifndef dynamic*/ display: inline-flex; /* #endif */ height: var(--nutui-countup-height, calc(32px * var(--nut-scale-f, 1))); overflow: hidden; direction: ltr; } .nut-countup-listitem { height: var(--nutui-countup-height, calc(32px * var(--nut-scale-f, 1))); overflow: hidden; user-select: none; -webkit-tap-highlight-color: transparent; } .nut-countup-listitem-number { margin: 0 var(--nutui-countup-lr-margin, 0); border-radius: var(--nutui-countup-border-radius, calc(4px * var(--nut-scale-f, 1))); color: var(--nutui-countup-color, var(--nutui-color-title, #1a1a1a)); background-color: var(--nutui-countup-bg-color, inherit); } .nut-countup-separator { display: flex; height: 80%; align-items: flex-end; color: var(--nutui-countup-separator-color, var(--nutui-color-title, #1a1a1a)); font-size: var(--nutui-countup-base-size, var(--nutui-font-size-xl, calc(18px * var(--nut-scale-font, var(--nut-scale-f, 1))))); font-weight: var(--nutui-font-weight-bold, 600); } .nut-countup-number { display: flex; flex-direction: column; align-items: center; width: var(--nutui-countup-width, auto); transition: transform 1s ease-in-out; transform: translate(0, 0); } .nut-countup-number-text { height: var(--nutui-countup-height, calc(32px * var(--nut-scale-f, 1))); line-height: var(--nutui-countup-height, calc(32px * var(--nut-scale-f, 1))); color: var(--nutui-countup-color, var(--nutui-color-title, #1a1a1a)); font-size: var(--nutui-countup-base-size, var(--nutui-font-size-xl, calc(18px * var(--nut-scale-font, var(--nut-scale-f, 1))))); font-weight: var(--nutui-font-weight-bold, 600); }