mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-11-29 13:58:02 +03:00
Adjust themes
This commit is contained in:
parent
69474bc693
commit
a0a5af7dc0
@ -5,11 +5,8 @@ import Counter from './Counter'
|
|||||||
import future from '@mdx-deck/themes/future'
|
import future from '@mdx-deck/themes/future'
|
||||||
import aspect from '@mdx-deck/themes/aspect'
|
import aspect from '@mdx-deck/themes/aspect'
|
||||||
|
|
||||||
import { hack } from '@mdx-deck/themes'
|
|
||||||
|
|
||||||
export const themes = [
|
export const themes = [
|
||||||
hack,
|
future,
|
||||||
// future,
|
|
||||||
aspect,
|
aspect,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
import merge from 'lodash.merge'
|
||||||
import aspect from './aspect'
|
import aspect from './aspect'
|
||||||
|
|
||||||
export default {
|
export default theme =>
|
||||||
...aspect,
|
merge(theme, aspect(theme), {
|
||||||
aspectRatio: 9 / 16,
|
aspectRatio: 9 / 16,
|
||||||
}
|
})
|
||||||
|
@ -1,15 +1,25 @@
|
|||||||
export default {
|
import merge from 'lodash.merge'
|
||||||
aspectRatio: 9 / 16,
|
|
||||||
css: {
|
export default theme => {
|
||||||
fontSize: '1em',
|
if (theme && theme.css) {
|
||||||
'@media screen and (min-width:56em)': {
|
// remove responsive styles from built-in themes
|
||||||
fontSize: 'inherit',
|
delete theme.css['@media screen and (min-width:56em)']
|
||||||
|
delete theme.css['@media screen and (min-width:64em)']
|
||||||
|
}
|
||||||
|
|
||||||
|
return merge(theme, {
|
||||||
|
aspectRatio: 9 / 16,
|
||||||
|
css: {
|
||||||
|
fontSize: '1em',
|
||||||
|
'@media screen and (min-width:56em)': {
|
||||||
|
fontSize: 'inherit',
|
||||||
|
},
|
||||||
|
'@media screen and (min-width:64em)': {
|
||||||
|
fontSize: 'inherit',
|
||||||
|
},
|
||||||
|
'@media print': {
|
||||||
|
fontSize: 'inherit',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'@media screen and (min-width:64em)': {
|
})
|
||||||
fontSize: 'inherit',
|
|
||||||
},
|
|
||||||
'@media print': {
|
|
||||||
fontSize: 'inherit',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user