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;
|
2015-05-31 21:13:28 +02:00
|
|
|
border: 1px solid {$sh-lightyellowborder};
|
|
|
|
border-radius: 3px;
|
2015-09-17 17:23:22 +02:00
|
|
|
background-color: #FFFEF5;
|
2012-12-17 02:58:16 +01:00
|
|
|
}
|
|
|
|
|
2016-12-14 20:35:51 +01:00
|
|
|
.phui-oi .phabricator-source-code-container {
|
2014-06-12 00:48:52 +02:00
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
|
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 {
|
2015-05-31 21:13:28 +02:00
|
|
|
background-color: {$sh-yellowbackground};
|
2012-08-15 19:45:06 +02:00
|
|
|
text-align: right;
|
2012-08-15 22:45:53 +02:00
|
|
|
padding: 2px 6px 1px 12px;
|
2015-05-31 21:13:28 +02:00
|
|
|
border-right: 1px solid {$sh-lightyellowborder};
|
|
|
|
color: {$sh-yellowtext};
|
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;
|
2015-09-17 17:23:22 +02:00
|
|
|
white-space: nowrap;
|
2012-08-15 19:45:06 +02:00
|
|
|
}
|
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 {
|
2015-05-31 21:13:28 +02:00
|
|
|
background: {$sh-lightyellowborder};
|
|
|
|
cursor: pointer;
|
2015-02-26 20:09:10 +01:00
|
|
|
}
|
|
|
|
|
2013-03-14 17:32:02 +01:00
|
|
|
.phabricator-source-highlight {
|
2015-05-31 21:13:28 +02:00
|
|
|
background: {$sh-yellowbackground};
|
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;
|
|
|
|
}
|