1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00
uBlock/src/css/code-viewer.css
Raymond Hill 6220c4d9d5
Improve code viewer convenience
- Retain cursor position, selection, undo history, etc. when swapping
  documents.
- Add ability to remove a document from dropdown list
2023-03-13 10:51:55 -04:00

68 lines
1.3 KiB
CSS

body {
border: 0;
display: flex;
flex-direction: column;
height: 100vh;
margin: 0;
overflow: hidden;
padding: 0;
width: 100vw;
}
#header {
background-color: var(--cm-gutter-surface);
border-bottom: 1px solid var(--surface-1);
padding: var(--default-gap-xsmall);
position: relative;
z-index: 1000000;
}
#header input[type="url"] {
box-sizing: border-box;
font-size: var(--font-size-smaller);
width: 100%;
}
#header:focus-within #pastURLs {
display: flex;
}
#currentURL {
display: flex;
gap: 0.5rem;
}
#currentURL > .fa-icon {
padding: 0 0.5rem;
}
#currentURL > .fa-icon:hover {
background-color: var(--surface-3);
}
#pastURLs {
background-color: var(--surface-0);
border: 1px solid var(--border-1);
display: none;
flex-direction: column;
font-size: var(--font-size-smaller);
position: absolute;
}
#pastURLs > span {
cursor: pointer;
overflow: hidden;
padding: 2px 4px;
text-overflow: ellipsis;
white-space: nowrap;
width: 75vw;
}
#pastURLs > span.selected {
font-weight: bold;
}
#pastURLs > span:hover {
background-color: var(--surface-1);
}
#content {
flex-grow: 1;
}
.cm-href {
cursor: pointer;
}
.cm-href:hover {
text-decoration: underline;
}