mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
299510737d
Summary: Makes the code view have a border, proper spacing. Test Plan: view a list of pastes Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9491
64 lines
1.4 KiB
CSS
64 lines
1.4 KiB
CSS
/**
|
|
* @provides phabricator-source-code-view-css
|
|
*/
|
|
|
|
.phabricator-source-code-container {
|
|
background: #ffffff;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.phui-object-item .phabricator-source-code-container {
|
|
margin-left: 8px;
|
|
border: 1px solid #d7d7d7;
|
|
}
|
|
|
|
.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 {
|
|
text-align: right;
|
|
padding: 2px 6px 1px 12px;
|
|
|
|
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;
|
|
}
|
|
|
|
.phabricator-source-highlight {
|
|
background: #ff0;
|
|
}
|
|
|
|
.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;
|
|
}
|