1
0
mirror of https://github.com/umputun/reproxy.git synced 2025-02-16 18:34:30 +02:00

fix scroll to chapter in safari

This commit is contained in:
Pavel Mineev 2021-04-17 00:16:41 +03:00 committed by Umputun
parent bf84ffe096
commit 64d2b8b8ea
2 changed files with 16 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
const colors = require('tailwindcss/colors')
const { spacing } = require('tailwindcss/defaultTheme')
const { spacing, width } = require('tailwindcss/defaultTheme')
module.exports = {
mode: 'jit',
@ -25,7 +25,8 @@ module.exports = {
paddingRight: spacing[12],
color: theme('colors.gray.700'),
'h2,h3,h4': {
'scroll-margin-top': spacing[24],
paddingTop: spacing[24],
marginTop: '-3rem',
},
'blockquote p:first-of-type::before': false,
'blockquote p:last-of-type::after': false,
@ -46,11 +47,19 @@ module.exports = {
paddingRight: spacing[2],
borderRadius: spacing[1],
},
hr: {
borderTopWidth: '2px',
borderColor: theme('colors.gray.700'),
}
},
},
lg: {
css: {
lineHeight: 1.5,
'h2,h3,h4': {
paddingTop: spacing[24],
marginTop: '-3rem',
},
},
},
dark: {
@ -112,6 +121,9 @@ module.exports = {
'tbody tr': {
borderBottomColor: theme('colors.gray.600'),
},
hr: {
borderColor: theme('colors.gray.500'),
}
},
],
},