163 lines
2.8 KiB
CSS
163 lines
2.8 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--bg-color: var(--vscode-editor-background, #1e1e1e);
|
|
--text-color: var(--vscode-foreground, #cccccc);
|
|
--border-color: var(--vscode-panel-border, #3c3c3c);
|
|
--button-bg: var(--vscode-button-background, #0e639c);
|
|
--button-fg: var(--vscode-button-foreground, #ffffff);
|
|
}
|
|
|
|
body {
|
|
font-family: var(--vscode-font-family);
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
overflow: hidden;
|
|
}
|
|
|
|
#toolbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 48px;
|
|
background: var(--vscode-titleBar-activeBackground);
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 12px;
|
|
z-index: 1000;
|
|
gap: 12px;
|
|
}
|
|
|
|
.toolbar-left, .toolbar-center, .toolbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar-center {
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
button {
|
|
background: var(--button-bg);
|
|
color: var(--button-fg);
|
|
border: none;
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
button:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
button:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
#search-input {
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
border-radius: 3px;
|
|
font-size: 13px;
|
|
width: 200px;
|
|
}
|
|
|
|
#container {
|
|
position: fixed;
|
|
top: 48px;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
}
|
|
|
|
#sidebar {
|
|
width: 300px;
|
|
background: var(--vscode-sideBar-background);
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#sidebar-tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 8px;
|
|
background: transparent;
|
|
color: var(--text-color);
|
|
border: none;
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--vscode-tab-activeBackground);
|
|
border-bottom-color: var(--button-bg);
|
|
}
|
|
|
|
.tab-pane {
|
|
display: none;
|
|
padding: 16px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.tab-pane.active {
|
|
display: block;
|
|
}
|
|
|
|
#viewer {
|
|
flex: 1;
|
|
overflow: auto;
|
|
background: #2b2b2b;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
#pdf-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.page {
|
|
background: white;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
}
|
|
|
|
#zoom-level {
|
|
padding: 0 8px;
|
|
min-width: 50px;
|
|
text-align: center;
|
|
}
|
|
|
|
#page-info {
|
|
padding: 0 12px;
|
|
min-width: 100px;
|
|
text-align: center;
|
|
}
|
|
|