Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #76

Merged
merged 4 commits into from
Jan 10, 2025
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
4 changes: 2 additions & 2 deletions src/components/ExpandCollapseAll.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
<button
class="expand button button-secondary button-small"
disabled={!someCollapsed}
on:click={expandAll}>
on:click={expandAll} style="text-align: center; line-height: 1; padding: 5px;">
+ Expand All Sections
</button>
<button
class="collapse button button-secondary button-small"
disabled={!someExpanded}
on:click={collapseAll}>
on:click={collapseAll} style="text-align: center; line-height: 1; padding: 5px;">
− Collapse All Sections
</button>
</div>
3 changes: 3 additions & 0 deletions src/components/YourReport.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
top: 4em;
}
}
summary > :first-child::before{
align-content: center;
}

.your-report__heading {
font-weight: bold;
Expand Down
14 changes: 10 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,27 @@
h3,
h4 {
color: #162e51;
align-content: center;
}
a[target="_blank"]:after {
background: 0 0;
background-color: currentColor;
-webkit-mask: url("{{{ pathPrefix }}}/images/external-link.svg")
no-repeat center/contain;
width: 1.75ex;
mask: url("{{{ pathPrefix }}}/images/external-link.svg") no-repeat
center/contain;
content: "";
display: inline-block;
height: 1.75ex;
margin-left: 2px;
margin-top: 0.7ex;
margin-left: 0.3em;
width: 1.2em;
height: 1.2em;
vertical-align: text-bottom;
flex-shrink: 0;
}

summary > :first-child:before {
border-color: #162e51;
align-content: center;
}
.button.button-secondary,
button.button-secondary {
Expand Down
6 changes: 3 additions & 3 deletions src/routes/About.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
{#if $evaluation['catalog'] !== selectedCatalog }
<p><em>Select Switch Catalogs to save your new selection.</em></p>
{/if}
<button class="button" on:click={confirmCatalogChange} disabled={$evaluation['catalog'] === selectedCatalog}>Switch Catalogs</button>
<button class="button" on:click={resetCatalogChange} disabled={$evaluation['catalog'] === selectedCatalog}>Reset</button>
<button class="button" on:click={confirmCatalogChange} disabled={$evaluation['catalog'] === selectedCatalog} style="text-align: center; line-height: 1; padding: 10px;">Switch Catalogs</button>
<button class="button" on:click={resetCatalogChange} disabled={$evaluation['catalog'] === selectedCatalog} style="text-align: center; line-height: 1; padding: 10px;">Reset</button>
</details>

<details open>
Expand Down Expand Up @@ -431,7 +431,7 @@
<Related id={index} count={index + 1} on:DELETE="{handleRelatedDelete}" />
{/each}

<AddOther label="Add related OpenACR" on:ADD="{handleRelatedAdd}"></AddOther>
<AddOther label="Add related OpenACR" on:ADD="{handleRelatedAdd}" style="text-align: center; line-height: 1; padding: 5px;"></AddOther>
</details>

<details open>
Expand Down