UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

114 lines (113 loc) 2.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const common_1 = require("../common"); exports.selected = common_1.css ` /* name:selected */ outline: dashed 3px lightcoral !important; outline-offset: -1px !important; label: selected; `; exports.borderHandler = common_1.css ` width: 5px; height: 100%; flex: 1 5px; cursor: ew-resize; `; exports.cellContent = common_1.css ` flex: 1 100%; `; exports.cellStyle = common_1.css ` display: flex; width: 100%; `; exports.containerWrapper = common_1.css ` width: 100%; position: relative; label: containerWrapper; `; exports.containerLabelBase = common_1.css ` position: absolute; font-weight: bold; z-index: 10; padding: 3px 12px; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; opacity: 0.8; display: block; white-space: nowrap; label: containerLabel; `; exports.containerLabelRight = common_1.css ` ${exports.containerLabelBase} border-radius: 3px; right: 3px; bottom: 3px; label: containerLabelRight; `; exports.containerLabelLeft = common_1.css ` ${exports.containerLabelBase} position: inherit; display: block; border-radius: 0px; margin-bottom: 6px; label: containerLabelLeft; `; exports.containerBorder = (theme) => common_1.css ` .on { outline: dotted 2px ${theme.label}; outline-offset: -1px; border-radius: 3px; } label: containerBorder; `; const hover = common_1.css ` background-color: grey; label: hover; transition: padding 0.3s; `; exports.caret = common_1.css ` width: 10px; margin-right: 6px; opacity: 0.7; font-size: 12px; `; exports.hoverStates = { hoverDataset: common_1.css ` ${hover} opacity: 0.5; `, off: common_1.css ` background-color: transparent; label: off; `, hover, error: common_1.css ` background-color: #ff9999; label: error; `, leftHover: common_1.css ` ${hover}; background-color: white; padding-left: 15px; label: hoverLeft; `, rightHover: common_1.css ` ${hover}; background-color: white; padding-right: 15px; label: hoverRight; `, topHover: common_1.css ` ${hover}; background-color: white; padding-top: 10px; label: hoverTop; `, bottomHover: common_1.css ` ${hover}; background-color: white; padding-bottom: 10px; label: hoverBottom; ` }; //# sourceMappingURL=layouts_styles.js.map