mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
4952891cd1
Summary: - If a Paste has very long lines, we show far too much text in the summary, because we wrap the lines. Instead, overflow them. - If a Paste has very long unbroken lines (MMMMM...), they extend past the page. Instead, add a scrollable container. Test Plan: {F27868} {F27869} {F27870} Reviewers: btrahan, codeblock, chad Reviewed By: codeblock CC: aran Differential Revision: https://secure.phabricator.com/D4211
45 lines
1 KiB
CSS
45 lines
1 KiB
CSS
/**
|
|
* @provides phabricator-source-code-view-css
|
|
*/
|
|
|
|
.phabricator-source-code-container {
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.phabricator-source-code {
|
|
white-space: pre-wrap;
|
|
padding: 2px 8px 1px;
|
|
}
|
|
|
|
.phabricator-source-line {
|
|
text-align: right;
|
|
padding: 2px 6px 1px 12px;
|
|
|
|
border-right: 1px solid #dbdbdb;
|
|
font-weight: bold;
|
|
color: #555555;
|
|
|
|
/* When the user selects rows of source, don't visibly select the line
|
|
numbers beside them. We use JS to strip the line numbers out when the user
|
|
copies the text. */
|
|
-moz-user-select: -moz-none;
|
|
-khtml-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.phabricator-source-code-summary {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* If a Paste has enormously long lines, truncate them in the summary on the
|
|
list page. They'll be fully visible on the Paste itself. */
|
|
.phabricator-source-code-summary .phabricator-source-code-container {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.phabricator-source-code-summary .phabricator-source-code {
|
|
white-space: nowrap;
|
|
}
|