Skip to content

Commit

Permalink
Merge pull request #5772 from nathanmarks/update-jss
Browse files Browse the repository at this point in the history
Update jss/jss-theme-reactor
  • Loading branch information
nathanmarks authored Dec 13, 2016
2 parents 15255a0 + 4a14923 commit 898d1d7
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 53 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[ignore]

.*/node_modules/fbjs/*
.*/node_modules/jss/lib/.*\.js\.flow
.*/node_modules/react-swipeable-views/src/.*
./scripts/*
./test/e2e/*
Expand Down
56 changes: 28 additions & 28 deletions docs/site/src/components/AppFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,37 @@ import withWidth, { isWidthUp } from 'material-ui/utils/withWidth';
import AppDrawer from './AppDrawer';

const globalStyleSheet = createStyleSheet('global', (theme) => ({
html: {
boxSizing: 'border-box',
},
'*, *:before, *:after': {
boxSizing: 'inherit',
},
body: {
margin: 0,
background: theme.palette.background.default,
fontFamily: theme.typography.fontFamily,
color: theme.palette.text.primary,
lineHeight: '1.2',
overflowX: 'hidden',
WebkitFontSmoothing: 'antialiased', // Antialiasing.
MozOsxFontSmoothing: 'grayscale', // Antialiasing.
},
a: {
color: theme.palette.accent.A400,
textDecoration: 'none',
'&:hover': {
'@global': {
html: {
boxSizing: 'border-box',
},
'*, *:before, *:after': {
boxSizing: 'inherit',
},
body: {
margin: 0,
background: theme.palette.background.default,
fontFamily: theme.typography.fontFamily,
color: theme.palette.text.primary,
lineHeight: '1.2',
overflowX: 'hidden',
WebkitFontSmoothing: 'antialiased', // Antialiasing.
MozOsxFontSmoothing: 'grayscale', // Antialiasing.
},
a: {
color: theme.palette.accent.A400,
textDecoration: 'none',
},
'a:hover': {
textDecoration: 'underline',
},
img: {
maxWidth: '100%',
height: 'auto',
width: 'auto',
},
},
img: {
maxWidth: '100%',
height: 'auto',
width: 'auto',
},
}), {
named: false, // global CSS.
});
}));

const styleSheet = createStyleSheet('AppFrame', (theme) => {
return {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"dependencies": {
"classnames": "^2.2.5",
"dom-helpers": "^3.0.0",
"jss-preset-default": "^0.9.0",
"jss-theme-reactor": "^0.6.0",
"jss-preset-default": "^1.1.0",
"jss-theme-reactor": "^0.8.0",
"keycode": "^2.1.1",
"lodash": "^4.17.2",
"object-assign": "^4.1.0",
Expand Down
48 changes: 25 additions & 23 deletions test/regressions/site/src/TestViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,35 @@ import { createStyleSheet } from 'jss-theme-reactor';
const globalStyleSheet = createStyleSheet('global', (theme) => {
const { palette, typography } = theme;
return {
html: {
boxSizing: 'border-box',
},
'*, *:before, *:after': {
boxSizing: 'inherit',
},
body: {
margin: 0,
background: palette.background.default,
fontFamily: typography.fontFamily,
color: palette.text.primary,
lineHeight: '1.2',
overflowX: 'hidden',
WebkitFontSmoothing: 'antialiased',
},
a: {
color: palette.accent.A400,
textDecoration: 'none',
'&:hover': {
'@global': {
html: {
boxSizing: 'border-box',
},
'*, *:before, *:after': {
boxSizing: 'inherit',
},
body: {
margin: 0,
background: palette.background.default,
fontFamily: typography.fontFamily,
color: palette.text.primary,
lineHeight: '1.2',
overflowX: 'hidden',
WebkitFontSmoothing: 'antialiased',
},
a: {
color: palette.accent.A400,
textDecoration: 'none',
},
'@:hover': {
textDecoration: 'underline',
},
},
p: {
lineHeight: '1.6',
p: {
lineHeight: '1.6',
},
},
};
}, { named: false });
});

const styleSheet = createStyleSheet('TestViewer', (theme) => {
const { palette } = theme;
Expand Down

0 comments on commit 898d1d7

Please sign in to comment.