-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidepanel.html
200 lines (187 loc) · 5.57 KB
/
sidepanel.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tab Layout</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5; /* 更加柔和的背景色 */
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.toolbar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: #f8f9fa; /* 更轻的背景色 */
padding: 12px 0;
border-top: 1px solid #e9ecef; /* 更柔和的边框色 */
display: flex;
justify-content: space-around;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
.toolbar button {
background-color: transparent;
border: none;
cursor: pointer;
font-size: 1.4em;
color: #495057; /* 更深的按钮颜色 */
transition: color 0.3s, transform 0.3s;
}
.toolbar button:hover {
color: #007bff; /* 主题蓝色 */
transform: scale(1.1);
}
.toolbar button.active {
font-weight: bold;
color: #007bff; /* 主题蓝色 */
}
.highlights-container {
padding: 20px;
max-width: 800px;
margin: 0 auto;
}
.highlight-item {
background-color: #ffffff;
border: 1px solid #e9ecef; /* 更柔和的边框色 */
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.highlight-text {
font-family: 'Georgia', serif;
font-size: 16px;
line-height: 1.6;
color: #333;
padding: 10px 15px;
background-color: #f9f9f9;
margin-bottom: 10px;
quotes: "\201C""\201D""\2018""\2019";
}
.highlight-text::before {
content: open-quote;
font-size: 24px;
color: #007bff;
margin-right: 5px;
}
.highlight-text::after {
content: close-quote;
font-size: 24px;
color: #007bff;
margin-left: 5px;
}
.highlight-comment {
color: #333333;
padding: 10px 0;
margin-top: 15px;
position: relative;
}
.highlight-comment::before {
content: "\f075"; /* Font Awesome comment icon */
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-size: 18px;
color: #007bff;
margin-right: 10px;
}
.highlight-comment .quote-text {
font-size: 16px;
font-style: italic;
display: inline;
}
/* Remove unused styles */
.highlight-comment .quotation-mark,
.highlight-comment .blog-post-actions,
.highlight-comment .blog-post-bottom,
.highlight-comment .quote-badge {
display: none;
}
.no-highlights-message {
text-align: center;
padding: 40px 20px;
color: #4a4a4a;
font-size: 20px;
font-weight: 500;
font-family: 'Quicksand', sans-serif;
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
margin: 20px auto;
max-width: 400px;
line-height: 1.6;
}
.no-highlights-message::before {
content: '\f118'; /* Font Awesome regular smile face icon */
font-family: "Font Awesome 5 Free";
font-weight: 400;
font-size: 48px;
color: #FFD700; /* Gold color for the smile */
display: block;
margin-bottom: 20px;
}
.highlight-item {
position: relative;
}
.delete-btn {
position: absolute;
top: 10px;
right: 10px;
display: none;
background-color: #ff4d4d; /* 红色背景 */
border: none;
font-size: 18px;
cursor: pointer;
color: white; /* 白色文字 */
width: 24px; /* 固定宽度 */
height: 24px; /* 固定高度 */
border-radius: 50%; /* 圆形 */
line-height: 24px; /* 垂直居中文字 */
text-align: center; /* 水平居中文字 */
padding: 0; /* 移除内边距 */
}
.highlight-item:hover .delete-btn {
display: block;
}
.delete-btn:hover {
background-color: #ff1a1a; /* 鼠标悬停时加深红色 */
}
</style>
</head>
<body>
<div id="tab-container">
<div id="tab-1" class="tab-content active">
<div class="highlights-container">
<!-- Content for Tab 1 -->
</div>
</div>
<div id="tab-2" class="tab-content" style="position: relative; height: calc(100vh - 60px); overflow: hidden;">
<iframe src="options.html" width="100%" height="100%" style="border: none; position: absolute; top: 0; left: 0; overflow: hidden;"></iframe>
</div>
</div>
<div class="toolbar">
<button id="highlights-btn" title="Highlights" data-tab="tab-1" class="active"><i class="fas fa-home"></i></button>
<button id="settings-btn" title="Settings" data-tab="tab-2"><i class="fas fa-cog"></i></button>
</div>
<!-- <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> -->
<!-- <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> -->
<script src="scripts/sidepanel.js"></script>
</body>
</html>