Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104926953
setupjss.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Mar 13, 10:29
Size
1 KB
Mime Type
text/x-java
Expires
Sat, Mar 15, 10:29 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24881900
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
setupjss.js
View Options
import "core-js/modules/es.object.assign";
import { create } from 'jss';
import global from 'jss-plugin-global';
import isolate from 'jss-plugin-isolate';
import nested from 'jss-plugin-nested';
import camelCase from 'jss-plugin-camel-case';
import defaultUnit from 'jss-plugin-default-unit';
import compose from 'jss-plugin-compose';
import nonInheritedProps from './nonInheritedProps';
var createGenerateId = function createGenerateId() {
var counter = 0;
return function (rule) {
return "rsg--" + rule.key + "-" + counter++;
};
};
var jss = create({
createGenerateId: createGenerateId,
plugins: [global(), isolate({
reset: Object.assign({}, nonInheritedProps, {
// “Global” styles for all components
boxSizing: 'border-box',
// Allow inheritance because it may be set on body and should be available for user components
color: 'inherit',
font: 'inherit',
fontFamily: 'inherit',
fontSize: 'inherit',
fontWeight: 'inherit',
lineHeight: 'inherit'
})
}), nested(), camelCase(), defaultUnit(), compose()]
});
export default jss;
Event Timeline
Log In to Comment