kbsearch-extension/styles/styles-base.css
2025-06-02 15:07:18 +08:00

223 lines
3.7 KiB
CSS

body {
font-family: "Microsoft YaHei", sans-serif;
width: 600px;
padding: 20px;
background-color: #fefefe;
}
body.fullscreen {
background: #f8fbff;
}
body.fullscreen .draggable-panel {
position: fixed !important;
left: 50% !important;
top: 50% !important;
transform: translate(-50%, -50%) !important;
width: 96vw !important;
max-width: 1200px !important;
height: 94vh !important;
max-height: 98vh !important;
min-width: 420px !important;
min-height: 340px !important;
box-shadow: 0 10px 40px #3070ed22;
border-radius: 24px;
background: #fff;
padding: 30px 44px 24px 44px;
display: flex;
flex-direction: column;
}
body.fullscreen .container {
height: 100%;
min-height: 0;
flex: 1 1 0;
display: flex;
flex-direction: column;
padding-left: 24px;
padding-right: 24px;
}
.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: 18px;
}
.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;
}
.hidden {
display: none;
}
.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: 18px !important;
right: 22px !important;
}
.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;
}
.open-tab-btn {
margin-left: 16px !important;
padding: 2px 10px;
background: #f8f8f8;
border: 1px solid #c9dafc;
color: #2560de;
border-radius: 4px;
font-size: 15px;
cursor: pointer;
vertical-align: middle;
transition: background 0.2s;
}
.open-tab-btn:hover {
background: #eaf1fb;
color: #1e40af;
}
body.fullscreen .draggable-panel {
position: fixed;
display: flex;
flex-direction: column;
height: 94vh;
max-height: 98vh;
overflow: hidden;
}
body.fullscreen .container {
flex: 1 1 auto;
overflow-y: auto;
padding: 0 24px 30px;
box-sizing: border-box;
display: flex;
flex-direction: column;
}