UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

27 lines (26 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inheritTextStyle = exports.errorTextStyle = exports.warningTextStyle = exports.successTextStyle = exports.errorLabelStyle = exports.warningLabelStyle = exports.successLabelStyle = exports.baseLabelStyle = exports.errorColor = exports.warningColor = exports.successColor = void 0; exports.labelStyle = labelStyle; exports.successColor = '#3e8c3e'; exports.warningColor = '#fab254'; exports.errorColor = '#d33131'; function labelStyle(color = 'inherit') { return ` background-color: ${color}50; border-left: 3px solid ${color}; border-radius: 2px; display: inline; font-size: 1em; font-weight: bold; line-height: 1rem; padding: 3px 4px 0 4px`; } exports.baseLabelStyle = labelStyle('#767676'); exports.successLabelStyle = labelStyle(exports.successColor); exports.warningLabelStyle = labelStyle(exports.warningColor); exports.errorLabelStyle = labelStyle(exports.errorColor); exports.successTextStyle = `color: ${exports.successColor}; display: inline; font-weight: 400; font-family: monospace;`; exports.warningTextStyle = `color: ${exports.warningColor}; display: inline; font-weight: 400; font-family: monospace;`; exports.errorTextStyle = `color: ${exports.errorColor}; display: inline; font-weight: 400; font-family: monospace;`; exports.inheritTextStyle = 'color: inherit; display: inline; font-weight: 400; font-family: monospace;';