Path: blob/master/webroot/rsrc/css/application/differential/changeset-view.css
12242 views
/**1* @provides differential-changeset-view-css2* @requires phui-inline-comment-view-css3*/45.differential-changeset {6position: relative;7overflow-x: auto;89/* Fixes what seems to be a layout bug in Firefox which causes scrollbars,10to appear unpredictably, see discussion in T7690. */11overflow-y: hidden;12}1314.device-phone .differential-changeset {15overflow-x: scroll;16-webkit-overflow-scrolling: touch;17}1819.differential-diff {20background: {$diff.background};21width: 100%;22border-top: 1px solid {$lightblueborder};23border-bottom: 1px solid {$lightblueborder};24table-layout: fixed;25}2627.differential-diff.diff-2up {28min-width: 780px;29}3031.differential-diff col.num {32width: 45px;33}3435.device .differential-diff.diff-1up col.num {36width: 32px;37}3839.differential-diff.diff-2up col.left,40.differential-diff.diff-2up col.right {41width: 49.25%;42}4344.differential-diff.diff-1up col.unified {45width: 99.5%;46}4748.differential-diff col.copy {49width: 0.5%;50}5152.differential-diff col.cov {53width: 1%;54}5556.differential-diff td {57vertical-align: top;58white-space: pre-wrap;59word-wrap: break-word;60padding: 1px 8px;61}6263.differential-diff td.diff-flush {64padding-top: 0;65padding-bottom: 0;66}6768.device .differential-diff td {69padding: 1px 4px;70}7172.prose-diff {73padding: 12px 0;74white-space: pre-wrap;75color: {$greytext};76}7778.prose-diff-frame {79padding: 12px;80}8182.prose-diff span.old,83.prose-diff span.new {84padding: 0 2px;85}8687.prose-diff span.old,88.prose-diff span.new {89color: {$darkgreytext};90}9192.differential-changeset-immutable .differential-diff td {93cursor: auto;94}9596.differential-diff td.old {97background: {$old-background};98}99100.differential-diff td.new {101background: {$new-background};102}103104.differential-diff td.old-rebase {105background: #ffeeee;106}107108.differential-diff td.new-rebase {109background: #eeffee;110}111112.differential-diff td.old span.bright,113.differential-diff td.old-full,114.prose-diff span.old {115background: {$old-bright};116}117118119.differential-diff td.new span.bright,120.differential-diff td.new-full,121.prose-diff span.new {122background: {$new-bright};123}124125.differential-diff td span.depth-out,126.differential-diff td span.depth-in {127padding: 2px 0;128background-size: 12px 12px;129background-repeat: no-repeat;130background-position: left center;131position: relative;132left: -8px;133opacity: 0.5;134}135136.differential-diff td span.depth-out {137background-image: url(/rsrc/image/chevron-out.png);138background-color: {$old-bright};139}140141.differential-diff td span.depth-in {142background-position: 1px center;143background-image: url(/rsrc/image/chevron-in.png);144background-color: {$new-bright};145}146147148.differential-diff td.copy {149min-width: 0.5%;150width: 0.5%;151padding: 0;152background: {$lightbluebackground};153}154155.differential-diff td.new-copy,156.differential-diff td.new-copy span.bright {157background: {$copy-background};158}159160.differential-diff td.new-move,161.differential-diff td.new-move span.bright {162background: {$move-background};163}164165.differential-diff td.comment {166background: #dddddd;167}168169.differential-diff .inline > td {170padding: 0;171}172173/* Specify line number behaviors after other behaviors because line numbers174should always have a boring grey background. */175176.differential-diff td.n {177text-align: right;178padding: 1px 6px 1px 0;179vertical-align: top;180background: {$lightbluebackground};181color: {$bluetext};182cursor: pointer;183border-right: 1px solid {$thinblueborder};184overflow: hidden;185}186187.differential-diff td + td.n {188border-left: 1px solid {$thinblueborder};189}190191.differential-diff td.n::before {192content: attr(data-n);193}194195.differential-diff td.show-context-line.n {196cursor: auto;197}198199.differential-diff td.cov {200padding: 0;201}202203td.cov-U {204background: #dd8866;205}206207td.cov-C {208background: #66bbff;209}210211td.cov-N {212background: #ddeeff;213}214215td.cov-X {216background: #aa00aa;217}218219td.cov-I {220background: {$lightgreybackground};221}222223.differential-diff td.source-cov-C,224.differential-diff td.source-cov-C span.bright {225background: #cceeff;226}227228.differential-diff td.source-cov-U,229.differential-diff td.source-cov-U span.bright {230background: #ffbb99;231}232233.differential-diff td.source-cov-N,234.differential-diff td.source-cov-N span.bright {235background: #f3f6ff;236}237238.differential-diff td.show-more,239.differential-diff td.show-context-line,240.differential-diff td.show-context,241.differential-diff td.differential-shield {242background: {$lightbluebackground};243padding: 12px 0;244border-top: 1px solid {$thinblueborder};245border-bottom: 1px solid {$thinblueborder};246}247248.device .differential-diff td.show-more,249.device .differential-diff td.show-context-line,250.device .differential-diff td.show-context,251.device .differential-diff td.differential-shield {252padding: 6px 0;253}254255.differential-diff td.show-more,256.differential-diff td.differential-shield {257font: {$basefont};258font-size: {$smallerfontsize};259white-space: normal;260}261262.differential-diff td.show-more {263text-align: center;264color: {$bluetext};265}266267.differential-diff td.show-context-line {268padding-right: 6px;269}270271.differential-diff td.show-context-line.left-context {272border-right: none;273}274275.differential-diff td.show-context {276padding-left: 14px;277}278279.differential-diff td.differential-shield {280text-align: center;281}282283.differential-diff td.differential-shield a {284font-weight: bold;285}286287.differential-diff td.diff-image-cell {288background-color: transparent;289background-image: url(/rsrc/image/checker_light.png);290padding: 8px;291}292293.device-desktop .differential-diff .diff-image-cell:hover {294background-image: url(/rsrc/image/checker_dark.png);295}296297.differential-image-stage {298overflow: auto;299}300301.differential-meta-notice {302border-top: 1px solid {$gentle.highlight.border};303border-bottom: 1px solid {$gentle.highlight.border};304background-color: {$gentle.highlight};305padding: 12px;306}307308.differential-meta-notice + .differential-diff {309border-top: none;310}311312.differential-changeset .differential-file-icon-header {313font-size: {$biggestfontsize};314padding: 18px 0 20px 12px;315margin-top: 4px;316line-height: 20px;317color: {$blacktext};318cursor: pointer;319}320321.differential-changeset .differential-file-icon-header322.differential-changeset-path-name {323cursor: auto;324}325326.device-phone .differential-changeset .differential-file-icon-header {327word-break: break-word;328margin-right: 8px;329}330331.differential-loading {332border-top: 1px solid {$gentle.highlight.border};333border-bottom: 1px solid {$gentle.highlight.border};334background-color: {$gentle.highlight};335padding: 12px;336text-align: center;337}338339.differential-file-icon-header .phui-icon-view {340display: inline-block;341margin: 0 6px 2px 0;342vertical-align: middle;343font-size: 14px;344}345346.device-phone .differential-file-icon-header .phui-icon-view {347display: none;348}349350.differential-changeset-buttons {351float: right;352margin-top: 16px;353margin-right: 12px;354}355356.device-phone .differential-changeset-buttons .button .phui-button-text {357visibility: hidden;358width: 0;359margin-left: 8px;360}361362.differential-property-table {363margin: 12px;364background: {$lightgreybackground};365border: 1px solid {$lightblueborder};366border-bottom: 1px solid {$blueborder};367}368369.differential-property-table td em {370color: {$lightgreytext};371}372373.differential-property-table td.oval {374background: #ffd0d0;375width: 50%;376}377378.differential-property-table td.nval {379background: #d0ffd0;380width: 50%;381}382383tr.differential-inline-hidden {384display: none;385}386387tr.differential-inline-loading {388opacity: 0.5;389}390391.differential-review-stage {392position: relative;393}394395.diff-banner {396position: fixed;397top: 0;398left: 0;399right: 0;400background: {$page.content};401box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);402border-bottom: 1px solid {$lightgreyborder};403padding: 8px 18px;404vertical-align: middle;405font-weight: bold;406font-size: {$biggerfontsize};407line-height: 28px;408}409410.diff-banner-path {411color: {$greytext};412}413414.diff-banner-buttons .button {415margin-left: 8px;416}417418.diff-banner-has-unsaved,419.diff-banner-has-unsubmitted,420.diff-banner-has-draft-done {421background: {$gentle.highlight};422}423424.diff-banner-buttons {425float: right;426}427428/* In Firefox, making the table unselectable and then making cells selectable429does not work: the cells remain unselectable. Narrowly mark the cells as430unselectable. */431432.differential-diff.copy-l > tbody > tr > td,433.differential-diff.copy-r > tbody > tr > td {434-moz-user-select: none;435-ms-user-select: none;436-webkit-user-select: none;437user-select: none;438}439440.differential-diff.copy-l > tbody > tr > td:nth-child(2) {441-moz-user-select: auto;442-ms-user-select: auto;443-webkit-user-select: auto;444user-select: auto;445}446447.differential-diff.copy-l > tbody > tr > td.show-more:nth-child(2) {448-moz-user-select: none;449-ms-user-select: none;450-webkit-user-select: none;451user-select: none;452}453454.differential-diff.copy-r > tbody > tr > td:nth-child(5) {455-moz-user-select: auto;456-ms-user-select: auto;457-webkit-user-select: auto;458user-select: auto;459}460461.differential-diff.copy-l > tbody > tr.inline > td,462.differential-diff.copy-r > tbody > tr.inline > td {463-moz-user-select: none;464-ms-user-select: none;465-webkit-user-select: none;466user-select: none;467}468469.changeset-content-hidden .differential-file-icon-header {470background: {$lightgreybackground};471color: {$greytext};472}473474.changeset-selected .differential-file-icon-header {475background: {$lightyellow};476color: {$blacktext};477}478479.differential-diff tr td.inline-hover {480background: {$gentle.highlight};481}482483.differential-diff tr td.inline-hover-bright {484background: {$highlight.bright};485}486487.differential-diff tr td.n.inline-hover {488background: {$yellow};489}490491.inline-hover-container {492position: absolute;493color: {$lightgreytext};494background: {$lightyellow};495}496497.inline-hover-text {498padding-top: 2px;499padding-bottom: 2px;500}501502.inline-hover-text-bright {503color: {$blacktext};504background: {$highlight.bright};505}506507.differential-diff td.inline-hover span.bright {508background: transparent;509}510511512