273 lines
3.8 KiB
CSS
273 lines
3.8 KiB
CSS
body {
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
width: 600px;
|
|
padding: 20px;
|
|
background-color: #fefefe;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.logo {
|
|
width: 32px;
|
|
height: 32px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.title-box {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 18px;
|
|
color: #2c3e50;
|
|
margin: 0;
|
|
}
|
|
|
|
.oa-link {
|
|
font-size: 13px;
|
|
text-decoration: none;
|
|
color: #007bff;
|
|
background-color: #f2f2f2;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.oa-link:hover {
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.search-bar {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.search-bar input {
|
|
flex: 1;
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.search-bar button {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-bar button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.tag-history {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.tag-history .tag {
|
|
background-color: #f0f0f0;
|
|
color: #333;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tag-history .tag:hover {
|
|
background-color: #dcdcdc;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
#results {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
#results li {
|
|
margin-bottom: 14px;
|
|
border-bottom: 1px solid #ddd;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
#results a {
|
|
font-weight: bold;
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
font-size: 15px;
|
|
}
|
|
|
|
#results a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#results .summary {
|
|
font-size: 13px;
|
|
color: #444;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.pagination {
|
|
margin-top: 15px;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.pagination button {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
background-color: #eee;
|
|
border: 1px solid #ccc;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pagination button:hover {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
/* 基础结构样式保持不变,新增按钮样式 */
|
|
|
|
#clearHistoryBtn {
|
|
background: #f8f8f8;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
padding: 0 10px;
|
|
cursor: pointer;
|
|
line-height: 28px;
|
|
height: 32px;
|
|
}
|
|
|
|
#clearHistoryBtn:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
/* 原样式基础上追加 */
|
|
.history-wrapper {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.history-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
#clearHistoryBtn {
|
|
background: #f8f8f8;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
padding: 2px 8px;
|
|
cursor: pointer;
|
|
line-height: 20px;
|
|
}
|
|
|
|
#clearHistoryBtn:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
.delete-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
max-width: 100%;
|
|
object-fit: contain;
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.delete-icon:hover {
|
|
opacity: 1;
|
|
background-color: #f0f0f0;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.user-info {
|
|
font-size: 13px;
|
|
color: #333;
|
|
margin-left: 10px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.logout-btn {
|
|
margin-left: 10px;
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
border: 1px solid #ccc;
|
|
background: #f9f9f9;
|
|
color: #333;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background-color: #f0f0f0;
|
|
color: #d00;
|
|
}
|
|
|
|
.user-menu {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
}
|
|
|
|
.user-avatar {
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.user-dropdown {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 30px;
|
|
background: white;
|
|
border: 1px solid #ccc;
|
|
box-shadow: 0 0 4px rgba(0,0,0,0.1);
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
width: 120px;
|
|
z-index: 99;
|
|
}
|
|
|
|
.user-dropdown div {
|
|
padding: 6px 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-dropdown div:hover {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
|