UNPKG

antdv-eoi

Version:

An enterprise-class UI design language and Vue-based implementation

260 lines (259 loc) 6.17 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ /************************* 全局灰度 *********************/ /*所有阴影*/ /************************* 全局主题色 *********************/ /************************* 全局不变的颜色 *********************/ /* group color */ /* standard */ /* light */ /* dark */ /* 状态色 */ /* -state- Functional Color */ /* 状态色边框 */ /************************* 自定义变量 *********************/ /************************* 修改ant-design-vue变量 *********************/ .ant-card { box-sizing: border-box; margin: 0; padding: 0; color: var(--color-neutrals-7, #8f8f8f); font-size: 12px; font-variant: tabular-nums; line-height: 1.5715; list-style: none; font-feature-settings: 'tnum'; position: relative; background: var(--color-component-background); border-radius: 1px; transition: all 0.3s; } .ant-card-hoverable { cursor: pointer; transition: box-shadow 0.3s border-color 0.3s; } .ant-card-hoverable:hover { border-color: rgba(0, 0, 0, 0.09); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); } .ant-card-bordered { border: 1px solid var(--color-input-border); } .ant-card-head { min-height: 48px; margin-bottom: -1px; padding: 0 24px; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 14px; background: transparent; border-bottom: 1px solid var(--color-input-border); border-radius: 1px 1px 0 0; display: flow-root; } .ant-card-head-wrapper { display: flex; align-items: center; } .ant-card-head-title { display: inline-block; flex: 1; padding: 16px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .ant-card-head .ant-tabs { clear: both; margin-bottom: -17px; color: var(--color-neutrals-7, #8f8f8f); font-weight: normal; font-size: 12px; } .ant-card-head .ant-tabs-bar { border-bottom: 1px solid var(--color-input-border); } .ant-card-extra { float: right; margin-left: auto; padding: 16px 0; color: var(--color-neutrals-7, #8f8f8f); font-weight: normal; font-size: 12px; } .ant-card-body { padding: 24px; display: flow-root; } .ant-card-contain-grid:not(.ant-card-loading) .ant-card-body { margin: -1px 0 0 -1px; padding: 0; } .ant-card-grid { float: left; width: 33.33%; padding: 24px; border: 0; border-radius: 0; box-shadow: 1px 0 0 0 var(--color-input-border), 0 1px 0 0 var(--color-input-border), 1px 1px 0 0 var(--color-input-border), 1px 0 0 0 var(--color-input-border) inset, 0 1px 0 0 var(--color-input-border) inset; transition: all 0.3s; } .ant-card-grid-hoverable:hover { position: relative; z-index: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .ant-card-contain-tabs > .ant-card-head .ant-card-head-title { min-height: 32px; padding-bottom: 0; } .ant-card-contain-tabs > .ant-card-head .ant-card-extra { padding-bottom: 0; } .ant-card-cover > * { display: block; width: 100%; } .ant-card-cover img { border-radius: 1px 1px 0 0; } .ant-card-actions { margin: 0; padding: 0; list-style: none; background: #fafafa; border-top: 1px solid var(--color-input-border); display: flow-root; } .ant-card-actions > li { float: left; margin: 12px 0; color: rgba(0, 0, 0, 0.45); text-align: center; } .ant-card-actions > li > span { position: relative; display: block; min-width: 32px; font-size: 12px; line-height: 22px; cursor: pointer; } .ant-card-actions > li > span:hover { color: #097BA6; transition: color 0.3s; } .ant-card-actions > li > span a:not(.ant-btn), .ant-card-actions > li > span > .anticon { display: inline-block; width: 100%; color: rgba(0, 0, 0, 0.45); line-height: 22px; transition: color 0.3s; } .ant-card-actions > li > span a:not(.ant-btn):hover, .ant-card-actions > li > span > .anticon:hover { color: #097BA6; } .ant-card-actions > li > span > .anticon { font-size: 16px; line-height: 22px; } .ant-card-actions > li:not(:last-child) { border-right: 1px solid var(--color-input-border); } .ant-card-type-inner .ant-card-head { padding: 0 24px; background: #fafafa; } .ant-card-type-inner .ant-card-head-title { padding: 12px 0; font-size: 12px; } .ant-card-type-inner .ant-card-body { padding: 16px 24px; } .ant-card-type-inner .ant-card-extra { padding: 13.5px 0; } .ant-card-meta { margin: -4px 0; display: flow-root; } .ant-card-meta-avatar { float: left; padding-right: 16px; } .ant-card-meta-detail { overflow: hidden; } .ant-card-meta-detail > div:not(:last-child) { margin-bottom: 8px; } .ant-card-meta-title { overflow: hidden; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; } .ant-card-meta-description { color: rgba(0, 0, 0, 0.45); } .ant-card-loading { overflow: hidden; } .ant-card-loading .ant-card-body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .ant-card-loading-content p { margin: 0; } .ant-card-loading-block { height: 14px; margin: 4px 0; background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2)); background-size: 600% 600%; border-radius: 1px; -webkit-animation: card-loading 1.4s ease infinite; animation: card-loading 1.4s ease infinite; } @-webkit-keyframes card-loading { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } } @keyframes card-loading { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } } .ant-card-small > .ant-card-head { min-height: 36px; padding: 0 12px; font-size: 12px; } .ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-head-title { padding: 8px 0; } .ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-extra { padding: 8px 0; font-size: 12px; } .ant-card-small > .ant-card-body { padding: 12px; }