8000 docs: touchups for a better Lighthouse score (#4167) · FDIM/typescript-eslint@e734a74 · GitHub < 8000 link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">
[go: up one dir, main page]

Skip to content

Commit e734a74

Browse files
author
Josh Goldberg
authored
docs: touchups for a better Lighthouse score (typescript-eslint#4167)
* fix: touchups for a better Lighthouse score * fix: px it is
1 parent 5a326e4 commit e734a74

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

packages/website/docusaurus.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ const config = {
6767
// hideOnScroll: true,
6868
logo: {
6969
alt: 'TypeScript ESLint',
70+
height: '32px',
7071
src: 'img/logo.svg',
71-
// srcDark: 'img/logo-dark.svg',
72+
width: '32px',
7273
},
7374
// style: 'primary',
7475
items: [

packages/website/src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
--ifm-color-primary-lightest: #80aaef;
1717
--ifm-code-font-size: 95%;
1818

19+
--ifm-color-info: var(--ifm-color-primary-dark);
20+
1921
--code-line-decoration: rgba(0, 0, 0, 0.1);
2022
}
2123

@@ -31,6 +33,9 @@ html[data-theme='dark'] {
3133

3234
--ifm-code-background: rgb(40, 42, 54);
3335
--ifm-code-color: rgb(248, 248, 242);
36+
--ifm-color-info: var(--ifm-color-primary-light);
37+
--ifm-menu-color-active: var(--ifm-color-primary-light);
38+
--ifm-navbar-link-hover-color: var(--ifm-color-primary-light);
3439

3540
--code-line-decoration: rgba(255, 255, 255, 0.1);
3641

packages/website/src/pages/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const features: FeatureItem[] = [
2828
/>
2929
</div>
3030
<div className="col col--8">
31-
<h4 className="text--justify">
31+
<h3 className="text--justify">
3232
<b>ESLint</b> is an awesome linter for JavaScript code.
33-
</h4>
33+
</h3>
3434
<p className="text--justify">
3535
ESLint statically analyzes your code to quickly find problems. It
< 8000 code>3636
allows creating a series of assertions called lint rules around
@@ -49,10 +49,10 @@ const features: FeatureItem[] = [
4949
/>
5050
</div>
5151
<div className="col col--8">
52-
<h4 className="text--justify">
52+
<h3 className="text--justify">
5353
<b>TypeScript</b> is a strongly typed programming language that
5454
builds on JavaScript.
55-
</h4>
55+
</h3>
5656
<p className="text--justify">
5757
TypeScript adds additional syntax to JavaScript that allows you to
5858
declare the shapes of objects and functions in code. It provides a

packages/website/src/pages/styles.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@
7373
border: none;
7474
}
7575
.tier-sponsor img {
76+
max-height: 90px;
7677
width: 90px;
7778
}
7879
.tier-supporter img {
80+
max-height: 60px;
7981
width: 60px;
8082
}

0 commit comments

Comments
 (0)
0