UNPKG

@jdcfe/yep-react

Version:

一套移动端的React组件库

174 lines (173 loc) 4.66 kB
.Yep-tabs { box-sizing: border-box; display: flex; flex: 1; position: relative; overflow: hidden; height: 100%; width: 100%; } .Yep-tabs * { box-sizing: border-box; } .Yep-tabs-content-wrap { display: flex; flex: 1; width: 100%; height: 100%; } .Yep-tabs-content-wrap-animated { transition: transform 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1), top 0.3s cubic-bezier(0.35, 0, 0.25, 1); } .Yep-tabs-pane-wrap { width: 100%; flex-shrink: 0; overflow-y: auto; } .Yep-tabs-tab-bar-wrap { flex-shrink: 0; } .Yep-tabs-horizontal .Yep-tabs-pane-wrap-active { height: auto; } .Yep-tabs-horizontal .Yep-tabs-pane-wrap-inactive { height: 0; overflow: visible; } .Yep-tabs-vertical .Yep-tabs-content-wrap { flex-direction: column; } .Yep-tabs-vertical .Yep-tabs-tab-bar-wrap { height: 100%; } .Yep-tabs-vertical .Yep-tabs-pane-wrap { height: 100%; } .Yep-tabs-vertical .Yep-tabs-pane-wrap-active { overflow: auto; } .Yep-tabs-vertical .Yep-tabs-pane-wrap-inactive { overflow: hidden; } .Yep-tabs-top, .Yep-tabs-bottom { flex-direction: column; } .Yep-tabs-left, .Yep-tabs-right { flex-direction: row; } .Yep-tabs-default-bar { position: relative; display: flex; flex-shrink: 0; flex-direction: row; width: 100%; overflow: visible; z-index: 1; } .Yep-tabs-default-bar-tab { position: relative; display: flex; flex-shrink: 0; justify-content: center; align-items: center; font-size: 28px; height: 88px; line-height: 88px; } .Yep-tabs-default-bar-tab .Yep-badge .Yep-badge-text { top: -26px; transform: translateX(-10px); } .Yep-tabs-default-bar-tab .Yep-badge .Yep-badge-dot { top: -12px; transform: translateX(0); } .Yep-tabs-default-bar-tab-active { color: #F0250F; } .Yep-tabs-default-bar-underline { position: absolute; display: flex; justify-content: center; border: none; } .Yep-tabs-default-bar-underline-bar { width: 52px; height: 6px; background-image: linear-gradient(90deg, #f5503a 0%, #fad1cb 100%); } .Yep-tabs-default-bar-animated .Yep-tabs-default-bar-content { transition: transform 0.3s cubic-bezier(0.35, 0, 0.25, 1); will-change: transform; } .Yep-tabs-default-bar-animated .Yep-tabs-default-bar-underline { transition: top 0.3s cubic-bezier(0.35, 0, 0.25, 1), left 0.3s cubic-bezier(0.35, 0, 0.25, 1), color 0.3s cubic-bezier(0.35, 0, 0.25, 1), width 0.3s cubic-bezier(0.35, 0, 0.25, 1); will-change: top, left, width, color; } .Yep-tabs-default-bar-top, .Yep-tabs-default-bar-bottom { flex-direction: row; } .Yep-tabs-default-bar-top .Yep-tabs-default-bar-content, .Yep-tabs-default-bar-bottom .Yep-tabs-default-bar-content { display: flex; width: 100%; flex-direction: row; } .Yep-tabs-default-bar-top .Yep-tabs-default-bar-prevpage, .Yep-tabs-default-bar-bottom .Yep-tabs-default-bar-prevpage { pointer-events: none; position: absolute; top: 0; display: block; width: 118px; height: 100%; content: " "; left: 0; background: linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0)); } .Yep-tabs-default-bar-top .Yep-tabs-default-bar-nextpage, .Yep-tabs-default-bar-bottom .Yep-tabs-default-bar-nextpage { pointer-events: none; position: absolute; top: 0; display: block; width: 118px; height: 100%; content: " "; right: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(255, 255, 255)); } .Yep-tabs-default-bar-top .Yep-tabs-default-bar-tab, .Yep-tabs-default-bar-bottom .Yep-tabs-default-bar-tab { padding: 8px 0; } .Yep-tabs-default-bar-top .Yep-tabs-default-bar-underline, .Yep-tabs-default-bar-bottom .Yep-tabs-default-bar-underline { bottom: 12px; } .Yep-tabs-default-bar-left, .Yep-tabs-default-bar-right { flex-direction: column; } .Yep-tabs-default-bar-left .Yep-tabs-default-bar-content, .Yep-tabs-default-bar-right .Yep-tabs-default-bar-content { display: flex; height: 100%; flex-direction: column; } .Yep-tabs-default-bar-left .Yep-tabs-default-bar-tab, .Yep-tabs-default-bar-right .Yep-tabs-default-bar-tab { padding: 0 8px; } .Yep-tabs-default-bar-left .Yep-tabs-default-bar-underline { display: flex; flex-direction: column; justify-content: center; border: none; right: 0; } .Yep-tabs-default-bar-left .Yep-tabs-default-bar-underline-bar { width: 6px; height: 52px; background-image: linear-gradient(0deg, #f5503a 0%, #fad1cb 100%); } .Yep-tabs-default-bar-right .Yep-tabs-default-bar-underline { left: 0; } .Yep-tabs-default-bar-right .Yep-tabs-default-bar-underline-bar { width: 6px; height: 52px; background-image: linear-gradient(0deg, #f5503a 0%, #fad1cb 100%); }