UNPKG

gov-design-vue

Version:

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

182 lines (181 loc) 4 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-alert { 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; position: relative; padding: 8px 15px 8px 37px; border-radius: 4px; } .gov-alert.gov-alert-no-icon { padding: 8px 15px; } .gov-alert.gov-alert-closable { padding-right: 30px; } .gov-alert-icon { top: 11.5px; left: 16px; position: absolute; } .gov-alert-description { font-size: 14px; line-height: 22px; display: none; } .gov-alert-success { border: 1px solid #b7eb8f; background-color: #f6ffed; } .gov-alert-success .gov-alert-icon { color: #52c41a; } .gov-alert-info { border: 1px solid #7abdff; background-color: #e6f4ff; } .gov-alert-info .gov-alert-icon { color: #0066ff; } .gov-alert-warning { border: 1px solid #ffe58f; background-color: #fffbe6; } .gov-alert-warning .gov-alert-icon { color: #faad14; } .gov-alert-error { border: 1px solid #ffa39e; background-color: #fff1f0; } .gov-alert-error .gov-alert-icon { color: #f5222d; } .gov-alert-close-icon { font-size: 12px; position: absolute; right: 16px; top: 8px; line-height: 22px; overflow: hidden; cursor: pointer; } .gov-alert-close-icon .anticon-close { color: rgba(0, 0, 0, 0.45); transition: color 0.3s; } .gov-alert-close-icon .anticon-close:hover { color: #404040; } .gov-alert-close-text { position: absolute; right: 16px; } .gov-alert-with-description { padding: 15px 15px 15px 64px; position: relative; border-radius: 4px; color: rgba(0, 0, 0, 0.65); line-height: 1.5; } .gov-alert-with-description.gov-alert-no-icon { padding: 15px; } .gov-alert-with-description .gov-alert-icon { position: absolute; top: 16px; left: 24px; font-size: 24px; } .gov-alert-with-description .gov-alert-close-icon { position: absolute; top: 16px; right: 16px; cursor: pointer; font-size: 14px; } .gov-alert-with-description .gov-alert-message { font-size: 16px; color: rgba(0, 0, 0, 0.85); display: block; margin-bottom: 4px; } .gov-alert-with-description .gov-alert-description { display: block; } .gov-alert.gov-alert-close { height: 0 !important; margin: 0; padding-top: 0; padding-bottom: 0; transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); transform-origin: 50% 0; } .gov-alert-slide-up-leave { -webkit-animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); -webkit-animation-fill-mode: both; animation-fill-mode: both; } .gov-alert-banner { border-radius: 0; border: 0; margin-bottom: 0; } @-webkit-keyframes antAlertSlideUpIn { 0% { opacity: 0; transform-origin: 0% 0%; transform: scaleY(0); } 100% { opacity: 1; transform-origin: 0% 0%; transform: scaleY(1); } } @keyframes antAlertSlideUpIn { 0% { opacity: 0; transform-origin: 0% 0%; transform: scaleY(0); } 100% { opacity: 1; transform-origin: 0% 0%; transform: scaleY(1); } } @-webkit-keyframes antAlertSlideUpOut { 0% { opacity: 1; transform-origin: 0% 0%; transform: scaleY(1); } 100% { opacity: 0; transform-origin: 0% 0%; transform: scaleY(0); } } @keyframes antAlertSlideUpOut { 0% { opacity: 1; transform-origin: 0% 0%; transform: scaleY(1); } 100% { opacity: 0; transform-origin: 0% 0%; transform: scaleY(0); } }