UNPKG

@instructure/quiz-interactions

Version:

A React UI component Library for quiz interaction types.

46 lines (45 loc) 1.43 kB
function _define_property(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var generateStyle = function(componentTheme) { var printMq = '@media print'; return { fileDropContent: { display: 'flex', justifyContent: 'center', alignItems: 'center', padding: "".concat(componentTheme.fileDropContentPadding, " 0"), backgroundColor: componentTheme.fileDropContentBackgroundColor }, fileDropContentIcon: { display: 'flex', fontSize: componentTheme.fileDropContentIconFontSize }, fileDropContentLabel: { paddingLeft: componentTheme.fileDropContentLabelPadding, display: 'flex', fontFamily: componentTheme.fileDropContentFontFamily }, fileDropContentLabelBrowse: { paddingLeft: componentTheme.fileDropContentLabelBrowsePadding, color: componentTheme.fileDropContentLabelBrowseColor, textDecoration: 'underline' }, printOnly: _define_property({ display: 'none' }, printMq, { display: 'block' }) }; }; export default generateStyle;