Skip to content

Commit b07224c

Browse files
committed
better buttons
1 parent 6b86e99 commit b07224c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

assets/css/download.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#dl-icon {
3333
width: 1rem;
3434
height: 1rem;
35-
fill: white;
35+
fill: var(--button-color);
3636
margin-right: 0.5rem;
3737
}
3838

assets/css/home.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ iframe {
88
button, [role=button] {
99
cursor: pointer;
1010
appearance: none;
11-
background-color: #3b82f6;
12-
color: white;
13-
border-radius: 0.25rem;
11+
background-color: transparent;
12+
color: var(--button-color);
13+
border-radius: 0.5rem;
14+
border: var(--button-color) solid 1px;
1415
}
1516

1617
button:hover {
17-
background-color: #1d4ed8;
18+
background-color: hsl(from var(--button-color) h s l / 10%)
1819
}
1920

2021
.stripe {
@@ -47,6 +48,7 @@ button:hover {
4748
.red {
4849
background-color: #ef4444;
4950
color: black;
51+
--button-color: black;
5052
}
5153

5254
.gold {

assets/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--scrollbar-thumb-hover-bg-color: #555;
55
--c-button-height: 4rem;
66
--play-zoom-factor: 0.75;
7+
--button-color: white;
78
}
89

910
html, body {

layouts/partials/features.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{ .Content }}
99
</div>
1010
<div class="feature-play">
11-
<iframe loading="lazy" src='{{ .Param "play" }}'></iframe>
11+
<iframe loading="lazy" src='{{ .Param "play" }}' title="feature-playground"></iframe>
1212
</div>
1313
</div>
1414
{{ end }}

0 commit comments

Comments
 (0)