Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/css/layout/phabricator-source-code-view.css
Show All 24 Lines | .phabricator-source-code { | ||||
white-space: pre-wrap; | white-space: pre-wrap; | ||||
padding: 2px 8px 1px; | padding: 2px 8px 1px; | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
.phabricator-source-line { | .phabricator-source-line { | ||||
text-align: right; | text-align: right; | ||||
padding: 2px 6px 1px 12px; | padding: 2px 6px 1px 12px; | ||||
border-right: 1px solid {$thinblueborder}; | |||||
border-right: 1px solid #dbdbdb; | color: {$darkbluetext}; | ||||
font-weight: bold; | |||||
color: #555555; | |||||
/* When the user selects rows of source, don't visibly select the line | /* 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 | numbers beside them. We use JS to strip the line numbers out when the user | ||||
copies the text. */ | copies the text. */ | ||||
-moz-user-select: -moz-none; | -moz-user-select: -moz-none; | ||||
-khtml-user-select: none; | -khtml-user-select: none; | ||||
-webkit-user-select: none; | -webkit-user-select: none; | ||||
-ms-user-select: none; | -ms-user-select: none; | ||||
user-select: none; | user-select: none; | ||||
} | } | ||||
th.phabricator-source-line a { | |||||
color: {$darkbluetext}; | |||||
} | |||||
th.phabricator-source-line:hover { | |||||
background-color: {$greybackground}; | |||||
} | |||||
.phabricator-source-highlight { | .phabricator-source-highlight { | ||||
background: #ff0; | background: {$lightyellow}; | ||||
} | } | ||||
.phabricator-source-code-summary { | .phabricator-source-code-summary { | ||||
padding-bottom: 8px; | padding-bottom: 8px; | ||||
} | } | ||||
/* If a Paste has enormously long lines, truncate them in the summary on the | /* 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. */ | list page. They'll be fully visible on the Paste itself. */ | ||||
.phabricator-source-code-summary .phabricator-source-code-container { | .phabricator-source-code-summary .phabricator-source-code-container { | ||||
overflow-x: hidden; | overflow-x: hidden; | ||||
} | } | ||||
.phabricator-source-code-summary .phabricator-source-code { | .phabricator-source-code-summary .phabricator-source-code { | ||||
white-space: nowrap; | white-space: nowrap; | ||||
} | } |