UNPKG

yonui-ys

Version:
755 lines (628 loc) 14.2 kB
@tab-border-color: #e9e9e9; @bg-white: #fff; @bg-grey: #e4e4e4; @font-color: #505766; @font-color-shallow: #666; @font-color-ative: #108ee9; @font-color-hover: #49a9ee; // /* ys 基础 tabs 样式 */ .ys-tabs.u-tabs { .u-tabs-tab-prev, .u-tabs-tab-next { // opacity: 0; display: none; } &.u-tabs-top, &.u-tabs-left, &.u-tabs-bottom, &.u-tabs-right { .u-tabs-tab-arrow-show { // opacity: 1; display: block; } } } .ys-tabs.u-tabs.u-tabs-upborder { .u-tabs-nav .u-tabs-tab { margin: 0; border: 0; border-radius: 0; margin-right: 0; color: @font-color-shallow; min-width: 50px; &::after { display: none; } } // 未发现竖向场景 &.u-tabs-left, &.u-tabs-right { .u-tabs-bar { border-bottom: 1px solid @tab-border-color; } .u-tabs-nav .u-tabs-tab { margin-bottom: 10px; margin-right: 0; } } &.u-tabs-left { .u-tabs-bar { border-right: 1px solid @tab-border-color; border-bottom: none; } .u-tabs-nav .u-tabs-tab { border-right: none; border-bottom: 1px solid @tab-border-color; border-radius: 4px 0 0 4px; } } &.u-tabs-right { .u-tabs-bar { border-left: 1px solid @tab-border-color; border-bottom: none; } .u-tabs-nav .u-tabs-tab { border-left: none; border-bottom: 1px solid @tab-border-color; border-radius: 0 4px 4px 0; } } } .rootTabs>.u-tabs-bar, .meta-container>.u-tabs-bar, .card-container>.u-tabs-bar { display: none; } .rootTabs>.u-tabs-content { background-color: #e6e9f1; overflow-y: auto; &>.u-tabs-tabpane { background-color: #fff; overflow: auto; } } .ys-tabs.u-tabs { color: #333 } .ys-tabs .u-tabs-bar { border-bottom: none } /* form 组件下 tabs 样式 */ .form-tab-css { .no-border>.ant-tabs-bar { border-bottom: 0; } .ant-tabs { color: #333 } .ant-tabs-bar { border-bottom: none } // .ant-tabs:not(.ant-tabs-vertical)>.ant-tabs-content { // overflow-x: hidden // } } /* menus 下 tabs 样式 */ .menu-new-tab-css { // 头部菜单 .header { // 中间页签 .ant-tabs.ant-tabs-card>.ant-tabs-bar { .ant-tabs-tab { height: 50px; line-height: 50px; padding: 0 20px; border-top: 2px solid #fff; &:hover { color: #ee2223; } } .ant-tabs-tab-active { border-radius: 0; transform: translateZ(0); color: #333; border-bottom: 1px solid #fff; border-left: none; border-right: none; padding: 0 20px; } .ant-tabs-nav-container { height: 49px; background: #fff; } .ant-tabs-extra-content { width: 40px; height: 49px; line-height: 50px; color: #ee2223; padding-left: 10px; background-color: #fff; right: 5px; margin-right: 10px; } .ant-tabs-tab-next-icon, .ant-tabs-tab-prev-icon { top: 54%; } .ant-tabs-tab-next.ant-tabs-tab-arrow-show, .ant-tabs-tab-prev.ant-tabs-tab-arrow-show { width: 30px; height: 50px; background-color: #fff; } .ant-tabs-tab-prev.ant-tabs-tab-arrow-show { width: 40px; } } } } /* modal 组件下 tabs 样式 */ .modal-tab-css { .u-tabs-nav-scroll { margin-left: -1px; } } /* billing 类 tabs 样式 */ .billing-tab-css { .infor-coment-tab-css { .ant-tabs-bar { margin-bottom: 0; } .ant-tabs-tab { margin-left: 30px; margin-top: 10px; } /*结算合计*/ .ant-modal { .ant-tabs-tab-next-icon:before, .ant-tabs-tab-prev-icon:before { color: #999; } .ant-tabs-tab-btn-disabled { .ant-tabs-tab-next-icon:before, .ant-tabs-tab-prev-icon:before { color: #ccc; } } } } .left-content-tab-css { .ant-tabs-ink-bar { background: none; } .ant-tabs-nav-scroll { margin-left: 0px; } .ant-tabs-tab-prev-icon:before, .ant-tabs-tab-next-icon:before { color: #505766; } // ########### 以下 @祝梓毅 临时添加,待处理BUG ########### .ant-tabs:not(.ant-tabs-vertical)>.ant-tabs-content { overflow-x: visible; } /* 弹窗tab页签 */ .ant-modal-content { .ant-tabs-bar { border-bottom: 1px solid #e4e4e4; } .ant-tabs-nav .ant-tabs-tab { padding: 10px 0; font-size: 16px; color: #333; margin-right: 10px; } .ant-tabs-nav .ant-tabs-tab:hover { color: #ee2223; } .ant-tabs-nav .ant-tabs-tab-active:after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; border-radius: 2px; -webkit-transform: scaleX(1); transform: scaleX(1); transition: transform 1s; background: #ee2223; } } .ant-tabs-nav-wrap { margin-bottom: 0; } } /* billing 节点下 modal 中 tabs 样式 */ .modal-tab-css { .ant-modal { .ant-modal-content .ant-tabs-nav .ant-tabs-tab-active:after { left: 10%; width: 80%; } } /* 弹窗tab页签 */ .ant-modal-content { .ant-tabs-bar { border-bottom: 1px solid #e4e4e4; } .ant-tabs-nav .ant-tabs-tab { padding: 10px 0; font-size: 16px; color: #333; margin-right: 10px; } .ant-tabs-nav .ant-tabs-tab:hover { color: #ee2223; } .ant-tabs-nav .ant-tabs-tab-active:after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; border-radius: 2px; -webkit-transform: scaleX(1); transform: scaleX(1); transition: transform 1s; background: #ee2223; } } .ant-tabs-nav .ant-tabs-tab-active { font-size: 16px; color: #ee2223 !important; } .ant-tabs-nav-wrap { margin-bottom: 0; } } .right-content-tab-css { /* 支付方式 */ .ant-tabs-tab-next { right: 0; } .ant-tabs:not(.ant-tabs-vertical)>.ant-tabs-content { overflow-y: initial; } .ant-modal-body { .ant-tabs.ant-tabs-top.ant-tabs-line.ant-tabs-no-animation { float: left; height: 400px; } } } } /* voucherList 类 tabs 样式 */ .voucherList-tab-css { /* 触屏适配 1024 6.8 */ @media screen and (max-width:1024px) { /* 1024 右侧滚动导航*/ .ant-tabs-vertical>.ant-tabs-bar .ant-tabs-nav-container.ant-tabs-nav-container-scrolling { padding: 34px 0px 36px 0px; } .ant-tabs-vertical>.ant-tabs-bar .ant-tabs-tab-prev { height: 34px; top: 0px; background-size: 100px 1px; } .ant-tabs-vertical>.ant-tabs-bar .ant-tabs-tab-next { bottom: 0px; height: 36px; background-size: 100px 1px; } .ant-tabs-tab-btn-disabled { .ant-tabs-tab-prev-icon:before, .ant-tabs-tab-next-icon:before { color: #ccc; } } .ant-tabs-nav-scroll { white-space: normal; padding-right: 40px; font-size: 14px; line-height: 1.5; box-sizing: border-box; position: relative; white-space: nowrap; margin-bottom: -1px; transition: padding .45s; zoom: 1; } } .ant-tabs-nav .ant-tabs-tab-active { font-size: 16px; color: #ee2223 !important; } .ant-tabs-tab-active { .firstTree_zk { color: #ee2223; } } .ant-modal { .ant-modal-content .ant-tabs-nav .ant-tabs-tab-active:after { left: 10%; width: 80%; } } } /* home 下 tabs 样式 */ .home-new-tab-css { .ant-tabs-nav .ant-tabs-tab:hover { color: #505766 } .ant-tabs-nav .ant-tabs-tab { color: #666 } .ant-tabs-ink-bar { background: #fecb2f; height: 3px; } .ant-tabs-ink-bar { background-color: #ee2223; } .ant-layout-content>.ant-tabs-content.ant-tabs-content-no-animated { margin-left: 10px; } .rootTabs>.ant-tabs-content { background-color: #f1f1f1; } } .ys-tabs.u-tabs { .viewCell.viewSetting { .yon-row { .col-float { margin-top: 0; } } // 单独处理元素 &[id='ed_bom|bomType'] { height: @base-input-height; } } .u-tabs-content { [id^='org_center_card'] { .col-float { margin-top: 10px; } } .height-100 { .viewCell { h1 { font-size: 14px; font-weight: bolder; margin-bottom: 10px; margin-top: 0px; color: #505766; padding-left: 7px; } } } } } .line-tabs.m-b-70 { margin-bottom: 70px; +.group-container { margin-top: -60px; } } // 特定情况下不展示tabs-bar .rootTabs>.u-tabs-bar, .meta-container>.u-tabs-bar, .card-container>.u-tabs-bar { display: none; } .line-tabs-menu-container { +.card-container { .u-tabs-tabpane { overflow-x: hidden; } } } .ys-tabs.u-tabs { &.u-tabs-upborder { .u-tabs-nav .u-tabs-tab { display: inline-block; padding: 0 16px !important; font-size: 12px; outline: none; line-height: 30px; font-weight: normal; background: #f3f5f9; border-bottom: 2px solid #e4e4e4; &.u-tabs-tab-active { color: #505766; background: #fff; transform: translateZ(0); border-left: 1px solid #e4e4e4; border-right: 1px solid #e4e4e4; border-top: 2px solid #505766; border-bottom: 1px solid #fff; border-radius: 0; margin-top: -1px; //fix: active 的页签,上边框样式不对 line-height: 31px; } } .u-tabs-content { margin-top: -1px; // id 元素单独设置 div[id="ed_bom|ed_bom_tab_byproduct"] .btn-toolbar-bottom { margin-top: 0; } .u-tabs-tabpane.u-tabs-tabpane-active { overflow-x: hidden; } } > .u-tabs-bar > .u-tabs-nav-container { .u-tabs-nav-wrap { height: 32px; } .u-tabs-nav-scroll { overflow: visible; white-space: nowrap; background: #f3f5f9; height: 32px; border: 1px solid #e9e9e9; padding: 0px 0 2px 0; .u-tabs-nav { height: 32px; } } } } } //象屿专属化客户出现两个滚动条问题调整 .u-tabs-content .container-edit-mode{ .ys-tabs.u-tabs.u-tabs-upborder{ .u-tabs-content .u-tabs-tabpane.u-tabs-tabpane-active{ overflow-y: hidden; } } } /*盘点 详情-扫码*/ .line-tabs .ys-tabs.u-tabs-top .u-tabs-content .u-tabs-tabpane { margin-top: 0px !important; } .ys-tabs.u-tabs.u-tabs-left { .u-tabs-nav-scroll{ width: auto; } } // 销售订单 发货单 5个单据 .voucher_orderlist, .voucher_deliverylist, .voucher_salereturnlist, .voucher_saleinvoicelist, .voucher_orderchangelist { div[id='voucher_order|voucher_order_scmsa_body_attach_base'] { padding-top: 20px; } } // Tabs 组件样式:方案二 .line-tabs-menu-container { display: flex !important; height: 40px; .tab-menu { display: flex; flex: 1; border-bottom: none; padding-left: 20px; .u-tabs-bar .u-tabs-nav-wrap .u-tabs-nav-scroll { background: unset; border: unset; height: 40px; } .tab-top-right { margin-top: 0; } .u-tabs-content-no-animated { height: inherit; } .u-tabs-tab-prev, .u-tabs-tab-next { line-height: 40px; &.u-tabs-tab-arrow-show { opacity: 1; } // 避免透明状态下遮挡 &:not(.u-tabs-tab-arrow-show) { margin-top: -40px; } span { position: absolute; } } .u-tabs-bar .u-tabs-nav-wrap .u-tabs-nav-scroll .u-tabs-nav .u-tabs-tab { border: none; background: #fff; padding: 0px 12px; font-size: 14px; cursor: pointer; } .u-tabs-nav .u-tabs-ink-bar { display: none !important; } .u-tabs-top .u-tabs-nav-wrap { background: #fff; } } .u-tabs-tab { min-width: 28px; max-width: 250px; overflow: hidden; word-break: break-word; text-overflow: ellipsis; line-height: 40px !important; } .u-tabs-nav { .u-tabs-tab.u-tabs-tab-active { color: #f53c32 !important; margin-top: 0 !important; &:before { content: ""; position: absolute; background-color: #505766; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 4px solid #505766; background: none; left: 50%; margin-top: 8px!important; bottom: 0; top: unset; margin-left: -5px; } } } .tab-menu + .tab-top-right { margin-top: 6px; } .tab-menu.u-tabs-top .u-tabs-bar { margin-bottom: 0 !important; border-bottom: none; } .u-tabs-content-no-animated { display: none; } & + .ys-tabs { border-top: 1px solid #505766; } } .ustock { .line-tabs-menu-container .tab-top-right>.btn-toolbar-bottom .col-auto >div { display: flex; } } // Tabs 组件样式:方案一 .card-tabs { margin-top: 0; .tab-list { color: #333; .u-tabs-bar { margin-bottom: 6px; .u-tabs-nav-container { background: #fff; } } } .u-tabs-tab.u-tabs-tab-active { color: rgb(80, 87, 102); background: rgb(255, 255, 255); transform: translateZ(0px); border-width: 2px 1px 1px; border-style: solid; border-color: rgb(80, 87, 102) rgb(228, 228, 228) rgb(255, 255, 255); border-radius: 0px; margin-top: -1px; line-height: 30px; } .u-tabs-tab-prev, .u-tabs-tab-next { &.u-tabs-tab-arrow-show { opacity: 1; } } } .u-tabs { max-width: unset !important; }