Skip to content

Commit 0086f2a

Browse files
fix dev vs prod css import order, and lint
1 parent c8da473 commit 0086f2a

8 files changed

Lines changed: 15 additions & 8 deletions

File tree

site/.prettierrc.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default {
66
"prettier-plugin-css-order",
77
],
88
importOrder: [
9+
"^@/layouts/Layout.astro",
910
"^react",
1011
"^[a-zA-Z]",
1112
"^@[a-zA-Z]",

site/src/components/Heading.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ const Component = `h${level}`;
3333
}
3434

3535
.anchor {
36+
width: 0;
3637
color: var(--primary);
3738
white-space: nowrap;
3839
opacity: 0;
3940
transition: opacity var(--fast);
40-
width: 0;
4141
}
4242

4343
.heading:hover .anchor,

site/src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2+
import "./global.css";
23
import { GoogleAnalytics } from "astro-google-analytics";
34
import Footer from "@/components/Footer.astro";
45
import Header from "@/components/Header.astro";
56
import Tooltips from "@/components/Tooltips.astro";
67
import ViewCorner from "@/components/ViewCorner";
7-
import "./global.css";
88
99
const title = Astro.props.frontmatter?.title || Astro.props.title;
1010

site/src/pages/about.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Layout from "@/layouts/Layout.astro";
23
import { FaGithub } from "react-icons/fa6";
34
import { LuBadgeInfo } from "react-icons/lu";
45
import { kebabCase } from "lodash-es";
@@ -7,7 +8,6 @@ import Heading from "@/components/Heading.astro";
78
import Link from "@/components/Link";
89
import TableOfContents from "@/components/TableOfContents";
910
import { team } from "@/data/team";
10-
import Layout from "@/layouts/Layout.astro";
1111
import { repo } from "@/layouts/meta";
1212
---
1313

site/src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2+
import Layout from "@/layouts/Layout.astro";
23
import { FaNewspaper } from "react-icons/fa6";
34
import { LiaBarcodeSolid } from "react-icons/lia";
45
import Logo from "@/assets/logo.svg?react";
56
import Button from "@/components/Button";
6-
import Layout from "@/layouts/Layout.astro";
77
---
88

99
<Layout title="Home">

site/src/pages/loci/[id].astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
/** LOCUS PAGE */
33
4+
import Layout from "@/layouts/Layout.astro";
45
import { FaCircleMinus, FaCirclePlus, FaRegCalendar } from "react-icons/fa6";
56
import { LiaBarcodeSolid, LiaSlashSolid } from "react-icons/lia";
67
import { TbDna2, TbVirus } from "react-icons/tb";
@@ -12,7 +13,6 @@ import TableOfContents from "@/components/TableOfContents";
1213
import { deriveLocus } from "@/data/derived";
1314
import { getIdentifiers } from "@/data/identifiers";
1415
import { getInheritance } from "@/data/inheritance";
15-
import Layout from "@/layouts/Layout.astro";
1616
import { repo } from "@/layouts/meta";
1717
import AdditionalLiterature from "@/locus/AdditionalLiterature";
1818
import Citation from "@/locus/Citation";
@@ -633,6 +633,7 @@ const blame = getJsonBlame(
633633
flex-wrap: wrap;
634634
/* justify-content: center; */
635635
gap: 40px;
636+
text-align: left;
636637
}
637638

638639
.identifiers > * {

site/src/pages/loci/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
/** LOCI PAGE */
33
4+
import Layout from "@/layouts/Layout.astro";
45
import { FaArrowDown, FaChartLine, FaGithub, FaTable } from "react-icons/fa6";
56
import { LiaBarcodeSolid } from "react-icons/lia";
67
import { LuDownload } from "react-icons/lu";
@@ -9,7 +10,6 @@ import Heading from "@/components/Heading.astro";
910
import Link from "@/components/Link";
1011
import PlotlyChart from "@/components/PlotlyChart";
1112
import TableOfContents from "@/components/TableOfContents";
12-
import Layout from "@/layouts/Layout.astro";
1313
import { repo, version } from "@/layouts/meta";
1414
import Table from "@/loci/Table";
1515
import ageOnset from "../../../../data/plots/age-onset.json";

site/src/pages/resources.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import styles from "./_resources.module.css";
1212

1313
<section>
1414

15-
<Heading level={1}><PiBooksBold client:only="react" />Resources</Heading>
15+
<Heading level={1}>
16+
<PiBooksBold client:only="react" />
17+
Resources
18+
</Heading>
1619

1720
</section>
1821

@@ -89,7 +92,9 @@ import styles from "./_resources.module.css";
8992

9093
<section>
9194

92-
<Heading level={3}>Why do repeat locus definitions differ between resources?</Heading>
95+
<Heading level={3}>
96+
Why do repeat locus definitions differ between resources?
97+
</Heading>
9398

9499
There are often multiple ways to define a given repeat locus.
95100
For example, defining a locus as a stretch of perfectly repeating motifs tends to result in a narrower locus than strategies allowing for interruptions.

0 commit comments

Comments
 (0)