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 {
|
2013-08-30 18:29:31 +02:00
|
|
|
background: #ffffff;
|
2012-12-17 02:58:16 +01:00
|
|
|
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;
|
2013-08-04 21:11:10 +02:00
|
|
|
width: 100%;
|
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
|
|
|
|
2013-03-14 17:32:02 +01:00
|
|
|
.phabricator-source-highlight {
|
|
|
|
background: #ff0;
|
|
|
|
}
|
|
|
|
|
2012-12-17 01:33:42 +01:00
|
|
|
.phabricator-source-code-summary {
|
2013-01-25 23:57:10 +01:00
|
|
|
padding-bottom: 8px;
|
2012-12-17 01:33:42 +01:00
|
|
|
}
|
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;
|
|
|
|
}
|