mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
fe3de5dd58
Summary: Depends on D19163. Ref T13088. Increase the generality of this code so it can be shared with Harbormaster. Test Plan: Clicked individual lines, clicked-and-dragged, etc., in Paste. Got sensible URI and highlight behaviors. Maniphest Tasks: T13088 Differential Revision: https://secure.phabricator.com/D19164
79 lines
1.7 KiB
CSS
79 lines
1.7 KiB
CSS
/**
|
|
* @provides phabricator-source-code-view-css
|
|
*/
|
|
|
|
.phabricator-source-code-container {
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
border: 1px solid {$paste.border};
|
|
border-radius: 3px;
|
|
background-color: {$paste.content};
|
|
}
|
|
|
|
.phui-oi .phabricator-source-code-container {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.phabricator-source-code-view tr:first-child * {
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.phabricator-source-code-view tr:last-child * {
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.phabricator-source-code {
|
|
white-space: pre-wrap;
|
|
padding: 2px 8px 1px;
|
|
width: 100%;
|
|
}
|
|
|
|
.phabricator-source-line {
|
|
background-color: {$paste.highlight};
|
|
text-align: right;
|
|
border-right: 1px solid {$paste.border};
|
|
color: {$sh-yellowtext};
|
|
|
|
/* 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;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
th.phabricator-source-line a {
|
|
color: {$darkbluetext};
|
|
display: block;
|
|
padding: 2px 6px 1px 12px;
|
|
}
|
|
|
|
th.phabricator-source-line a:hover {
|
|
background: {$paste.border};
|
|
text-decoration: none;
|
|
}
|
|
|
|
.phabricator-source-highlight {
|
|
background: {$paste.highlight};
|
|
}
|
|
|
|
.phabricator-source-highlight th.phabricator-source-line {
|
|
background: {$paste.border};
|
|
}
|
|
|
|
.phabricator-source-code-summary {
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
/* 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;
|
|
}
|