Font tweaks (#5597)
* Increase fontWeight on android * Use atoms for a couple stray fontWeights * Rm unused file
This commit is contained in:
+3
-3
@@ -276,13 +276,13 @@ export const atoms = {
|
|||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
},
|
},
|
||||||
font_normal: {
|
font_normal: {
|
||||||
fontWeight: tokens.fontWeight.regular,
|
fontWeight: tokens.fontWeight.normal,
|
||||||
},
|
},
|
||||||
font_bold: {
|
font_bold: {
|
||||||
fontWeight: tokens.fontWeight.semibold,
|
fontWeight: tokens.fontWeight.bold,
|
||||||
},
|
},
|
||||||
font_heavy: {
|
font_heavy: {
|
||||||
fontWeight: tokens.fontWeight.extrabold,
|
fontWeight: tokens.fontWeight.heavy,
|
||||||
},
|
},
|
||||||
italic: {
|
italic: {
|
||||||
fontStyle: 'italic',
|
fontStyle: 'italic',
|
||||||
|
|||||||
+5
-8
@@ -1,6 +1,6 @@
|
|||||||
import {Platform} from 'react-native'
|
import {isAndroid} from '#/platform/detection'
|
||||||
|
|
||||||
export const TRACKING = Platform.OS === 'android' ? 0.1 : 0
|
export const TRACKING = isAndroid ? 0.1 : 0
|
||||||
|
|
||||||
export const color = {
|
export const color = {
|
||||||
temp_purple: 'rgb(105 0 255)',
|
temp_purple: 'rgb(105 0 255)',
|
||||||
@@ -51,12 +51,9 @@ export const borderRadius = {
|
|||||||
* These correspond to Inter font files we actually load.
|
* These correspond to Inter font files we actually load.
|
||||||
*/
|
*/
|
||||||
export const fontWeight = {
|
export const fontWeight = {
|
||||||
regular: '400',
|
normal: '400',
|
||||||
// medium: '500',
|
bold: isAndroid ? '700' : '600',
|
||||||
semibold: '600',
|
heavy: isAndroid ? '900' : '800',
|
||||||
// bold: '700',
|
|
||||||
extrabold: '800',
|
|
||||||
// black: '900',
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export const gradients = {
|
export const gradients = {
|
||||||
|
|||||||
+40
-39
@@ -2,6 +2,7 @@ import {Platform} from 'react-native'
|
|||||||
|
|
||||||
import {tokens} from '#/alf'
|
import {tokens} from '#/alf'
|
||||||
import {darkPalette, dimPalette, lightPalette} from '#/alf/themes'
|
import {darkPalette, dimPalette, lightPalette} from '#/alf/themes'
|
||||||
|
import {fontWeight} from '#/alf/tokens'
|
||||||
import {colors} from './styles'
|
import {colors} from './styles'
|
||||||
import type {Theme} from './ThemeContext'
|
import type {Theme} from './ThemeContext'
|
||||||
|
|
||||||
@@ -90,195 +91,195 @@ export const defaultTheme: Theme = {
|
|||||||
'2xl-thin': {
|
'2xl-thin': {
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'2xl': {
|
'2xl': {
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'2xl-medium': {
|
'2xl-medium': {
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'2xl-bold': {
|
'2xl-bold': {
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'2xl-heavy': {
|
'2xl-heavy': {
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '800',
|
fontWeight: fontWeight.heavy,
|
||||||
},
|
},
|
||||||
'xl-thin': {
|
'xl-thin': {
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
xl: {
|
xl: {
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'xl-medium': {
|
'xl-medium': {
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'xl-bold': {
|
'xl-bold': {
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'xl-heavy': {
|
'xl-heavy': {
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '800',
|
fontWeight: fontWeight.heavy,
|
||||||
},
|
},
|
||||||
'lg-thin': {
|
'lg-thin': {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
lg: {
|
lg: {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'lg-medium': {
|
'lg-medium': {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'lg-bold': {
|
'lg-bold': {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'lg-heavy': {
|
'lg-heavy': {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '800',
|
fontWeight: fontWeight.heavy,
|
||||||
},
|
},
|
||||||
'md-thin': {
|
'md-thin': {
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
md: {
|
md: {
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'md-medium': {
|
'md-medium': {
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'md-bold': {
|
'md-bold': {
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'md-heavy': {
|
'md-heavy': {
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '800',
|
fontWeight: fontWeight.heavy,
|
||||||
},
|
},
|
||||||
'sm-thin': {
|
'sm-thin': {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
sm: {
|
sm: {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'sm-medium': {
|
'sm-medium': {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'sm-bold': {
|
'sm-bold': {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'sm-heavy': {
|
'sm-heavy': {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '800',
|
fontWeight: fontWeight.heavy,
|
||||||
},
|
},
|
||||||
'xs-thin': {
|
'xs-thin': {
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
xs: {
|
xs: {
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'xs-medium': {
|
'xs-medium': {
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'xs-bold': {
|
'xs-bold': {
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'xs-heavy': {
|
'xs-heavy': {
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '800',
|
fontWeight: fontWeight.heavy,
|
||||||
},
|
},
|
||||||
|
|
||||||
'title-2xl': {
|
'title-2xl': {
|
||||||
fontSize: 34,
|
fontSize: 34,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'title-xl': {
|
'title-xl': {
|
||||||
fontSize: 28,
|
fontSize: 28,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
'title-lg': {
|
'title-lg': {
|
||||||
fontSize: 22,
|
fontSize: 22,
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
},
|
},
|
||||||
'title-sm': {
|
'title-sm': {
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
},
|
},
|
||||||
'post-text': {
|
'post-text': {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'post-text-lg': {
|
'post-text-lg': {
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
fontWeight: '400',
|
fontWeight: fontWeight.normal,
|
||||||
},
|
},
|
||||||
'button-lg': {
|
'button-lg': {
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
fontWeight: '600',
|
fontWeight: fontWeight.bold,
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
letterSpacing: tokens.TRACKING,
|
letterSpacing: tokens.TRACKING,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export function ProfileHeaderDisplayName({
|
|||||||
t.atoms.text,
|
t.atoms.text,
|
||||||
gtMobile ? a.text_4xl : a.text_3xl,
|
gtMobile ? a.text_4xl : a.text_3xl,
|
||||||
a.self_start,
|
a.self_start,
|
||||||
{fontWeight: '600'},
|
a.font_heavy,
|
||||||
]}>
|
]}>
|
||||||
{sanitizeDisplayName(
|
{sanitizeDisplayName(
|
||||||
profile.displayName || sanitizeHandle(profile.handle),
|
profile.displayName || sanitizeHandle(profile.handle),
|
||||||
|
|||||||
@@ -1,207 +0,0 @@
|
|||||||
import * as React from 'react'
|
|
||||||
import {StyleSheet, View} from 'react-native'
|
|
||||||
import {
|
|
||||||
H1 as ExpoH1,
|
|
||||||
H2 as ExpoH2,
|
|
||||||
H3 as ExpoH3,
|
|
||||||
H4 as ExpoH4,
|
|
||||||
} from '@expo/html-elements'
|
|
||||||
|
|
||||||
import {usePalette} from '#/lib/hooks/usePalette'
|
|
||||||
import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
|
|
||||||
import {useTheme} from '#/lib/ThemeContext'
|
|
||||||
import {TextLink} from './Link'
|
|
||||||
import {Text} from './text/Text'
|
|
||||||
|
|
||||||
/**
|
|
||||||
* These utilities are used to define long documents in an html-like
|
|
||||||
* DSL. See for instance /locale/en/privacy-policy.tsx
|
|
||||||
*/
|
|
||||||
|
|
||||||
interface IsChildProps {
|
|
||||||
isChild?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
// type ReactNodeWithIsChildProp =
|
|
||||||
// | React.ReactElement<IsChildProps>
|
|
||||||
// | React.ReactElement<IsChildProps>[]
|
|
||||||
// | React.ReactNode
|
|
||||||
|
|
||||||
export function H1({children}: React.PropsWithChildren<{}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
const typography = useTheme().typography['title-xl']
|
|
||||||
// @ts-ignore Expo's TextStyle definition seems to have gotten away from RN's -prf
|
|
||||||
return <ExpoH1 style={[typography, pal.text, styles.h1]}>{children}</ExpoH1>
|
|
||||||
}
|
|
||||||
|
|
||||||
export function H2({children}: React.PropsWithChildren<{}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
const typography = useTheme().typography['title-lg']
|
|
||||||
// @ts-ignore Expo's TextStyle definition seems to have gotten away from RN's -prf
|
|
||||||
return <ExpoH2 style={[typography, pal.text, styles.h2]}>{children}</ExpoH2>
|
|
||||||
}
|
|
||||||
|
|
||||||
export function H3({children}: React.PropsWithChildren<{}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
const typography = useTheme().typography.title
|
|
||||||
// @ts-ignore Expo's TextStyle definition seems to have gotten away from RN's -prf
|
|
||||||
return <ExpoH3 style={[typography, pal.text, styles.h3]}>{children}</ExpoH3>
|
|
||||||
}
|
|
||||||
|
|
||||||
export function H4({children}: React.PropsWithChildren<{}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
const typography = useTheme().typography['title-sm']
|
|
||||||
// @ts-ignore Expo's TextStyle definition seems to have gotten away from RN's -prf
|
|
||||||
return <ExpoH4 style={[typography, pal.text, styles.h4]}>{children}</ExpoH4>
|
|
||||||
}
|
|
||||||
|
|
||||||
export function P({children}: React.PropsWithChildren<{}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
return (
|
|
||||||
<Text type="md" style={[pal.text, styles.p]}>
|
|
||||||
{children}
|
|
||||||
</Text>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function UL({children, isChild}: React.PropsWithChildren<IsChildProps>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
return (
|
|
||||||
<View style={[styles.ul, isChild && styles.ulChild]}>
|
|
||||||
{markChildProps(children)}
|
|
||||||
</View>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function OL({children, isChild}: React.PropsWithChildren<IsChildProps>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
return (
|
|
||||||
<View style={[styles.ol, isChild && styles.olChild]}>
|
|
||||||
{markChildProps(children)}
|
|
||||||
</View>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function LI({
|
|
||||||
children,
|
|
||||||
value,
|
|
||||||
}: React.PropsWithChildren<{value?: string}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
return (
|
|
||||||
<View style={styles.li}>
|
|
||||||
<Text style={[pal.text, styles.liBullet]}>{value || <>•</>}</Text>
|
|
||||||
<Text type="md" style={[pal.text, styles.liText]}>
|
|
||||||
{markChildProps(children)}
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function A({children, href}: React.PropsWithChildren<{href: string}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
return (
|
|
||||||
<TextLink
|
|
||||||
type="md"
|
|
||||||
style={[pal.link, styles.a]}
|
|
||||||
text={children}
|
|
||||||
href={href}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function STRONG({children}: React.PropsWithChildren<{}>) {
|
|
||||||
const pal = usePalette('default')
|
|
||||||
return (
|
|
||||||
<Text type="md-medium" style={[pal.text]}>
|
|
||||||
{children}
|
|
||||||
</Text>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function EM({children}: React.PropsWithChildren<{}>) {
|
|
||||||
const styles = useStyles()
|
|
||||||
const pal = usePalette('default')
|
|
||||||
return (
|
|
||||||
<Text type="md" style={[pal.text, styles.em]}>
|
|
||||||
{children}
|
|
||||||
</Text>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function markChildProps(children: React.ReactNode) {
|
|
||||||
return React.Children.map(children, child => {
|
|
||||||
if (React.isValidElement(child)) {
|
|
||||||
return React.cloneElement<IsChildProps>(
|
|
||||||
child as React.ReactElement<IsChildProps>,
|
|
||||||
{isChild: true},
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return child
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const useStyles = () => {
|
|
||||||
const {isDesktop} = useWebMediaQueries()
|
|
||||||
return StyleSheet.create({
|
|
||||||
h1: {
|
|
||||||
marginTop: 20,
|
|
||||||
marginBottom: 10,
|
|
||||||
letterSpacing: 0.8,
|
|
||||||
},
|
|
||||||
h2: {
|
|
||||||
marginTop: 20,
|
|
||||||
marginBottom: 10,
|
|
||||||
letterSpacing: 0.8,
|
|
||||||
},
|
|
||||||
h3: {
|
|
||||||
marginTop: 0,
|
|
||||||
marginBottom: 10,
|
|
||||||
},
|
|
||||||
h4: {
|
|
||||||
marginTop: 0,
|
|
||||||
marginBottom: 10,
|
|
||||||
fontWeight: '600',
|
|
||||||
},
|
|
||||||
p: {
|
|
||||||
marginBottom: 10,
|
|
||||||
},
|
|
||||||
ul: {
|
|
||||||
marginBottom: 10,
|
|
||||||
paddingLeft: isDesktop ? 18 : 4,
|
|
||||||
},
|
|
||||||
ulChild: {
|
|
||||||
paddingTop: 10,
|
|
||||||
marginBottom: 0,
|
|
||||||
},
|
|
||||||
ol: {
|
|
||||||
marginBottom: 10,
|
|
||||||
paddingLeft: isDesktop ? 18 : 4,
|
|
||||||
},
|
|
||||||
olChild: {
|
|
||||||
paddingTop: 10,
|
|
||||||
marginBottom: 0,
|
|
||||||
},
|
|
||||||
li: {
|
|
||||||
flexDirection: 'row',
|
|
||||||
paddingRight: 20,
|
|
||||||
marginBottom: 10,
|
|
||||||
},
|
|
||||||
liBullet: {
|
|
||||||
paddingRight: 10,
|
|
||||||
},
|
|
||||||
liText: {},
|
|
||||||
a: {
|
|
||||||
marginBottom: 10,
|
|
||||||
},
|
|
||||||
em: {
|
|
||||||
fontStyle: 'italic',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
@@ -590,7 +590,9 @@ function MenuItem({
|
|||||||
? styles.menuItemCountTens
|
? styles.menuItemCountTens
|
||||||
: undefined,
|
: undefined,
|
||||||
]}>
|
]}>
|
||||||
<Text style={styles.menuItemCountLabel} numberOfLines={1}>
|
<Text
|
||||||
|
style={[styles.menuItemCountLabel, a.font_bold]}
|
||||||
|
numberOfLines={1}>
|
||||||
{count}
|
{count}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -666,7 +668,6 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
menuItemCountLabel: {
|
menuItemCountLabel: {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: '600',
|
|
||||||
fontVariant: ['tabular-nums'],
|
fontVariant: ['tabular-nums'],
|
||||||
color: colors.white,
|
color: colors.white,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user