UNPKG

zent

Version:

一套前端设计语言和基于React的实现

660 lines (659 loc) 25.5 kB
/* styles begin */ /* styles end */ .zent-btn { color: #333; color: var(--theme-default-color, #333); background-color: rgba(0, 0, 0, 0.06); background-color: rgba(var(--theme-rgb-shadow-bg, 0, 0, 0), 0.06); border-color: rgba(0, 0, 0, 0.06); border-color: rgba(var(--theme-rgb-shadow-bg, 0, 0, 0), 0.06); display: inline-block; height: 32px; line-height: 30px; font-size: 14px; padding: 0 16px; border-radius: 2px; font-family: inherit; border-width: 1px; border-style: solid; text-align: center; vertical-align: middle; box-sizing: border-box; cursor: pointer; transition: all 0.3s; background-clip: padding-box; } .zent-btn:focus { outline: none; } .zent-btn:link, .zent-btn:visited, .zent-btn:focus { color: #333; color: var(--theme-default-color, #333); text-decoration: none; } .zent-btn:hover { background-color: rgba(0, 0, 0, 0.03); background-color: rgba(var(--theme-rgb-shadow-bg, 0, 0, 0), 0.03); border-color: rgba(0, 0, 0, 0.03); border-color: rgba(var(--theme-rgb-shadow-bg, 0, 0, 0), 0.03); text-decoration: none; } .zent-btn:active { color: #333; color: var(--theme-default-color, #333); background-color: rgba(0, 0, 0, 0.09); background-color: rgba(var(--theme-rgb-shadow-bg, 0, 0, 0), 0.09); text-decoration: none; } .zent-btn.zent-btn-loading.zent-btn-icon { background-color: transparent; } .zent-btn.zent-btn-loading.zent-btn-text { background-color: rgba(21, 91, 212, 0.03); background-color: rgba(var(--theme-rgb-primary-bg, var(--theme-rgb-primary-4, 21, 91, 212)), 0.03); } .zent-btn[type=button], .zent-btn[type=reset], .zent-btn[type=submit] { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .zent-btn + .zent-btn, .zent-btn-disabled-wrapper + .zent-btn, .zent-btn + .zent-btn-disabled-wrapper, .zent-btn-disabled-wrapper + .zent-btn-disabled-wrapper { margin-left: 16px; } .zent-btn-large { padding: 0 24px; height: 40px; line-height: 38px; font-size: 16px; } .zent-btn-large.zent-btn-icon { height: 32px; width: 32px; font-size: 24px; } .zent-btn-small { height: 24px; line-height: 22px; padding: 0 8px; font-size: 12px; } .zent-btn-small.zent-btn-icon { height: 24px; width: 24px; font-size: 16px; } .zent-btn-block { display: block; width: 100%; padding: 0; } .zent-btn-primary { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #155bd4; background-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); border-color: #155bd4; border-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); } .zent-btn-primary:link, .zent-btn-primary:visited, .zent-btn-primary:focus { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-primary:hover { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #356fd4; background-color: var(--theme-primary-hover-bg, var(--theme-primary-5, #356fd4)); border-color: #356fd4; border-color: var(--theme-primary-hover-bg, var(--theme-primary-5, #356fd4)); } .zent-btn-primary:active { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #114bae; background-color: var(--theme-primary-active-bg, var(--theme-primary-3, #114bae)); border-color: #114bae; border-color: var(--theme-primary-active-bg, var(--theme-primary-3, #114bae)); } .zent-btn-primary.zent-btn-loading:hover, .zent-btn-primary.zent-btn-loading:active { background-color: #155bd4; background-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); border-color: #155bd4; border-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); } .zent-btn-primary.zent-btn-loading::after { border-top-color: #fff; border-top-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-right-color: #fff; border-right-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-bottom-color: #114bae; border-bottom-color: var(--theme-primary-active-bg, var(--theme-primary-3, #114bae)); border-left-color: #114bae; border-left-color: var(--theme-primary-active-bg, var(--theme-primary-3, #114bae)); } .zent-btn-primary-outline { color: #155bd4; color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); border-color: #155bd4; border-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-primary-outline:link, .zent-btn-primary-outline:visited, .zent-btn-primary-outline:focus { color: #155bd4; color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); } .zent-btn-primary-outline:hover { color: #356fd4; color: var(--theme-primary-hover-bg, var(--theme-primary-5, #356fd4)); border-color: #356fd4; border-color: var(--theme-primary-hover-bg, var(--theme-primary-5, #356fd4)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-primary-outline:active { color: #333; color: var(--theme-title-color, var(--theme-stroke-1, #333)); background-color: #e0e0e0; background-color: var(--theme-default-border-color, var(--theme-stroke-10, #e0e0e0)); border-color: #e0e0e0; border-color: var(--theme-default-border-color, var(--theme-stroke-5, #e0e0e0)); } .zent-btn-primary-outline.zent-btn-loading:hover, .zent-btn-primary-outline.zent-btn-loading:active { border-color: #155bd4; border-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-primary-outline.zent-btn-loading::after { border-top-color: #155bd4; border-top-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); border-right-color: #155bd4; border-right-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); border-bottom-color: #e6efff; border-bottom-color: var(--theme-default-selected-bg, var(--theme-primary-8, #e6efff)); border-left-color: #e6efff; border-left-color: var(--theme-default-selected-bg, var(--theme-primary-8, #e6efff)); } .zent-btn-error, .zent-btn-danger { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #d42f15; background-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); border-color: #d42f15; border-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); } .zent-btn-error:link, .zent-btn-error:visited, .zent-btn-error:focus, .zent-btn-danger:link, .zent-btn-danger:visited, .zent-btn-danger:focus { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-error:hover, .zent-btn-danger:hover { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #d42f15; background-color: var(--theme-danger-color, var(--theme-error-3, #d42f15)); border-color: #d42f15; border-color: var(--theme-danger-color, var(--theme-error-3, #d42f15)); } .zent-btn-error:active, .zent-btn-danger:active { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #d42f15; background-color: var(--theme-danger-color, var(--theme-error-1, #d42f15)); border-color: #d42f15; border-color: var(--theme-danger-color, var(--theme-error-1, #d42f15)); } .zent-btn-error.zent-btn-loading:hover, .zent-btn-error.zent-btn-loading:active, .zent-btn-danger.zent-btn-loading:hover, .zent-btn-danger.zent-btn-loading:active { background-color: #d42f15; background-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); border-color: #d42f15; border-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); } .zent-btn-error.zent-btn-loading::after, .zent-btn-danger.zent-btn-loading::after { border-top-color: #fff; border-top-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-right-color: #fff; border-right-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-bottom-color: #d42f15; border-bottom-color: var(--theme-danger-color, var(--theme-error-1, #d42f15)); border-left-color: #d42f15; border-left-color: var(--theme-danger-color, var(--theme-error-1, #d42f15)); } .zent-btn-error-outline, .zent-btn-danger-outline { color: #d42f15; color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); border-color: #d42f15; border-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-error-outline:link, .zent-btn-error-outline:visited, .zent-btn-error-outline:focus, .zent-btn-danger-outline:link, .zent-btn-danger-outline:visited, .zent-btn-danger-outline:focus { color: #d42f15; color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); } .zent-btn-error-outline:hover, .zent-btn-danger-outline:hover { color: #d42f15; color: var(--theme-danger-color, var(--theme-error-3, #d42f15)); border-color: #d42f15; border-color: var(--theme-danger-color, var(--theme-error-3, #d42f15)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-error-outline:active, .zent-btn-danger-outline:active { color: #333; color: var(--theme-title-color, var(--theme-stroke-1, #333)); background-color: #e0e0e0; background-color: var(--theme-default-border-color, var(--theme-stroke-10, #e0e0e0)); border-color: #e0e0e0; border-color: var(--theme-default-border-color, var(--theme-stroke-5, #e0e0e0)); } .zent-btn-error-outline.zent-btn-loading:hover, .zent-btn-error-outline.zent-btn-loading:active, .zent-btn-danger-outline.zent-btn-loading:hover, .zent-btn-danger-outline.zent-btn-loading:active { border-color: #d42f15; border-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-error-outline.zent-btn-loading::after, .zent-btn-danger-outline.zent-btn-loading::after { border-top-color: #d42f15; border-top-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); border-right-color: #d42f15; border-right-color: var(--theme-danger-color, var(--theme-error-2, #d42f15)); border-bottom-color: #ffe9e6; border-bottom-color: var(--theme-danger-bg, var(--theme-error-5, #ffe9e6)); border-left-color: #ffe9e6; border-left-color: var(--theme-danger-bg, var(--theme-error-5, #ffe9e6)); } .zent-btn-success { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #45a110; background-color: var(--theme-success-color, var(--theme-success-2, #45a110)); border-color: #45a110; border-color: var(--theme-success-color, var(--theme-success-2, #45a110)); } .zent-btn-success:link, .zent-btn-success:visited, .zent-btn-success:focus { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-success:hover { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #45a110; background-color: var(--theme-success-color, var(--theme-success-3, #45a110)); border-color: #45a110; border-color: var(--theme-success-color, var(--theme-success-3, #45a110)); } .zent-btn-success:active { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #45a110; background-color: var(--theme-success-color, var(--theme-success-1, #45a110)); border-color: #45a110; border-color: var(--theme-success-color, var(--theme-success-1, #45a110)); } .zent-btn-success.zent-btn-loading:hover, .zent-btn-success.zent-btn-loading:active { background-color: #45a110; background-color: var(--theme-success-color, var(--theme-success-2, #45a110)); border-color: #45a110; border-color: var(--theme-success-color, var(--theme-success-2, #45a110)); } .zent-btn-success.zent-btn-loading::after { border-top-color: #fff; border-top-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-right-color: #fff; border-right-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-bottom-color: #45a110; border-bottom-color: var(--theme-success-color, var(--theme-success-1, #45a110)); border-left-color: #45a110; border-left-color: var(--theme-success-color, var(--theme-success-1, #45a110)); } .zent-btn-success-outline { color: #45a110; color: var(--theme-success-color, var(--theme-success-2, #45a110)); border-color: #45a110; border-color: var(--theme-success-color, var(--theme-success-2, #45a110)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-success-outline:link, .zent-btn-success-outline:visited, .zent-btn-success-outline:focus { color: #45a110; color: var(--theme-success-color, var(--theme-success-2, #45a110)); } .zent-btn-success-outline:hover { color: #45a110; color: var(--theme-success-color, var(--theme-success-3, #45a110)); border-color: #45a110; border-color: var(--theme-success-color, var(--theme-success-3, #45a110)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-success-outline:active { color: #333; color: var(--theme-title-color, var(--theme-stroke-1, #333)); background-color: #e0e0e0; background-color: var(--theme-default-border-color, var(--theme-stroke-10, #e0e0e0)); border-color: #e0e0e0; border-color: var(--theme-default-border-color, var(--theme-stroke-5, #e0e0e0)); } .zent-btn-success-outline.zent-btn-loading:hover, .zent-btn-success-outline.zent-btn-loading:active { border-color: #45a110; border-color: var(--theme-success-color, var(--theme-success-2, #45a110)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-success-outline.zent-btn-loading::after { border-top-color: #45a110; border-top-color: var(--theme-success-color, var(--theme-success-2, #45a110)); border-right-color: #45a110; border-right-color: var(--theme-success-color, var(--theme-success-2, #45a110)); border-bottom-color: #efffe6; border-bottom-color: var(--theme-success-bg, var(--theme-success-5, #efffe6)); border-left-color: #efffe6; border-left-color: var(--theme-success-bg, var(--theme-success-5, #efffe6)); } .zent-btn-warning { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #ed6a18; background-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); border-color: #ed6a18; border-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); } .zent-btn-warning:link, .zent-btn-warning:visited, .zent-btn-warning:focus { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-warning:hover { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #ed6a18; background-color: var(--theme-warning-color, var(--theme-warn-3, #ed6a18)); border-color: #ed6a18; border-color: var(--theme-warning-color, var(--theme-warn-3, #ed6a18)); } .zent-btn-warning:active { color: #fff; color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); background-color: #ed6a18; background-color: var(--theme-warning-color, var(--theme-warn-1, #ed6a18)); border-color: #ed6a18; border-color: var(--theme-warning-color, var(--theme-warn-1, #ed6a18)); } .zent-btn-warning.zent-btn-loading:hover, .zent-btn-warning.zent-btn-loading:active { background-color: #ed6a18; background-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); border-color: #ed6a18; border-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); } .zent-btn-warning.zent-btn-loading::after { border-top-color: #fff; border-top-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-right-color: #fff; border-right-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); border-bottom-color: #ed6a18; border-bottom-color: var(--theme-warning-color, var(--theme-warn-1, #ed6a18)); border-left-color: #ed6a18; border-left-color: var(--theme-warning-color, var(--theme-warn-1, #ed6a18)); } .zent-btn-warning-outline { color: #ed6a18; color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); border-color: #ed6a18; border-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-warning-outline:link, .zent-btn-warning-outline:visited, .zent-btn-warning-outline:focus { color: #ed6a18; color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); } .zent-btn-warning-outline:hover { color: #ed6a18; color: var(--theme-warning-color, var(--theme-warn-3, #ed6a18)); border-color: #ed6a18; border-color: var(--theme-warning-color, var(--theme-warn-3, #ed6a18)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-warning-outline:active { color: #333; color: var(--theme-title-color, var(--theme-stroke-1, #333)); background-color: #e0e0e0; background-color: var(--theme-default-border-color, var(--theme-stroke-10, #e0e0e0)); border-color: #e0e0e0; border-color: var(--theme-default-border-color, var(--theme-stroke-5, #e0e0e0)); } .zent-btn-warning-outline.zent-btn-loading:hover, .zent-btn-warning-outline.zent-btn-loading:active { border-color: #ed6a18; border-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); background-color: #fff; background-color: var(--theme-section-bg, var(--theme-stroke-9, #fff)); } .zent-btn-warning-outline.zent-btn-loading::after { border-top-color: #ed6a18; border-top-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); border-right-color: #ed6a18; border-right-color: var(--theme-warning-color, var(--theme-warn-2, #ed6a18)); border-bottom-color: #ffefe6; border-bottom-color: var(--theme-warning-bg, var(--theme-warn-5, #ffefe6)); border-left-color: #ffefe6; border-left-color: var(--theme-warning-bg, var(--theme-warn-5, #ffefe6)); } .zent-btn-disabled-wrapper { cursor: not-allowed; } .zent-btn-disabled, .zent-btn-disabled[disabled] { color: #ccc; color: var(--theme-disabled-color, var(--theme-stroke-4, #ccc)); background-color: #f7f7f7; background-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); border-color: #f7f7f7; border-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); cursor: not-allowed; } .zent-btn-disabled:link, .zent-btn-disabled:visited, .zent-btn-disabled:focus, .zent-btn-disabled[disabled]:link, .zent-btn-disabled[disabled]:visited, .zent-btn-disabled[disabled]:focus { color: #ccc; color: var(--theme-disabled-color, var(--theme-stroke-4, #ccc)); } .zent-btn-disabled:hover, .zent-btn-disabled[disabled]:hover { color: #ccc; color: var(--theme-disabled-color, var(--theme-stroke-4, #ccc)); background-color: #f7f7f7; background-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); border-color: #f7f7f7; border-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); } .zent-btn-disabled:active, .zent-btn-disabled[disabled]:active { color: #ccc; color: var(--theme-disabled-color, var(--theme-stroke-4, #ccc)); background-color: #f7f7f7; background-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); border-color: #f7f7f7; border-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); } .zent-btn-disabled-wrapper .zent-btn-disabled, .zent-btn-disabled-wrapper .zent-btn-disabled[disabled] { pointer-events: none; } .zent-btn-text { background-color: rgba(21, 91, 212, 0.03); background-color: var(--theme-text-button-bg, rgba(21, 91, 212, 0.03)); color: #155bd4; color: var(--theme-text-button-color, #155bd4); font-size: 12px; height: 24px; line-height: 24px; padding: 0 8px; border: 0; } .zent-btn-text:link, .zent-btn-text:visited, .zent-btn-text:hover, .zent-btn-text:active, .zent-btn-text:focus { border: 0; color: #155bd4; color: var(--theme-text-button-color, #155bd4); } .zent-btn-text:hover { background-color: rgba(21, 91, 212, 0.06); background-color: var(--theme-text-button-hover-bg, rgba(21, 91, 212, 0.06)); } .zent-btn-text:active { background-color: rgba(21, 91, 212, 0.09); background-color: var(--theme-text-button-active-bg, rgba(21, 91, 212, 0.09)); } .zent-btn-icon { height: 28px; width: 28px; font-size: 20px; color: #333; background-color: transparent; padding: 0; line-height: 24px; text-align: center; border-radius: 2px; border: 0; } .zent-btn-icon:link, .zent-btn-icon:visited, .zent-btn-icon:hover, .zent-btn-icon:active, .zent-btn-icon:focus { color: #333; } .zent-btn-icon:hover { background-color: rgba(0, 0, 0, 0.05); } .zent-btn-icon:active { background-color: rgba(0, 0, 0, 0.1); } .zent-btn-icon i.zenticon { margin: 0; } .zent-btn-icon i.zenticon:last-child { margin: 0; } .zent-btn-icon i.zenticon:first-child { margin: 0; } .zent-btn-loading { position: relative; color: transparent; cursor: not-allowed; } .zent-btn-loading:link, .zent-btn-loading:visited, .zent-btn-loading:focus, .zent-btn-loading:hover, .zent-btn-loading:active { color: transparent; } .zent-btn-loading::before, .zent-btn-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin-left: -8px; margin-top: -8px; border: 2px solid; border-radius: 8px; box-sizing: border-box; } .zent-btn-loading::after { border-top-color: #333; border-top-color: var(--theme-title-color, var(--theme-stroke-1, #333)); border-right-color: #333; border-right-color: var(--theme-title-color, var(--theme-stroke-1, #333)); border-bottom-color: #f7f7f7; border-bottom-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); border-left-color: #f7f7f7; border-left-color: var(--theme-body-bg, var(--theme-stroke-8, #f7f7f7)); animation: zent-ani-spin 0.6s linear; animation-iteration-count: infinite; } .zent-btn-loading.zent-btn-small::after, .zent-btn-loading.zent-btn-text::after { width: 12px; height: 12px; margin-left: -6px; margin-top: -6px; border-radius: 6px; } .zent-btn-loading.zent-btn-text::after { border-top-color: #155bd4; border-top-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); border-right-color: #155bd4; border-right-color: var(--theme-primary-bg, var(--theme-primary-4, #155bd4)); border-bottom-color: #e6efff; border-bottom-color: var(--theme-default-selected-bg, #e6efff); border-left-color: #e6efff; border-left-color: var(--theme-default-selected-bg, #e6efff); } .zent-btn-loading.zent-btn-icon::after { border-top-color: #333; border-top-color: var(--theme-title-color, var(--theme-stroke-1, #333)); border-right-color: #333; border-right-color: var(--theme-title-color, var(--theme-stroke-1, #333)); } .zent-btn.zent-btn-border-transparent { border-color: transparent; } .zent-btn.zent-btn-border-transparent:hover { border-color: transparent; } .zent-btn.zent-btn-border-transparent:active { border-color: transparent; } .zent-btn:not(.zent-btn-icon, .zent-btn-text) .zenticon { font-size: 20px; vertical-align: -2px; } .zent-btn .zenticon:first-child { margin-right: 4px; } .zent-btn .zenticon:last-child { margin-left: 4px; } .zent-btn-group { display: inline-block; } .zent-btn-group .zent-btn + .zent-btn, .zent-btn-group .zent-btn-disabled-wrapper + .zent-btn, .zent-btn-group .zent-btn + .zent-btn-disabled-wrapper, .zent-btn-group .zent-btn-disabled-wrapper + .zent-btn-disabled-wrapper { margin-left: 1px; } .zent-btn-group .zent-btn { position: relative; border-radius: 0; } .zent-btn-group .zent-btn:hover { z-index: 2; } .zent-btn-group .zent-btn:first-child { border-radius: 2px 0 0 2px; } .zent-btn-group .zent-btn:last-child { border-radius: 0 2px 2px 0; } .zent-btn-group .zent-btn-primary:not(:last-child) { border-right-color: #356fd4; border-right-color: var(--theme-primary-hover-bg, var(--theme-primary-5, #356fd4)); } .zent-btn-group .zent-btn-primary:not(:first-child) { border-left-color: #356fd4; border-left-color: var(--theme-primary-hover-bg, var(--theme-primary-5, #356fd4)); } .zent-btn-group .zent-btn-error:not(:last-child), .zent-btn-group .zent-btn-danger:not(:last-child) { border-right-color: #d42f15; border-right-color: var(--theme-danger-color, var(--theme-error-3, #d42f15)); } .zent-btn-group .zent-btn-error:not(:first-child), .zent-btn-group .zent-btn-danger:not(:first-child) { border-left-color: #d42f15; border-left-color: var(--theme-danger-color, var(--theme-error-3, #d42f15)); } .zent-btn-group .zent-btn-success:not(:last-child) { border-right-color: #45a110; border-right-color: var(--theme-success-color, var(--theme-success-3, #45a110)); } .zent-btn-group .zent-btn-success:not(:first-child) { border-left-color: #45a110; border-left-color: var(--theme-success-color, var(--theme-success-3, #45a110)); } .zent-btn-group .zent-btn-warning:not(:last-child) { border-right-color: #ed6a18; border-right-color: var(--theme-warning-color, var(--theme-warn-3, #ed6a18)); } .zent-btn-group .zent-btn-warning:not(:first-child) { border-left-color: #ed6a18; border-left-color: var(--theme-warning-color, var(--theme-warn-3, #ed6a18)); }