Skip to content

Commit

Permalink
Merge pull request #75 from attorri/feature/icon_test
Browse files Browse the repository at this point in the history
Uniform Button Styling
  • Loading branch information
attorri authored Jan 10, 2025
2 parents 0db6689 + caf79ad commit ae67db7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
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
16 changes: 10 additions & 6 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,25 @@
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;
-webkit-mask: url("{{{ pathPrefix }}}/images/external-link.svg") no-repeat center/contain;
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

0 comments on commit ae67db7

Please sign in to comment.