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