mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 19:59:38 +00:00
Use CDN font
This commit is contained in:
15
birb.js
15
birb.js
@@ -43,6 +43,11 @@ const FIELD_GUIDE_ID = "birb-field-guide";
|
|||||||
const FEATHER_ID = "birb-feather";
|
const FEATHER_ID = "birb-feather";
|
||||||
|
|
||||||
const styles = `
|
const styles = `
|
||||||
|
@font-face {
|
||||||
|
font-family: Monocraft;
|
||||||
|
src: url("https://cdn.jsdelivr.net/gh/idreesinc/Monocraft/dist/Monocraft.otf");
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--border-size: 2px;
|
--border-size: 2px;
|
||||||
--neg-border-size: calc(var(--border-size) * -1);
|
--neg-border-size: calc(var(--border-size) * -1);
|
||||||
@@ -72,7 +77,7 @@ const styles = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.birb-window {
|
.birb-window {
|
||||||
font-family: "Monocraft", "Courier New", monospace;
|
font-family: "Monocraft", monospace;
|
||||||
z-index: 999999999;
|
z-index: 999999999;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background-color: #ffecda;
|
background-color: #ffecda;
|
||||||
@@ -125,8 +130,8 @@ const styles = `
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
padding-top: 4px;
|
padding-top: 3px;
|
||||||
padding-bottom: 4px;
|
padding-bottom: 3px;
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
background-color: var(--highlight);
|
background-color: var(--highlight);
|
||||||
@@ -218,8 +223,8 @@ const styles = `
|
|||||||
.birb-window-list-item {
|
.birb-window-list-item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding-top: 5px;
|
padding-top: 4px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 4px;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user