Skip to content

Commit

Permalink
feature(firefox): Allow forbidden icon to work for firefox too (#61)
Browse files Browse the repository at this point in the history
Change forbidden icon inclusion to allow firefox to recognize its url

Co-authored-by: Valdo Ryu <valdo.ryu@wee-fin.com>
  • Loading branch information
valdoryu and Valdo Ryu authored Oct 27, 2024
1 parent c71abcc commit 5a37b35
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion content/content.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
@supports (-webkit-user-select: none) {
:root {
--url_header: url('chrome-extension://__MSG_@@extension_id__/icons/forbidden.svg');
}
}
@supports (-moz-user-select: none) {
:root {
--url_header: url('moz-extension://__MSG_@@extension_id__/icons/forbidden.svg');
}
}

.hide {
display: None;
}
Expand Down Expand Up @@ -26,7 +37,7 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-image: url('chrome-extension://__MSG_@@extension_id__/icons/forbidden.svg');
background-image: var(--url_header);
background-size: cover;
width: 30px;
height: 30px;
Expand Down

0 comments on commit 5a37b35

Please sign in to comment.