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;
|
|
|
|
}
|
|
|
|
|
2014-06-12 00:48:52 +02:00
|
|
|
.phui-object-item .phabricator-source-code-container {
|
|
|
|
margin-left: 8px;
|
|
|
|
border: 1px solid #d7d7d7;
|
|
|
|
}
|
|
|
|
|
2013-11-23 03:37:39 +01:00
|
|
|
.phabricator-source-code-view tr:first-child * {
|
|
|
|
padding-top: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-source-code-view tr:last-child * {
|
|
|
|
padding-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
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;
|
2015-02-26 20:09:10 +01:00
|
|
|
border-right: 1px solid {$thinblueborder};
|
|
|
|
color: {$darkbluetext};
|
2012-08-15 19:45:06 +02:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
2015-02-26 20:09:10 +01:00
|
|
|
th.phabricator-source-line a {
|
|
|
|
color: {$darkbluetext};
|
|
|
|
}
|
|
|
|
|
|
|
|
th.phabricator-source-line:hover {
|
|
|
|
background-color: {$greybackground};
|
|
|
|
}
|
|
|
|
|
2013-03-14 17:32:02 +01:00
|
|
|
.phabricator-source-highlight {
|
2015-02-26 20:09:10 +01:00
|
|
|
background: {$lightyellow};
|
2013-03-14 17:32:02 +01:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|