feat: setting icon for popup
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
<link rel="stylesheet" href="./popup.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="icons">
|
||||
<a class="icons-item icons-setting" href="/options.html"></a>
|
||||
</div>
|
||||
<div class="no-rss">
|
||||
<h2>😔当前页面没有检测到 RSS</h2>
|
||||
<p>参与到 <a href="https://docs.rsshub.app">RSSHub</a> 让万物皆可 RSS 吧!</p>
|
||||
|
||||
+20
-3
@@ -5,6 +5,23 @@ body {
|
||||
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
|
||||
}
|
||||
|
||||
.icons {
|
||||
position: absolute;
|
||||
right: 25px;
|
||||
top: 22px;
|
||||
|
||||
.icons-item {
|
||||
width: 20px;
|
||||
display: inline-block;
|
||||
fill: #999;
|
||||
transition: .3s;
|
||||
|
||||
&:hover {
|
||||
fill: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-rss,
|
||||
.page-rsshub,
|
||||
.website-rsshub {
|
||||
@@ -88,9 +105,9 @@ body {
|
||||
white-space: nowrap;
|
||||
padding: 0 10px;
|
||||
font-size: 13px;
|
||||
color: #FF2800;
|
||||
color: #f5712c;
|
||||
background: #fff;
|
||||
border: 1px solid #FF2800;
|
||||
border: 1px solid #f5712c;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
transition: .3s;
|
||||
@@ -103,7 +120,7 @@ body {
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background: #FF2800;
|
||||
background: #f5712c;
|
||||
}
|
||||
|
||||
&.rss-copy {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import '../../css/popup.less';
|
||||
import ClipboardJS from 'clipboard';
|
||||
import { getConfig } from '../utils';
|
||||
import settingIcon from '../../svg/setting.svg';
|
||||
let config;
|
||||
|
||||
function generateList (type, list) {
|
||||
@@ -31,6 +32,8 @@ function generateList (type, list) {
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelector('.icons-setting').innerHTML = settingIcon;
|
||||
|
||||
chrome.runtime.getBackgroundPage((background) => {
|
||||
chrome.tabs.query({
|
||||
active: true,
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ export const defaultConfig = {
|
||||
submitto: {
|
||||
ttrss: false,
|
||||
ttrssDomain: '',
|
||||
feedly: false,
|
||||
feedly: true,
|
||||
inoreader: false,
|
||||
}
|
||||
};
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1564226990819" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1117" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M962.496 448.96c-3.584-19.84-22.656-39.808-42.304-44.288l-14.72-3.392c-34.624-10.432-65.536-33.536-84.992-67.328-19.648-33.984-24.128-72.576-15.616-107.968 0 0 0 0 0 0l4.288-13.824c5.952-19.264-1.792-45.76-17.216-58.816 0 0-13.824-11.712-52.992-34.304-39.168-22.592-56.128-28.736-56.128-28.736-19.008-6.848-45.76-0.32-59.52 14.464L612.928 115.84C586.56 140.672 551.104 155.904 512 155.904c-39.232 0-74.88-15.36-101.248-40.384L400.832 104.832C387.136 90.048 360.32 83.52 341.312 90.368c0 0-17.024 6.144-56.256 28.736C245.952 141.696 232.128 153.344 232.128 153.344 216.768 166.4 209.024 192.832 214.976 212.16l4.288 14.016c8.448 35.328 3.904 73.856-15.68 107.776C184 367.872 152.896 391.04 118.08 401.408L103.808 404.672c-19.648 4.48-38.72 24.448-42.304 44.288 0 0-3.2 17.792-3.2 63.04 0 45.248 3.2 62.976 3.2 62.976 3.584 19.84 22.656 39.808 42.304 44.288l13.952 3.2c0 0 0 0 0 0 34.944 10.304 66.112 33.536 85.824 67.584 19.648 33.984 24.128 72.576 15.616 107.968 0 0 0 0 0 0l-4.224 13.76c-5.952 19.264 1.792 45.76 17.216 58.816 0 0 13.824 11.712 52.992 34.304 39.168 22.592 56.128 28.736 56.128 28.736 19.008 6.848 45.76 0.32 59.52-14.464l9.792-10.56c26.432-25.024 62.08-40.448 101.376-40.448 39.296 0 75.008 15.424 101.44 40.512 0 0 0 0 0.064 0l9.728 10.496c13.76 14.784 40.512 21.312 59.52 14.464 0 0 17.024-6.144 56.256-28.736 39.168-22.592 52.928-34.304 52.928-34.304 15.424-13.056 23.168-39.488 17.216-58.816l-4.352-14.208c-8.32-35.264-3.84-73.664 15.744-107.52 19.648-34.048 50.88-57.216 85.824-67.584 0 0 0-0.064 0-0.064l13.952-3.2c19.648-4.48 38.72-24.448 42.304-44.288 0 0 3.2-17.792 3.2-63.04C965.696 466.752 962.496 448.96 962.496 448.96zM512 692.928c-99.904 0-180.928-81.024-180.928-180.928S412.096 331.136 512 331.136s180.928 81.024 180.928 180.928S611.904 692.928 512 692.928z" p-id="1118"></path></svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
Reference in New Issue
Block a user