UNPKG

@arche-mc2/arche-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

72 lines 2.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var typestyle_1 = require("typestyle"); var utils_1 = require("../../../Common/theming/utils"); exports.getStyles = function (props) { var tooltipStyle = props.displayMode === 'row' ? { position: 'absolute', bottom: utils_1.toRem(15) } : { position: 'absolute', top: utils_1.toRem(-5), right: utils_1.toRem(-20) }; return typestyle_1.style({ border: '1px solid #DEDDDD', borderRadius: '4px', padding: utils_1.toRem(25) + " " + utils_1.toRem(30) + " " + utils_1.toRem(13.5) + " " + utils_1.toRem(50), $nest: { '& .panel-body': { display: 'flex', flexWrap: 'wrap', marginLeft: utils_1.toRem(14), position: 'relative' }, '& .panel-col': { display: 'flex', flexDirection: props.displayMode ? props.displayMode : {}, marginRight: utils_1.toRem(37), marginBottom: utils_1.toRem(8), position: 'relative', alignItems: props.displayMode === 'row' ? 'center' : 'normal' }, '& .panel-col-label': { color: props.theme.colorMap.gray6, fontSize: utils_1.toRem(14), lineHeight: 1.15 }, '& .panel-col-value': { color: props.theme.colorMap.grey1, marginLeft: props.displayMode === 'row' ? utils_1.toRem(4) : '', fontSize: utils_1.toRem(14), lineHeight: 1.15 }, '& .panel-title': { marginBottom: utils_1.toRem(30) }, '& .panel-title-general': { fontSize: utils_1.toRem(18), fontWeight: 'bold', color: '#4B5C59' }, '& .panel-title-specific': { fontSize: utils_1.toRem(18), fontWeight: 'bold', color: '#4B5C59', marginLeft: utils_1.toRem(4) }, '& .col-tooltip': tslib_1.__assign({}, tooltipStyle), '& .panel-actions': { position: 'absolute', right: 0, bottom: 4, display: 'flex', justifyContent: 'space-evenly', alignSelf: 'center', $nest: { '& .up-btn ,& .up-btn svg': { width: utils_1.toRem(44) + " !important", height: utils_1.toRem(44) + " !important", } } } } }); }; //# sourceMappingURL=styles.js.map