UNPKG

hc-materials

Version:

基于react的通用组件库

777 lines (776 loc) 19 kB
.hc-footer { padding: 0 16px; margin: 48px 0 24px 0; text-align: center; } .hc-footer-links { margin-bottom: 8px; } .hc-footer-links a { color: rgba(0, 0, 0, 0.45); -webkit-transition: all 0.3s; transition: all 0.3s; } .hc-footer-links a:not(:last-child) { margin-right: 40px; } .hc-footer-links a:hover { color: rgba(0, 0, 0, 0.65); } .hc-footer-copyright { color: rgba(0, 0, 0, 0.45); font-size: 14px; } .ant-breadcrumb { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; color: rgba(0, 0, 0, 0.65); font-variant: tabular-nums; line-height: 1.5; list-style: none; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; color: rgba(0, 0, 0, 0.45); font-size: 14px; } .ant-breadcrumb .anticon { font-size: 14px; } .ant-breadcrumb a { color: rgba(0, 0, 0, 0.45); -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-breadcrumb a:hover { color: #40a9ff; } .ant-breadcrumb > span:last-child { color: rgba(0, 0, 0, 0.65); } .ant-breadcrumb > span:last-child .ant-breadcrumb-separator { display: none; } .ant-breadcrumb-separator { margin: 0 8px; color: rgba(0, 0, 0, 0.45); } .ant-breadcrumb-link > .anticon + span { margin-left: 4px; } .hc-breadCrumb .ant-breadcrumb { display: inline-block; vertical-align: middle; width: 100%; } .hc-breadCrumb .ant-breadcrumb a { color: #2db7f5; } .hc-breadCrumb .ant-breadcrumb a:hover { color: #57c5f7; } .hc-breadCrumb .ant-breadcrumb:before, .hc-breadCrumb .ant-breadcrumb:after { clear: both; display: table; content: ' '; } .hc-breadCrumb .ant-breadcrumb .ant-breadcrumb-link { font-size: 16px; line-height: 20px; vertical-align: bottom; color: #666; font-weight: normal; } .hc-breadCrumb .ant-breadcrumb .ant-breadcrumb-link h5 { display: inline-block; font-size: 16px; } .hc-breadCrumb-extra { float: right; } .hc-breadCrumb-extra .antd-nav-link { display: inline-block; margin-right: 10px; } .hc-breadCrumb-extra > .ant-btn { margin-right: 10px; } /* 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 */ .ant-card { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; list-style: none; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; position: relative; background: #fff; border-radius: 2px; -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-card-hoverable { cursor: pointer; } .ant-card-hoverable:hover { border-color: rgba(0, 0, 0, 0.09); -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09); } .ant-card-bordered { border: 1px solid #e8e8e8; } .ant-card-head { min-height: 48px; margin-bottom: -1px; padding: 0 24px; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 16px; background: transparent; border-bottom: 1px solid #e8e8e8; border-radius: 2px 2px 0 0; zoom: 1; } .ant-card-head::before, .ant-card-head::after { content: ''; display: table; } .ant-card-head::after { clear: both; } .ant-card-head-wrapper { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; } .ant-card-head-title { display: inline-block; -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; padding: 16px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .ant-card-head .ant-tabs { clear: both; margin-bottom: -17px; color: rgba(0, 0, 0, 0.65); font-weight: normal; font-size: 14px; } .ant-card-head .ant-tabs-bar { border-bottom: 1px solid #e8e8e8; } .ant-card-extra { float: right; margin-left: auto; padding: 16px 0; color: rgba(0, 0, 0, 0.65); font-weight: normal; font-size: 14px; } .ant-card-body { padding: 24px; zoom: 1; } .ant-card-body::before, .ant-card-body::after { content: ''; display: table; } .ant-card-body::after { clear: both; } .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; -webkit-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; 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; -webkit-transition: all 0.3s; transition: all 0.3s; } .ant-card-grid:hover { position: relative; z-index: 1; -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 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-extra { padding-bottom: 0; } .ant-card-cover > * { display: block; width: 100%; } .ant-card-cover img { border-radius: 2px 2px 0 0; } .ant-card-actions { margin: 0; padding: 0; list-style: none; background: #fafafa; border-top: 1px solid #e8e8e8; zoom: 1; } .ant-card-actions::before, .ant-card-actions::after { content: ''; display: table; } .ant-card-actions::after { clear: both; } .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: inline-block; min-width: 32px; font-size: 14px; line-height: 22px; cursor: pointer; } .ant-card-actions > li > span:hover { color: #1890ff; -webkit-transition: color 0.3s; transition: color 0.3s; } .ant-card-actions > li > span > .anticon { font-size: 16px; line-height: 22px; } .ant-card-actions > li > span a { display: inline-block; width: 100%; color: rgba(0, 0, 0, 0.45); line-height: 22px; } .ant-card-actions > li > span a:hover { color: #1890ff; } .ant-card-actions > li:not(:last-child) { border-right: 1px solid #e8e8e8; } .ant-card-wider-padding .ant-card-head { padding: 0 32px; } .ant-card-wider-padding .ant-card-body { padding: 24px 32px; } .ant-card-padding-transition .ant-card-head, .ant-card-padding-transition .ant-card-body { -webkit-transition: padding 0.3s; transition: padding 0.3s; } .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: 14px; } .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; zoom: 1; } .ant-card-meta::before, .ant-card-meta::after { content: ''; display: table; } .ant-card-meta::after { clear: both; } .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: 16px; 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: -webkit-gradient(linear, left top, right top, from(rgba(207, 216, 220, 0.2)), color-stop(rgba(207, 216, 220, 0.4)), to(rgba(207, 216, 220, 0.2))); background: -webkit-linear-gradient(left, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2)); 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: 2px; -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: 14px; } .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: 14px; } .ant-card-small > .ant-card-body { padding: 12px; } .ant-affix { position: fixed; z-index: 10; } .ant-drawer { position: fixed; top: 0; z-index: 1000; width: 0%; height: 100%; } .ant-drawer > * { -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), -webkit-box-shadow 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); transition: -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), -webkit-box-shadow 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); transition: transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), box-shadow 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); transition: transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), box-shadow 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), -webkit-transform 0.3s cubic-bezier(0.9, 0, 0.3, 0.7), -webkit-box-shadow 0.3s cubic-bezier(0.9, 0, 0.3, 0.7); } .ant-drawer-content-wrapper { position: fixed; } .ant-drawer .ant-drawer-content { width: 100%; height: 100%; } .ant-drawer-left, .ant-drawer-right { width: 0%; height: 100%; } .ant-drawer-left .ant-drawer-content-wrapper, .ant-drawer-right .ant-drawer-content-wrapper { height: 100%; } .ant-drawer-left.ant-drawer-open, .ant-drawer-right.ant-drawer-open { width: 100%; } .ant-drawer-left.ant-drawer-open.no-mask, .ant-drawer-right.ant-drawer-open.no-mask { width: 0%; } .ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper { -webkit-box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15); box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15); } .ant-drawer-right .ant-drawer-content-wrapper { right: 0; } .ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper { -webkit-box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15); box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15); } .ant-drawer-top, .ant-drawer-bottom { width: 100%; height: 0%; } .ant-drawer-top .ant-drawer-content-wrapper, .ant-drawer-bottom .ant-drawer-content-wrapper { width: 100%; } .ant-drawer-top.ant-drawer-open, .ant-drawer-bottom.ant-drawer-open { height: 100%; } .ant-drawer-top.ant-drawer-open.no-mask, .ant-drawer-bottom.ant-drawer-open.no-mask { height: 0%; } .ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper { -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .ant-drawer-bottom .ant-drawer-content-wrapper { bottom: 0; } .ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper { -webkit-box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15); } .ant-drawer.ant-drawer-open .ant-drawer-mask { height: 100%; opacity: 0.3; -webkit-transition: none; transition: none; -webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); } .ant-drawer-title { margin: 0; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 16px; line-height: 22px; } .ant-drawer-content { position: relative; z-index: 1; background-color: #fff; background-clip: padding-box; border: 0; } .ant-drawer-close { position: absolute; top: 0; right: 0; z-index: 10; display: block; width: 56px; height: 56px; padding: 0; color: rgba(0, 0, 0, 0.45); font-weight: 700; font-size: 16px; font-style: normal; line-height: 56px; text-align: center; text-transform: none; text-decoration: none; background: transparent; border: 0; outline: 0; cursor: pointer; -webkit-transition: color 0.3s; transition: color 0.3s; text-rendering: auto; } .ant-drawer-close:focus, .ant-drawer-close:hover { color: rgba(0, 0, 0, 0.75); text-decoration: none; } .ant-drawer-header { position: relative; padding: 16px 24px; color: rgba(0, 0, 0, 0.65); background: #fff; border-bottom: 1px solid #e8e8e8; border-radius: 4px 4px 0 0; } .ant-drawer-header-no-title { color: rgba(0, 0, 0, 0.65); background: #fff; } .ant-drawer-body { padding: 24px; font-size: 14px; line-height: 1.5; word-wrap: break-word; } .ant-drawer-mask { position: fixed; width: 100%; height: 0; background-color: rgba(0, 0, 0, 0.65); opacity: 0; filter: alpha(opacity=50); -webkit-transition: opacity 0.3s linear, height 0s ease 0.3s; transition: opacity 0.3s linear, height 0s ease 0.3s; } .ant-drawer-open { -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1); } .ant-drawer-open-content { -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } @-webkit-keyframes antdDrawerFadeIn { 0% { opacity: 0; } 100% { opacity: 0.3; } } @keyframes antdDrawerFadeIn { 0% { opacity: 0; } 100% { opacity: 0.3; } } .ant-divider { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; color: rgba(0, 0, 0, 0.65); font-size: 14px; font-variant: tabular-nums; line-height: 1.5; list-style: none; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; background: #e8e8e8; } .ant-divider, .ant-divider-vertical { position: relative; top: -0.06em; display: inline-block; width: 1px; height: 0.9em; margin: 0 8px; vertical-align: middle; } .ant-divider-horizontal { display: block; clear: both; width: 100%; min-width: 100%; height: 1px; margin: 24px 0; } .ant-divider-horizontal.ant-divider-with-text, .ant-divider-horizontal.ant-divider-with-text-left, .ant-divider-horizontal.ant-divider-with-text-right { display: table; margin: 16px 0; color: rgba(0, 0, 0, 0.85); font-weight: 500; font-size: 16px; white-space: nowrap; text-align: center; background: transparent; } .ant-divider-horizontal.ant-divider-with-text::before, .ant-divider-horizontal.ant-divider-with-text-left::before, .ant-divider-horizontal.ant-divider-with-text-right::before, .ant-divider-horizontal.ant-divider-with-text::after, .ant-divider-horizontal.ant-divider-with-text-left::after, .ant-divider-horizontal.ant-divider-with-text-right::after { position: relative; top: 50%; display: table-cell; width: 50%; border-top: 1px solid #e8e8e8; -webkit-transform: translateY(50%); -ms-transform: translateY(50%); transform: translateY(50%); content: ''; } .ant-divider-horizontal.ant-divider-with-text-left .ant-divider-inner-text, .ant-divider-horizontal.ant-divider-with-text-right .ant-divider-inner-text { display: inline-block; padding: 0 10px; } .ant-divider-horizontal.ant-divider-with-text-left::before { top: 50%; width: 5%; } .ant-divider-horizontal.ant-divider-with-text-left::after { top: 50%; width: 95%; } .ant-divider-horizontal.ant-divider-with-text-right::before { top: 50%; width: 95%; } .ant-divider-horizontal.ant-divider-with-text-right::after { top: 50%; width: 5%; } .ant-divider-inner-text { display: inline-block; padding: 0 24px; } .ant-divider-dashed { background: none; border-top: 1px dashed #e8e8e8; } .ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed, .ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed, .ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed { border-top: 0; } .ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::before, .ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed::before, .ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed::before, .ant-divider-horizontal.ant-divider-with-text.ant-divider-dashed::after, .ant-divider-horizontal.ant-divider-with-text-left.ant-divider-dashed::after, .ant-divider-horizontal.ant-divider-with-text-right.ant-divider-dashed::after { border-style: dashed none none; } .hc-layout-flexContent-footer { width: 100%; bottom: 0; } .hc-layout-flexContent .ant-card-wider-padding .ant-card-head { padding: 0 10px; } .hc-layout-flexContent .ant-card-wider-padding .ant-card-head .ant-card-head-title { padding: 10px 0; } .hc-layout-flexContent .ant-card-wider-padding .ant-card-body { padding: 10px; } .hc-layout-flexContent-body { margin: 16px 16px 0; background: transparent; } .hc-layout-flexContent-body > .ant-card-body { padding: 0; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: stretch; -webkit-align-items: stretch; -ms-flex-align: stretch; align-items: stretch; } .hc-layout-flexContent-body > .ant-card-body .hc-layout-flexContent-body_wrap { -webkit-box-flex: 1; -webkit-flex: auto; -ms-flex: auto; flex: auto; } .hc-layout-flexContent-body > .ant-card-body .hc-layout-flexContent-body_overview { margin-left: 16px; -webkit-box-flex: 0; -webkit-flex-grow: 0; -ms-flex-positive: 0; flex-grow: 0; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; } .hc-layout-flexContent-iconbox { min-height: 40px; position: relative; padding: 0 10px; background: white; border-bottom: 2px solid #ddd; } .hc-layout-flexContent-iconbox .anticon-compass, .hc-layout-flexContent-iconbox .anticon-environment-o, .hc-layout-flexContent-iconbox .anticon-appstore-o { float: left; margin: 8px 3px 0; padding: 2px; font-size: 20px; } .hc-layout-flexContent-iconbox .anticon-compass:hover, .hc-layout-flexContent-iconbox .anticon-environment-o:hover, .hc-layout-flexContent-iconbox .anticon-appstore-o:hover { cursor: pointer; } .hc-layout-flexContent-iconbox .anticon-appstore-o { float: right; } .hc-layout-flexContent-breadcrumb { margin-bottom: 0; border-bottom: 0 none; } .hc-layout-flexContent-breadcrumb .ant-breadcrumb { padding-left: 5px; display: inline-block; zoom: 1; vertical-align: middle; width: 100%; } .hc-layout-flexContent-connector { width: 40%; position: absolute; left: 30%; top: 0; height: 38px; }