@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
57 lines • 2.16 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var typestyle_1 = require("typestyle");
var utils_1 = require("../../../Common/theming/utils");
exports.MenuStyle = function (theme, _a) {
var top = _a.top, left = _a.left, isVisible = _a.isVisible;
return typestyle_1.style({
position: "fixed",
top: top,
left: left,
padding: utils_1.toRem(5) + " 0",
margin: utils_1.toRem(2) + " 0 0",
fontSize: utils_1.toRem(16),
color: theme.colorMap.primaryFg,
textAlign: 'left',
backgroundColor: '#fff',
backgroundClip: 'padding-box',
border: '1px solid rgba(0,0,0,.15)',
borderRadius: utils_1.toRem(4),
outline: 'none',
opacity: isVisible ? 1 : 0,
zIndex: isVisible ? 9999 : -1,
pointeEvents: isVisible ? 'auto' : 'none',
$nest: {
'& .up-contextmenu-link': {
display: 'inline-block',
width: '100%',
padding: utils_1.toRem(3) + " " + utils_1.toRem(20),
clear: 'both',
fontWeight: 400,
lineHeight: 1.5,
color: theme.colorMap.primary,
textAlign: 'inherit',
whiteSpace: 'nowrap',
background: 'transparent',
border: 0,
textDecoration: 'none',
},
'& .up-contextmenu-link.active,& .up-contextmenu-link:hover': {
color: theme.colorMap.primaryFg,
backgroundColor: theme.colorMap.primary,
borderColor: theme.colorMap.primaryDark,
textDecoration: 'none',
},
'& .up-contextmenu-item.submenu > a': {
paddingRight: utils_1.toRem(27),
},
'& .up-contextmenu-item.submenu > a:after': {
content: "▶",
display: 'inline-block',
position: 'absolute',
right: utils_1.toRem(7),
}
}
});
};
//# sourceMappingURL=styles.js.map