UNPKG

gov-design-vue

Version:

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

280 lines (279 loc) 5.92 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 */ .gov-card { font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; font-variant: tabular-nums; line-height: 1.5; color: rgba(0, 0, 0, 0.65); box-sizing: border-box; margin: 0; padding: 0; list-style: none; background: #fff; border-radius: 2px; position: relative; transition: all 0.3s; } .gov-card-hoverable { cursor: pointer; } .gov-card-hoverable:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); border-color: rgba(0, 0, 0, 0.09); } .gov-card-bordered { border: 1px solid #e8e8e8; } .gov-card-head { background: transparent; border-bottom: 1px solid #e8e8e8; padding: 0 24px; border-radius: 2px 2px 0 0; zoom: 1; margin-bottom: -1px; min-height: 48px; font-size: 16px; color: rgba(0, 0, 0, 0.85); font-weight: 500; } .gov-card-head:before, .gov-card-head:after { content: ''; display: table; } .gov-card-head:after { clear: both; } .gov-card-head-wrapper { display: flex; align-items: center; } .gov-card-head-title { padding: 16px 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; flex: 1; display: inline-block; } .gov-card-head .gov-tabs { margin-bottom: -17px; clear: both; font-size: 14px; color: rgba(0, 0, 0, 0.65); font-weight: normal; } .gov-card-head .gov-tabs-bar { border-bottom: 1px solid #e8e8e8; } .gov-card-extra { float: right; padding: 16px 0; font-size: 14px; color: rgba(0, 0, 0, 0.65); font-weight: normal; margin-left: auto; } .gov-card-body { padding: 24px; zoom: 1; } .gov-card-body:before, .gov-card-body:after { content: ''; display: table; } .gov-card-body:after { clear: both; } .gov-card-contain-grid:not(.gov-card-loading) .gov-card-body { margin: -1px 0 0 -1px; padding: 0; } .gov-card-grid { border-radius: 0; border: 0; box-shadow: 1px 0 0 0 #e8e8e8, 0 1px 0 0 #e8e8e8, 1px 1px 0 0 #e8e8e8, 1px 0 0 0 #e8e8e8 inset, 0 1px 0 0 #e8e8e8 inset; width: 33.33%; float: left; padding: 24px; transition: all 0.3s; } .gov-card-grid:hover { position: relative; z-index: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .gov-card-contain-tabs > .gov-card-head .gov-card-head-title { padding-bottom: 0; min-height: 32px; } .gov-card-contain-tabs .gov-card-extra { padding-bottom: 0; } .gov-card-cover > * { width: 100%; display: block; } .gov-card-cover img { border-radius: 2px 2px 0 0; } .gov-card-actions { border-top: 1px solid #e8e8e8; background: #fafafa; zoom: 1; list-style: none; margin: 0; padding: 0; } .gov-card-actions:before, .gov-card-actions:after { content: ''; display: table; } .gov-card-actions:after { clear: both; } .gov-card-actions > li { float: left; text-align: center; margin: 12px 0; color: rgba(0, 0, 0, 0.45); } .gov-card-actions > li > span { display: inline-block; font-size: 14px; cursor: pointer; line-height: 22px; min-width: 32px; position: relative; } .gov-card-actions > li > span:hover { color: #0066ff; transition: color 0.3s; } .gov-card-actions > li > span > .anticon { font-size: 16px; line-height: 22px; } .gov-card-actions > li > span a { color: rgba(0, 0, 0, 0.45); line-height: 22px; display: inline-block; width: 100%; } .gov-card-actions > li > span a:hover { color: #0066ff; } .gov-card-actions > li:not(:last-child) { border-right: 1px solid #e8e8e8; } .gov-card-wider-padding .gov-card-head { padding: 0 32px; } .gov-card-wider-padding .gov-card-body { padding: 24px 32px; } .gov-card-padding-transition .gov-card-head, .gov-card-padding-transition .gov-card-body { transition: padding 0.3s; } .gov-card-type-inner .gov-card-head { padding: 0 24px; background: #fafafa; } .gov-card-type-inner .gov-card-head-title { padding: 12px 0; font-size: 14px; } .gov-card-type-inner .gov-card-body { padding: 16px 24px; } .gov-card-type-inner .gov-card-extra { padding: 13.5px 0; } .gov-card-meta { margin: -4px 0; zoom: 1; } .gov-card-meta:before, .gov-card-meta:after { content: ''; display: table; } .gov-card-meta:after { clear: both; } .gov-card-meta-avatar { padding-right: 16px; float: left; } .gov-card-meta-detail { overflow: hidden; } .gov-card-meta-detail > div:not(:last-child) { margin-bottom: 8px; } .gov-card-meta-title { font-size: 16px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; color: rgba(0, 0, 0, 0.85); font-weight: 500; } .gov-card-meta-description { color: rgba(0, 0, 0, 0.45); } .gov-card-loading { overflow: hidden; position: relative; } .gov-card-loading:after { position: absolute; bottom: 0; left: 0; width: 100%; height: 24px; background: #fff; content: ''; } .gov-card-loading .gov-card-body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .gov-card-loading-content p { margin: 0; } .gov-card-loading-block { height: 14px; margin: 4px 0; border-radius: 2px; background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2)); -webkit-animation: card-loading 1.4s ease infinite; animation: card-loading 1.4s ease infinite; background-size: 600% 600%; } @-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%; } }