Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | /* Copyright 2016 The Chromium Authors. All Rights Reserved. |
| 2 | * |
| 3 | * Use of this source code is governed by a BSD-style |
| 4 | * license that can be found in the LICENSE file or at |
| 5 | * https://developers.google.com/open-source/licenses/bsd |
| 6 | */ |
| 7 | |
| 8 | /* Style sheet for issue attachment source browsing pages. */ |
| 9 | |
| 10 | /* List */ |
| 11 | #resultstable {table-layout:fixed} |
| 12 | #resultstable div {white-space:nowrap; overflow:hidden; text-overflow:ellipsis} |
| 13 | |
| 14 | /* Diffs */ |
| 15 | .diff pre { |
| 16 | margin:0; |
| 17 | padding:0; |
| 18 | white-space: pre-wrap; |
| 19 | white-space: -moz-pre-wrap; |
| 20 | white-space: -pre-wrap; |
| 21 | white-space: -o-pre-wrap; |
| 22 | word-wrap: break-word; |
| 23 | } |
| 24 | .diff th {padding:0 .6em; text-align:right; font-weight:normal; color:#666} |
| 25 | .diff b {font-weight: normal} |
| 26 | .diff .noline {background: #eee; border: 1px solid #888; border-width: 0 1px 0 1px} |
| 27 | .diff .oldbackrm {background: #f88; border: 1px solid #a33; border-width: 0 1px 0 1px} |
| 28 | .diff .oldbackeq {background: #ffd8d8; border: 1px solid #a33; border-width: 0 1px 0 1px} |
| 29 | .diff .newbackadd {background: #9f9; border: 1px solid #3a3; border-width: 0 1px 0 1px} |
| 30 | .diff .newbackeq {background: #ddf8cc; border: 1px solid #3a3; border-width: 0 1px 0 1px} |
| 31 | .diff .oldrm {background: #f88;} |
| 32 | .diff .oldeq {background: #ffd8d8;} |
| 33 | .diff .newadd {background: #9f9;} |
| 34 | .diff .neweq {background: #ddf8cc;} |
| 35 | .diff .first td {border-top-width:1px} |
| 36 | .diff .last td {border-bottom-width:1px} |
| 37 | .header td {padding-bottom:.3em; text-align:center; font-family:arial, sans-serif} |
| 38 | #controls {padding:.5em; white-space:nowrap} |
| 39 | #controls td {padding:0 2px} |
| 40 | #controls input, #controls select {font-size:93%; margin:0; padding:0} |
| 41 | #controls form {margin:0; padding:0 1em} |
| 42 | #controls a.revchoose { |
| 43 | text-decoration: none; |
| 44 | color: var(--chops-black); |
| 45 | padding: 4px; |
| 46 | border: 1px solid #ebeff9; |
| 47 | } |
| 48 | #controls a.revchoose:hover { |
| 49 | border: 1px inset var(--chops-white); |
| 50 | } |
| 51 | |
| 52 | /* Property Diffs */ |
| 53 | .diff .firstseg {padding-left: 2px} |
| 54 | .diff .lastseg {padding-right: 2px} |
| 55 | .diff .samepropback {border: 1px solid var(--chops-black); border-width: 0 1px 0 1px} |
| 56 | .diff td.nopropsep {border-bottom-width: 0px} |
| 57 | .diff .propname td {font-size: 110%; font-weight: bold; padding: 1em 0.5em} |
| 58 | .diff .bincontent {border-bottom-width: 1px; font-style: italic; font-size: 110%; padding: 0px 0.5em} |
| 59 | .diff .propspace {font-size: 100%} |
| 60 | .diff .sectiontitle {padding: 2em 0; font-style: italic; font-size: 110%} |
| 61 | |
| 62 | /* Meta bubble */ |
| 63 | #older, #props, #fileinfo {border-top:3px solid white; padding-top:6px; margin-top: 1em} |
| 64 | #older pre {margin-top:4px; margin-left:1em} |
| 65 | |
| 66 | /* File */ |
| 67 | .fc pre, .fc td, .fc tr, .fc table, .fc tbody, #nums, #lines {padding:0; margin:0} |
| 68 | .fc {position:relative; width:100%; min-height:30em} |
| 69 | .fc table {border-collapse:collapse; margin:0; padding:0} |
| 70 | #nums, #lines, #nums th, #lines th, #nums td, #lines td { vertical-align:top } |
| 71 | pre { |
| 72 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 73 | font-size: 93%; |
| 74 | } |
| 75 | #nums {padding-right:.5em; width:3.7em} |
| 76 | #nums td {text-align:right} |
| 77 | #nums a {color:#77c; text-decoration:none} |
| 78 | #nums tr:hover a {color:blue; text-decoration:underline} |
| 79 | #nums td:target a {color:var(--chops-black); font-weight:bold} |
| 80 | .sep {visibility:hidden; width:2px} |
| 81 | #nums span { cursor: pointer; width: 14px; float: left; background-repeat: no-repeat; } |
| 82 | #lines td {padding-left:4px;} |
| 83 | |
| 84 | /* Applies only to sb files and issue attachments */ |
| 85 | .fc #nums, .fc #lines { |
| 86 | padding-top: 0.5em; |
| 87 | } |
| 88 | .fc #lines { |
| 89 | border-left: 3px solid #ebeff9; |
| 90 | } |
| 91 | |
| 92 | #log { position:absolute; top:2px; right:0; width:28em} |
| 93 | #log p { font-size:120%; margin: 0 0 0.5em 0} |
| 94 | #log pre { margin-top: 0.3em} |
| 95 | |
| 96 | /* IE Whitespace Fix */ |
| 97 | .prettyprint td.source { |
| 98 | white-space: pre-wrap; |
| 99 | white-space: -moz-pre-wrap; |
| 100 | white-space: -pre-wrap; |
| 101 | white-space: -o-pre-wrap; |
| 102 | } |
| 103 | |
| 104 | /* Header */ |
| 105 | .src_nav { |
| 106 | height:1.2em; |
| 107 | padding-top:0.2em; |
| 108 | } |
| 109 | .src_crumbs { |
| 110 | padding:0; |
| 111 | margin:0; |
| 112 | } |
| 113 | #crumb_root { |
| 114 | padding:0.2em 0 0.2em 0.2em; |
| 115 | margin:0; |
| 116 | } |
| 117 | #crumb_links { |
| 118 | margin-top:0; |
| 119 | margin-right:0; |
| 120 | padding:0.2em 1px; |
| 121 | } |
| 122 | form.src_nav { |
| 123 | padding:0; |
| 124 | margin:0; |
| 125 | display: inline; |
| 126 | } |
| 127 | #src_nav_title { |
| 128 | margin-right: 0.5em; |
| 129 | } |
| 130 | |
| 131 | .heading { |
| 132 | background:#c3d9ff; |
| 133 | } |
| 134 | .sp { |
| 135 | color:#555; |
| 136 | } |
| 137 | .sourcelabel { |
| 138 | margin-left: 20px; |
| 139 | white-space: nowrap; |
| 140 | } |
| 141 | .sourcelabel select { |
| 142 | font-size: 93%; |
| 143 | } |
| 144 | #contents { |
| 145 | display: none; |
| 146 | } |
| 147 | |
| 148 | /* Branch detail and revision log message */ |
| 149 | pre.wrap { |
| 150 | white-space: pre-wrap; |
| 151 | white-space: -moz-pre-wrap; |
| 152 | } |
| 153 | |
| 154 | .edit_icon { |
| 155 | width: 14px; |
| 156 | height: 14px; |
| 157 | padding-right: 4px; |
| 158 | } |
| 159 | |
| 160 | /* Source editing */ |
| 161 | .CodeMirror-line-numbers { |
| 162 | margin: .4em; |
| 163 | padding-right: 0.3em; |
| 164 | font-size: 83%; |
| 165 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; |
| 166 | color: #777; |
| 167 | text-align: right; |
| 168 | border-right: 1px solid #aaa; |
| 169 | } |
| 170 | .editbox { |
| 171 | border-color: #999 #ccc #ccc; |
| 172 | border-width: 1px; |
| 173 | border-style: solid; |
| 174 | background: var(--chops-white); |
| 175 | } |
| 176 | .pending_bubble { |
| 177 | background-color: #e5ecf9; |
| 178 | } |
| 179 | #pending { |
| 180 | padding: 2px 2px 2px 4px; |
| 181 | } |