2011-01-27 23:55:52 +01:00
|
|
|
/**
|
|
|
|
* @provides differential-revision-detail-css
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-revision-properties {
|
|
|
|
font-size: 12px;
|
|
|
|
width: 100%;
|
Limit width of differential, maniphest properties tables
Summary:
Sometimes, elements in a property table at the top of a differential
revision view or maniphest task detail view will have a minimum width
that is too wide to fit in the table without causing the table's width
to exceed the width of its parent div. This diff changes the table layout
algorithm so that the table's width never exceeds the width of its parent
div. In the case of a code block causing the excess width, it puts a
scrollbar on the block instead of letting content spill out.
Due to the way the fixed table layout algorithm works, the width of the
left column (containing headers) is set to a fixed width. I chose a width
for differential that works with the default headers, but site-specific
headers might not fit.
Test Plan:
Created a task, added a code block in the description that had an
unreasonably long line in it, and visually verified that the <td>
containing the <code> did not expand horizontally past the limit defined
by the <div> containing the <table>. I also loaded a differential revision
view and checked that its table looks sane.
Reviewers: epriestley, jungejason, aran
Reviewed By: epriestley
CC: aran, nh, epriestley
Differential Revision: 1028
2011-10-21 11:09:25 +02:00
|
|
|
table-layout: fixed;
|
2011-01-27 23:55:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-revision-properties tt {
|
|
|
|
letter-spacing: 1.1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-revision-properties th {
|
|
|
|
font-weight: bold;
|
Limit width of differential, maniphest properties tables
Summary:
Sometimes, elements in a property table at the top of a differential
revision view or maniphest task detail view will have a minimum width
that is too wide to fit in the table without causing the table's width
to exceed the width of its parent div. This diff changes the table layout
algorithm so that the table's width never exceeds the width of its parent
div. In the case of a code block causing the excess width, it puts a
scrollbar on the block instead of letting content spill out.
Due to the way the fixed table layout algorithm works, the width of the
left column (containing headers) is set to a fixed width. I chose a width
for differential that works with the default headers, but site-specific
headers might not fit.
Test Plan:
Created a task, added a code block in the description that had an
unreasonably long line in it, and visually verified that the <td>
containing the <code> did not expand horizontally past the limit defined
by the <div> containing the <table>. I also loaded a differential revision
view and checked that its table looks sane.
Reviewers: epriestley, jungejason, aran
Reviewed By: epriestley
CC: aran, nh, epriestley
Differential Revision: 1028
2011-10-21 11:09:25 +02:00
|
|
|
width: 120px;
|
2011-01-27 23:55:52 +01:00
|
|
|
text-align: right;
|
|
|
|
padding: 3px 4px 3px 3px;
|
|
|
|
color: #333333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-revision-properties td {
|
|
|
|
padding: 3px 2px;
|
|
|
|
}
|
|
|
|
|
2011-02-20 21:50:28 +01:00
|
|
|
.differential-revision-detail-core {
|
|
|
|
margin-right: 265px;
|
|
|
|
}
|
|
|
|
|
2011-04-11 00:50:26 +02:00
|
|
|
.differential-unit-block,
|
|
|
|
.differential-lint-block {
|
|
|
|
padding: .5em;
|
|
|
|
background: #fcfcec;
|
|
|
|
margin: .5em 0;
|
|
|
|
font-size: 11px;
|
|
|
|
line-height: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-lint-block .lint-severity-warning {
|
|
|
|
background: #ffff66;
|
|
|
|
padding: 0 0.5em;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-lint-block .lint-severity-error {
|
|
|
|
background: #ff3333;
|
|
|
|
padding: 0 0.5em;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-lint-block .lint-file-block {
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-lint-block li li {
|
|
|
|
margin-left: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-lint-block li li p {
|
|
|
|
margin-left: 1em;
|
|
|
|
color: #666666;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-unit-table th {
|
|
|
|
white-space: nowrap;
|
|
|
|
padding: 4px 8px;
|
|
|
|
}
|
|
|
|
|
2011-04-11 02:47:47 +02:00
|
|
|
.differential-unit-table th.unit-test-result {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2011-04-11 00:50:26 +02:00
|
|
|
.differential-unit-table .result-fail {
|
|
|
|
background: #ff3333;
|
2011-04-11 02:47:47 +02:00
|
|
|
padding: 4px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-unit-table .result-unsound {
|
|
|
|
background: #cc33cc;
|
|
|
|
padding: 4px 8px;
|
2011-04-11 00:50:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-unit-table td {
|
|
|
|
width: 100%;
|
|
|
|
padding: 4px 8px;
|
|
|
|
color: #666666;
|
|
|
|
}
|
2011-06-08 20:53:10 +02:00
|
|
|
|
|
|
|
.differential-keyboard-shortcuts {
|
|
|
|
float: right;
|
|
|
|
}
|