refine code
This commit is contained in:
parent
e5050d8bc4
commit
e8237eaf14
2 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ img {
|
|||
.social a {
|
||||
width: 3rem;
|
||||
margin-left: 3rem;
|
||||
background: var(--img) center center no-repeat;
|
||||
background: var(--url) center center no-repeat;
|
||||
}
|
||||
|
||||
.dark .social a {
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
buttonDark.addEventListener('click', () => {
|
||||
bodyClass.contains('dark') ? setLight() : setDark();
|
||||
});
|
||||
schemeDark.addEventListener('change', event => {
|
||||
schemeDark.addEventListener('change', (event) => {
|
||||
event.matches ? setDark() : setLight();
|
||||
});
|
||||
</script>
|
||||
|
@ -50,7 +50,7 @@
|
|||
{{ range $key, $val := . }}
|
||||
<a
|
||||
class="{{ $key }}"
|
||||
style="--img: url(./{{ printf `%s.svg` $key }})"
|
||||
style="--url: url(./{{ printf `%s.svg` $key }})"
|
||||
href="https://{{ $key }}.com/{{ $val }}"
|
||||
target="_blank"
|
||||
></a>
|
||||
|
|
Loading…
Reference in a new issue