2012-08-15 19:45:06 +02:00
|
|
|
/**
|
|
|
|
* @provides phabricator-source-code-view-css
|
|
|
|
*/
|
|
|
|
|
2012-12-17 02:58:16 +01:00
|
|
|
.phabricator-source-code-container {
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
2012-08-15 19:45:06 +02:00
|
|
|
.phabricator-source-code {
|
|
|
|
white-space: pre-wrap;
|
2012-08-15 22:45:53 +02:00
|
|
|
padding: 2px 8px 1px;
|
2012-08-15 19:45:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-source-line {
|
|
|
|
text-align: right;
|
2012-08-15 22:45:53 +02:00
|
|
|
padding: 2px 6px 1px 12px;
|
2012-08-15 19:45:06 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2012-12-17 01:33:42 +01:00
|
|
|
|
|
|
|
.phabricator-source-code-summary {
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
2012-12-17 02:58:16 +01:00
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|