This commit is contained in:
hobbes7878 2025-04-18 21:37:31 +01:00
parent 6125ee464b
commit 3b88bb7083
Failed to extract signature
11 changed files with 13 additions and 14 deletions

View file

@ -28,8 +28,8 @@ div pre.prismjs {
pre[class*='language-'] {
color: #f8f8f2;
background: none;
font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono',
monospace;
font-family:
'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;

View file

@ -126,4 +126,4 @@
"bugs": {
"url": "https://github.com/reuters-graphics/graphics-components/issues"
}
}
}

View file

@ -22,7 +22,8 @@
div {
min-height: 200vh;
background-size: 40px 40px;
background-image: linear-gradient(to right, lightgrey 1px, transparent 1px),
background-image:
linear-gradient(to right, lightgrey 1px, transparent 1px),
linear-gradient(to bottom, lightgrey 1px, transparent 1px);
}
</style>

View file

@ -99,7 +99,6 @@ To hyperlink to different pages or email addresses, pass a custom function to th
return `mailto:${author.replace(' ', '')}@example.com`;
}}
/>
```
<Canvas of={BylineStories.CustomAuthorPage} />

View file

@ -39,9 +39,7 @@ Optionally, you can add authors and a publish time to the headline, which the `H
section={'Global news'}
authors={['Jane Doe']}
publishTime={new Date('2020-01-01').toISOString()}
getAuthorPage={(author: string) => {
return `mailto:${author.replace(' ', '')}@example.com`;
}}
getAuthorPage={(author: string) => `mailto:${author.replace(' ', '')}@example.com`}
/>
```

View file

@ -326,4 +326,4 @@ Add styles in `global.scss`:
}
```
<Canvas of={HeroHeadlineStories.CustomHed} />{' '}
<Canvas of={HeroHeadlineStories.CustomHed} />

View file

@ -18,4 +18,4 @@
fill: mixins.$theme-colour-brand-rules;
}
}
</style>
</style>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -30,4 +30,4 @@
fill: mixins.$theme-colour-background;
}
}
</style>
</style>

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

2
src/globals.d.ts vendored
View file

@ -32,4 +32,4 @@ declare global {
}
}
export { };
export {};

View file

@ -56,7 +56,8 @@
font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif !important;
}
@mixin \!font-knowledge {
font-family: 'Knowledge', 'Source Sans Pro', Arial, Helvetica, sans-serif !important;
font-family:
'Knowledge', 'Source Sans Pro', Arial, Helvetica, sans-serif !important;
}
@mixin \!font-freight-text {
font-family: 'FreightText', serif !important;

View file

@ -12,4 +12,4 @@ export const random4 = () =>
export const getAuthorPageUrl = (author: string): string => {
const authorSlug = slugify(author.trim(), { lower: true });
return `https://www.reuters.com/authors/${authorSlug}/`;
};
};