Skip to content

Commit

Permalink
Use accent-color, not feColorMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode committed Jun 24, 2024
1 parent 19d2b00 commit 722eb80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ input[type="password"] {

input[type="checkbox"],
input[type="radio"] {
filter: url("#filter");
accent-color: var(--accent);
}

input[type="checkbox"]:not(:disabled),
Expand Down
19 changes: 4 additions & 15 deletions view/layout.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,11 @@
<body>
<div id="background"></div>
<main id="content">{{ block "content" . }}{{ end }}</main>
<svg xmlns="http://www.w3.org/2000/svg" class="svg-defs">
<filter id="filter">
<feColorMatrix
type="matrix"
values=" 0.000 0.000 0.000 0.000 0.000
-0.200 -0.200 -0.200 0.000 0.400
-0.200 -0.200 -0.200 0.000 0.400
0.000 0.000 0.000 1.000 0.000"
></feColorMatrix>
</filter>
</svg>
{{ if .App.Config.EnableBackgroundEffect }}
<script type="module">
import { background } from "{{.App.FrontEndURL}}/drasl/public/bundle.js";
background(document.querySelector("#background"));
</script>
<script type="module">
import { background } from "{{.App.FrontEndURL}}/drasl/public/bundle.js";
background(document.querySelector("#background"));
</script>
{{ end }}
</body>
</html>
Expand Down

0 comments on commit 722eb80

Please sign in to comment.