UNPKG

@nutui/nutui-react-taro

Version:

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

155 lines (154 loc) 3.03 kB
/* #ifdef harmony */ /* #endif */ /* #ifndef harmony */ /* #endif */ .nut-elevator { position: relative; display: flex; width: 100%; } .nut-elevator-list { position: relative; top: 0; display: flex; width: 100%; overflow: hidden; } .nut-elevator-list-inner { display: flex; flex-direction: column; min-height: 100%; width: 100%; background-color: #ffffff; overflow: auto; } .nut-elevator-list-item { display: flex; } .nut-elevator-list-item-sublist { display: flex; flex-direction: column; } .nut-elevator-list-item-code { display: flex; align-items: center; height: 34px; font-size: 14px; color: #888b94; font-weight: 600; } .nut-elevator-list-item-name { display: flex; align-items: center; height: 34px; font-size: 14px; color: #1a1a1a; } .nut-elevator-list-item-name-highcolor { color: #ff0f23; font-weight: 600; } .nut-elevator-list-fixed { position: absolute; top: 0; left: 0; z-index: 1; display: flex; align-items: center; width: 100%; padding: 0 36px 0 20px; height: 34px; box-sizing: border-box; box-shadow: 0 0 10px #eee; background-color: #ffffff; } .nut-elevator-list-fixed-title { font-size: 14px; color: #ff0f23; font-weight: 600; } .nut-elevator-code-current { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: #c2c4cc; box-shadow: 0 3px 3px 1px rgb(240, 240, 240); color: #ffffff; } .nut-elevator-bars { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 1; } .nut-elevator-bars-inner { display: flex; flex-direction: column; } .nut-elevator-bars-inner-item { display: inline-flex; align-items: center; justify-content: center; height: 16px; width: 16px; border-radius: 50%; margin: 1px 0; color: #888b94; font-size: 10px; cursor: pointer; } .nut-elevator-bars-inner-item-active { font-weight: 600; color: #ffffff; /* #ifndef weapp jd*/ background: linear-gradient(to right, #ff475d, #ff0f23); /* #endif */ /* #ifdef weapp jd*/ background: #ff0f23; /* #endif */ } .nut-elevator-horizontal .nut-elevator-list-item-code { width: 34px; justify-content: center; } .nut-elevator-vertical .nut-elevator-list-item { flex-direction: column; } .nut-elevator-vertical .nut-elevator-list-item-code { border-bottom: 1px solid rgba(0, 0, 0, 0.06); } .nut-elevator-vertical .nut-elevator-list-item-name { padding: 0 36px 0 20px; } .nut-elevator-vertical .nut-elevator-list-item-code { padding: 0 36px 0 20px; } [dir=rtl] .nut-elevator-list-fixed, .nut-rtl .nut-elevator-list-fixed { left: auto; right: 0; } [dir=rtl] .nut-elevator-code-current { right: auto; left: 60px; } .nut-rtl .nut-elevator-code-current { right: auto; left: 60px; } [dir=rtl] .nut-elevator-bars { right: auto; left: 16px; } .nut-rtl .nut-elevator-bars { right: auto; left: 16px; }