diff --git a/fonts/FiraSans-Regular.ttf b/fonts/FiraSans-Regular.ttf new file mode 100755 index 0000000..7544de9 Binary files /dev/null and b/fonts/FiraSans-Regular.ttf differ diff --git a/fonts/FiraSans-SemiBold.ttf b/fonts/FiraSans-SemiBold.ttf new file mode 100755 index 0000000..8ea5aaf Binary files /dev/null and b/fonts/FiraSans-SemiBold.ttf differ diff --git a/js/readinglist.js b/js/readinglist.js index b281b0c..3072a53 100644 --- a/js/readinglist.js +++ b/js/readinglist.js @@ -36,7 +36,7 @@ function createReadingItemEl(info) { } var delBtn = document.createElement('a'); - delBtn.innerHTML = '×'; + delBtn.textContent = '×'; delBtn.id = url; delBtn.className = 'button delete-button'; item.appendChild(link); diff --git a/manifest.json b/manifest.json index 8e62b4b..7aa1754 100644 --- a/manifest.json +++ b/manifest.json @@ -11,7 +11,11 @@ "128": "icons/icon128.png" }, "browser_action": { - "default_popup": "html/popup.html" + "default_popup": "html/popup.html", + "default_icon": { + "16": "icons/icon16.png", + "32": "icons/icon32.png" + } }, "background": { "scripts": [ diff --git a/style/font.css b/style/font.css new file mode 100644 index 0000000..601482f --- /dev/null +++ b/style/font.css @@ -0,0 +1,112 @@ +/* cyrillic-ext */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + src: local('Fira Sans Regular'), local('FiraSans-Regular'), url(../fonts/FiraSans-Regular.ttf); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + src: local('Fira Sans Regular'), local('FiraSans-Regular'), url(../fonts/FiraSans-Regular.ttf); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + src: local('Fira Sans Regular'), local('FiraSans-Regular'), url(../fonts/FiraSans-Regular.ttf); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + src: local('Fira Sans Regular'), local('FiraSans-Regular'), url(../fonts/FiraSans-Regular.ttf); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + src: local('Fira Sans Regular'), local('FiraSans-Regular'), url(../fonts/FiraSans-Regular.ttf); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + src: local('Fira Sans Regular'), local('FiraSans-Regular'), url(../fonts/FiraSans-Regular.ttf); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 400; + src: local('Fira Sans Regular'), local('FiraSans-Regular'), url(../fonts/FiraSans-Regular.ttf); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + src: local('Fira Sans SemiBold'), local('FiraSans-SemiBold'), url(../fonts/FiraSans-SemiBold.ttf); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + src: local('Fira Sans SemiBold'), local('FiraSans-SemiBold'), url(../fonts/FiraSans-SemiBold.ttf); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + src: local('Fira Sans SemiBold'), local('FiraSans-SemiBold'), url(../fonts/FiraSans-SemiBold.ttf); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + src: local('Fira Sans SemiBold'), local('FiraSans-SemiBold'), url(../fonts/FiraSans-SemiBold.ttf); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + src: local('Fira Sans SemiBold'), local('FiraSans-SemiBold'), url(../fonts/FiraSans-SemiBold.ttf); + unicode-range: U+0102-0103, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + src: local('Fira Sans SemiBold'), local('FiraSans-SemiBold'), url(../fonts/FiraSans-SemiBold.ttf); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Fira Sans'; + font-style: normal; + font-weight: 600; + src: local('Fira Sans SemiBold'), local('FiraSans-SemiBold'), url(../fonts/FiraSans-SemiBold.ttf); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215; +} diff --git a/style/popup.css b/style/popup.css index b57af23..fefb822 100644 --- a/style/popup.css +++ b/style/popup.css @@ -1,4 +1,4 @@ -@import url('https://fonts.googleapis.com/css?family=Fira+Sans:400,600'); +@import url('font.css'); * { -webkit-box-sizing: border-box;