Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
fix(Table): More compact tables on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Broström authored and bstream committed Jun 1, 2017
1 parent 88afb87 commit befa6ca
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
16 changes: 12 additions & 4 deletions src/components/td/td-styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ export default createStyleSheet('Td', theme => {
...styleUtils.ellipsis(),
fontFamily: typography.primary.fontFamily,
fontWeight: 'inherit',
fontSize: 14,
minWidth: 40,
paddingTop: 20,
paddingBottom: 20,

fontSize: 12,
minWidth: 20,
paddingTop: 8,
paddingBottom: 8,

[mixins.media('sm')]: {
fontSize: 14,
minWidth: 40,
paddingTop: 20,
paddingBottom: 20,
},
},
};
});
12 changes: 9 additions & 3 deletions src/components/th/th-styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ export default createStyleSheet('Th', theme => {
...styleUtils.align(),
...styleUtils.ellipsis(),
fontFamily: typography.primary.fontFamily,
fontWeight: 500,
minWidth: 40,
paddingBottom: 10,
fontWeight: typography.fontWeightSemiBold,

minWidth: 20,
paddingBottom: 4,

[mixins.media('sm')]: {
minWidth: 40,
paddingBottom: 10,
},
},
};
});
8 changes: 6 additions & 2 deletions src/components/thead/thead-styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ export default createStyleSheet('Thead', theme => {
fontWeight: 'bold',
borderColor: color.gray,
borderBottom: `2px solid ${palette.shades.dark.text.muted}`,
paddingBottom: '10px',
letterSpacing: '1px',
fontSize: '12px',
...styleUtils.sizes(),
width: '100%',
fontSize: 12,
paddingBottom: 4,

[mixins.media('sm')]: {
paddingBottom: 10,
},

'&.primary': {
background: color.gray,
Expand Down

0 comments on commit befa6ca

Please sign in to comment.