UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

112 lines (111 loc) 2.61 kB
.Yep-picker { display: flex; align-items: center; } .Yep-picker-item { flex: 1; text-align: center; } .Yep-picker-col { display: block; position: relative; height: 476px; overflow: hidden; width: 100%; } .Yep-picker-col-content { position: absolute; left: 0; top: 0; width: 100%; z-index: 1; padding: 204px 0; } .Yep-picker-col-item { touch-action: manipulation; text-align: center; font-size: 32px; height: 68px; line-height: 68px; color: #2E2D2D; white-space: nowrap; text-overflow: ellipsis; } .Yep-picker-col-item-selected { font-size: 36px; } .Yep-picker-col-mask { position: absolute; left: 0; top: 0; height: 100%; margin: 0 auto; width: 100%; z-index: 3; background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)), -webkit-linear-gradient(bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)); background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)), linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)); background-position: top, bottom; background-size: 100% 204px; background-repeat: no-repeat; } .Yep-picker-col-indicator { box-sizing: border-box; width: 100%; height: 68px; position: absolute; left: 0; top: 204px; z-index: 3; border-top: 1PX solid #DADADA; border-bottom: 1PX solid #DADADA; } @media (min-resolution: 2dppx) { html:not([data-scale]) .Yep-picker-col-indicator { border-top: none; } html:not([data-scale]) .Yep-picker-col-indicator::before { content: ""; position: absolute; background-color: #DADADA; display: block; z-index: 1; top: 0; right: auto; bottom: auto; left: 0; width: 100%; height: 1PX; transform-origin: 50% 50%; transform: scaleY(0.5); } } @media (min-resolution: 2dppx) and (min-resolution: 3dppx) { html:not([data-scale]) .Yep-picker-col-indicator::before { transform: scaleY(0.33); } } @media (min-resolution: 2dppx) { html:not([data-scale]) .Yep-picker-col-indicator { border-bottom: none; } html:not([data-scale]) .Yep-picker-col-indicator::after { content: ""; position: absolute; background-color: #DADADA; display: block; z-index: 1; top: auto; right: auto; bottom: 0; left: 0; width: 100%; height: 1PX; transform-origin: 50% 100%; transform: scaleY(0.5); } } @media (min-resolution: 2dppx) and (min-resolution: 3dppx) { html:not([data-scale]) .Yep-picker-col-indicator::after { transform: scaleY(0.33); } }