canserhat77_obsidian-web-view/styles.css
2026-06-04 14:18:08 +02:00

70 lines
1.3 KiB
CSS

.workspace-leaf-content[data-type="web-view"] .view-content,
.web-view-root {
height: 100%;
min-height: 0;
}
.web-view-root {
position: relative;
width: 100%;
overflow: hidden;
}
.web-view-toolbar {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 36px;
display: flex;
align-items: center;
gap: 4px;
padding: 0 6px;
border-bottom: 1px solid var(--background-modifier-border);
background: var(--background-secondary);
z-index: 1;
}
.web-view-frame {
display: inline-flex;
position: absolute;
top: 36px;
left: 0;
right: 0;
bottom: 0;
border: none;
}
.web-view-nav-btn {
flex-shrink: 0;
background: none;
border: none;
cursor: pointer;
padding: 3px 7px;
border-radius: 4px;
color: var(--text-muted);
font-size: 15px;
line-height: 1;
transition: background 0.1s, color 0.1s;
}
.web-view-nav-btn:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.web-view-url-bar {
flex: 1;
min-width: 0;
padding: 3px 8px;
border-radius: 4px;
border: 1px solid var(--background-modifier-border);
background: var(--background-primary);
color: var(--text-normal);
font-size: 12px;
}
.web-view-url-bar:focus {
outline: none;
border-color: var(--interactive-accent);
}