Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions lunaria/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,16 @@ export const StatusByFile = (
<h2 id="by-file">
<a href="#by-file">Translation status by file</a>
</h2>
<table class="status-by-file">
<thead>
<tr>
${['File', ...locales.map(({ lang }) => lang)].map(col => html`<th>${col}</th>`)}
</tr>
</thead>
${TableBody(status, locales, lunaria)}
</table>
<div class="status-by-file-wrapper">
<table class="status-by-file">
<thead>
<tr>
${['File', ...locales.map(({ lang }) => lang)].map(col => html`<th>${col}</th>`)}
</tr>
</thead>
${TableBody(status, locales, lunaria)}
</table>
</div>
<sup class="capitalize">❌ missing &nbsp; 🔄 outdated &nbsp; ✔ done </sup>
`
}
Expand Down
23 changes: 16 additions & 7 deletions lunaria/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const BaseStyles = html`
--ln-color-link: var(--ln-color-blue);
--ln-color-done: var(--ln-color-purple);
--ln-color-outdated: var(--ln-color-orange);
--ln-color-missing: var(--ln-color-black);
--ln-color-missing: #ef4444;
--ln-color-table-border: var(--ln-color-gray-3);
--ln-color-table-background: var(--ln-color-gray-1);
}
Expand Down Expand Up @@ -175,12 +175,17 @@ export const BaseStyles = html`
font-size: 0.75rem;
}

.status-by-file {
.status-by-file-wrapper {
overflow-x: auto;
margin-bottom: 1rem;
border-collapse: collapse;
border: 1px solid var(--ln-color-table-border);
border-radius: 0.375rem;
scrollbar-color: var(--ln-color-gray-6) var(--ln-color-gray-2);
}

.status-by-file {
border-collapse: collapse;
font-size: 0.8125rem;
column-gap: 64px;
}

.status-by-file tr:first-of-type td {
Expand Down Expand Up @@ -296,9 +301,9 @@ export const CustomStyles = html`
--ln-color-link: #539bf5;
--ln-color-table-background: var(--bg-subtle);
--ln-color-table-border: var(--border);
--ln-color-background: var(--theme-bg-gradient);
--ln-color-black: var(--theme-text);
--ln-color-missing: var(--ln-color-black);
--ln-color-background: var(--bg);
--ln-color-black: var(--fg);
--ln-color-missing: #f87171;
--ln-color-outdated: #fb923c;
--ln-color-done: #c084fc;
}
Expand All @@ -307,6 +312,10 @@ export const CustomStyles = html`
background-color: var(--bg);
}

body {
color: var(--fg);
}

h1,
h2,
h3,
Expand Down
Loading