UNPKG

wetrade-design

Version:

一款多语言支持Vue3的UI框架

323 lines (322 loc) 6.65 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 */ /** gray-sp */ /** blue-sp */ /** green-sp */ /** red-sp */ /** orange-sp */ /** 品牌橙 */ /** 日落黄 */ /** 柠檬黄 */ /** 新生绿 */ /** 绿色 */ /** 碧涛青 */ /** 海蔚蓝 */ /** 品牌蓝色 */ /** 宝石蓝 */ /** 星空紫 */ /** 罗兰紫 */ /** 青春紫 */ /** 品红 */ /** 红色 */ /** 灰色 */ /** 保留ant色板 */ /** 绿色 */ /** 品牌蓝 */ .wd-card { box-sizing: border-box; margin: 0; padding: 0; color: #1E1E29; font-size: 14px; font-variant: tabular-nums; line-height: 18px; list-style: none; font-feature-settings: 'tnum'; position: relative; background: #fff; border-radius: 6px; } .wd-card-rtl { direction: rtl; } .wd-card-hoverable { cursor: pointer; transition: box-shadow 0.3s, border-color 0.3s; } .wd-card-hoverable:hover { border-color: transparent; box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09); } .wd-card-bordered { border: 1px solid #EBEDF2; } .wd-card-head { min-height: 48px; margin-bottom: -1px; padding: 0 24px; color: #1E1E29; font-weight: 500; font-size: 16px; background: transparent; border-bottom: 1px solid #EBEDF2; border-radius: 6px 6px 0 0; } .wd-card-head::before { display: table; content: ''; } .wd-card-head::after { display: table; clear: both; content: ''; } .wd-card-head-wrapper { display: flex; align-items: center; } .wd-card-head-title { display: inline-block; flex: 1; padding: 16px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .wd-card-head-title > .wd-typography, .wd-card-head-title > .wd-typography-edit-content { left: 0; margin-top: 0; margin-bottom: 0; } .wd-card-head .wd-tabs-top { clear: both; margin-bottom: -17px; color: #1E1E29; font-weight: normal; font-size: 14px; } .wd-card-head .wd-tabs-top-bar { border-bottom: 1px solid #EBEDF2; } .wd-card-extra { float: right; margin-left: auto; padding: 16px 0; color: #1E1E29; font-weight: normal; font-size: 14px; } .wd-card-rtl .wd-card-extra { margin-right: auto; margin-left: 0; } .wd-card-body { padding: 24px; } .wd-card-body::before { display: table; content: ''; } .wd-card-body::after { display: table; clear: both; content: ''; } .wd-card-contain-grid:not(.wd-card-loading) .wd-card-body { margin: -1px 0 0 -1px; padding: 0; } .wd-card-grid { float: left; width: 33.33%; padding: 24px; border: 0; border-radius: 0; box-shadow: 1px 0 0 0 #EBEDF2, 0 1px 0 0 #EBEDF2, 1px 1px 0 0 #EBEDF2, 1px 0 0 0 #EBEDF2 inset, 0 1px 0 0 #EBEDF2 inset; transition: all 0.3s; } .wd-card-rtl .wd-card-grid { float: right; } .wd-card-grid-hoverable:hover { position: relative; z-index: 1; box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09); } .wd-card-contain-tabs > .wd-card-head .wd-card-head-title { min-height: 32px; padding-bottom: 0; } .wd-card-contain-tabs > .wd-card-head .wd-card-extra { padding-bottom: 0; } .wd-card-bordered .wd-card-cover { margin-top: -1px; margin-right: -1px; margin-left: -1px; } .wd-card-cover > * { display: block; width: 100%; } .wd-card-cover img { border-radius: 6px 6px 0 0; } .wd-card-actions { margin: 0; padding: 0; list-style: none; background: #fff; border-top: 1px solid #EBEDF2; } .wd-card-actions::before { display: table; content: ''; } .wd-card-actions::after { display: table; clear: both; content: ''; } .wd-card-actions > li { float: left; margin: 12px 0; color: #575E73; text-align: center; } .wd-card-rtl .wd-card-actions > li { float: right; } .wd-card-actions > li > span { position: relative; display: block; min-width: 32px; font-size: 14px; line-height: 18px; cursor: pointer; } .wd-card-actions > li > span:hover { color: #2469F2; transition: color 0.3s; } .wd-card-actions > li > span a:not(.wd-btn), .wd-card-actions > li > span > .wdicon { display: inline-block; width: 100%; color: #575E73; line-height: 22px; transition: color 0.3s; } .wd-card-actions > li > span a:not(.wd-btn):hover, .wd-card-actions > li > span > .wdicon:hover { color: #2469F2; } .wd-card-actions > li > span > .wdicon { font-size: 16px; line-height: 22px; } .wd-card-actions > li:not(:last-child) { border-right: 1px solid #EBEDF2; } .wd-card-rtl .wd-card-actions > li:not(:last-child) { border-right: none; border-left: 1px solid #EBEDF2; } .wd-card-type-inner .wd-card-head { padding: 0 24px; background: #fafafa; } .wd-card-type-inner .wd-card-head-title { padding: 12px 0; font-size: 14px; } .wd-card-type-inner .wd-card-body { padding: 16px 24px; } .wd-card-type-inner .wd-card-extra { padding: 13.5px 0; } .wd-card-meta { margin: -4px 0; } .wd-card-meta::before { display: table; content: ''; } .wd-card-meta::after { display: table; clear: both; content: ''; } .wd-card-meta-avatar { float: left; padding-right: 16px; } .wd-card-rtl .wd-card-meta-avatar { float: right; padding-right: 0; padding-left: 16px; } .wd-card-meta-detail { overflow: hidden; } .wd-card-meta-detail > div:not(:last-child) { margin-bottom: 8px; } .wd-card-meta-title { overflow: hidden; color: #1E1E29; font-weight: 500; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; } .wd-card-meta-description { color: #575E73; } .wd-card-loading { overflow: hidden; } .wd-card-loading .wd-card-body { -webkit-user-select: none; -moz-user-select: none; user-select: none; } .wd-card-loading-content p { margin: 0; } .wd-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: 6px; animation: card-loading 1.4s ease infinite; } @keyframes card-loading { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } } .wd-card-small > .wd-card-head { min-height: 36px; padding: 0 12px; font-size: 14px; } .wd-card-small > .wd-card-head > .wd-card-head-wrapper > .wd-card-head-title { padding: 8px 0; } .wd-card-small > .wd-card-head > .wd-card-head-wrapper > .wd-card-extra { padding: 8px 0; font-size: 14px; } .wd-card-small > .wd-card-body { padding: 12px; }