qilin-components
Version:
Components used by Qilin editor and Qilin plugins
50 lines (38 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const Input = _styledComponents.default.input.attrs({
type: "color"
})`
&::-webkit-color-swatch,
&::-webkit-color-swatch-wrapper {
border-width: 0;
border-radius: 50%;
padding: 0;
margin: 0;
}
display: flex;
align-items: center;
justify-content: center;
vertical-align: middle;
width: 30px;
height: 30px;
outline: none;
cursor: pointer;
border-width: 1px;
border-style: solid;
border-radius: 50%;
border-color: ${props => props.theme.border};
background-color: ${props => props.theme.background};
color: ${props => props.theme.foreground};
padding: 0;
margin: 9px;
-webkit-app-region: no-drag;
appearance: none;
`;
var _default = Input;
exports.default = _default;