rustdoc: combine shared CSS between .*-line-numbers
This commit is contained in:
parent
85d089b41e
commit
626d7fc613
@ -549,47 +549,38 @@ ul.block, .block li {
|
|||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre.example-line-numbers {
|
.rustdoc .example-wrap > pre {
|
||||||
overflow: initial;
|
margin: 0;
|
||||||
border: 1px solid;
|
flex-grow: 1;
|
||||||
padding: 13px 8px;
|
|
||||||
text-align: right;
|
|
||||||
border-top-left-radius: 5px;
|
|
||||||
border-bottom-left-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.src-line-numbers {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
.rustdoc:not(.source) .example-wrap > pre:not(.example-line-numbers) {
|
|
||||||
width: 100%;
|
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rustdoc:not(.source) .example-wrap > pre.src-line-numbers {
|
.rustdoc .example-wrap > pre.example-line-numbers,
|
||||||
width: auto;
|
.rustdoc .example-wrap > pre.src-line-numbers {
|
||||||
overflow-x: visible;
|
flex-grow: 0;
|
||||||
}
|
overflow: initial;
|
||||||
|
text-align: right;
|
||||||
.rustdoc .example-wrap > pre {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-loading {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content > .example-wrap pre.src-line-numbers {
|
|
||||||
position: relative;
|
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.example-line-numbers {
|
||||||
|
border: 1px solid;
|
||||||
|
padding: 13px 8px;
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-bottom-left-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.src-line-numbers span {
|
.src-line-numbers span {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-loading {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.docblock-short {
|
.docblock-short {
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
@ -2024,10 +2015,6 @@ in storage.js
|
|||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scraped-example:not(.expanded) .code-wrapper pre.src-line-numbers {
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scraped-example .code-wrapper .prev {
|
.scraped-example .code-wrapper .prev {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.25em;
|
top: 0.25em;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user