Skip to content

Commit

Permalink
Tweak launch button look
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Feb 12, 2024
1 parent 134731d commit 4421c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ <h3 id="customize">Customizing the look and feel</h3>
<ul>
<li><code>--esp-tools-button-color</code></li>
<li><code>--esp-tools-button-text-color</code></li>
<li><code>--esp-tools-button-border-radius</code></li>
</ul>
<p>There are also some attributes that can be used for styling:</p>
<table>
Expand Down
7 changes: 2 additions & 5 deletions src/install-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class InstallButton extends HTMLElement {
color: var(--esp-tools-button-text-color, #fff);
background-color: var(--esp-tools-button-color, #03a9f4);
border: none;
border-radius: var(--esp-tools-border-radius, 9999px);
border-radius: var(--esp-tools-button-border-radius, 9999px);
}
button::before {
content: " ";
Expand All @@ -27,10 +27,7 @@ export class InstallButton extends HTMLElement {
left: 0;
right: 0;
opacity: 0.2;
border-radius: var(--esp-tools-border-radius, 9999px);
}
button:hover {
box-shadow: 0 4px 8px 0 rgba(0,0,0,.14), 0 1px 7px 0 rgba(0,0,0,.12), 0 3px 1px -1px rgba(0,0,0,.2);
border-radius: var(--esp-tools-button-border-radius, 9999px);
}
button:hover::before {
background-color: rgba(255,255,255,.8);
Expand Down

0 comments on commit 4421c79

Please sign in to comment.