mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
5755830faa
Summary: This diff restructures the DOM and alters some CSS within differential. Original goal was to unify these codepaths more fully into a base class or classes, but they have quite a bit of custom code such that didn't feel too compelling in practice. It also felt related to feed stories as I thought about the more general version(s) of this code... Also deleted some CSS from maniphest that wasn't doing anything. Test Plan: looked at a differential diff and liked what I saw. spent a bunch of time trying out different types of comments and etc. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Maniphest Tasks: T803 Differential Revision: https://secure.phabricator.com/D1513
191 lines
3.7 KiB
CSS
191 lines
3.7 KiB
CSS
/**
|
|
* @provides differential-revision-comment-css
|
|
*/
|
|
|
|
.differential-comment {
|
|
background: 0px 2px no-repeat;
|
|
margin: 1em 0 1.25em;
|
|
min-height: 50px;
|
|
padding: 2px 0px;
|
|
}
|
|
|
|
.differential-comment-list {
|
|
max-width: 1162px;
|
|
}
|
|
|
|
.differential-add-comment-panel {
|
|
max-width: 1162px;
|
|
}
|
|
|
|
.differential-comment-detail {
|
|
border-color: #dddddd;
|
|
border-width: 1px 10px;
|
|
border-style: solid;
|
|
margin-left: 54px;
|
|
}
|
|
|
|
.differential-comment-detail .hide {
|
|
display: none;
|
|
}
|
|
|
|
/* Spooky haunted panel which floats on the bottom of the screen. */
|
|
.differential-haunted-panel .differential-add-comment-panel {
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0;
|
|
right: 0;
|
|
left: 0;
|
|
z-index: 5;
|
|
overflow: auto;
|
|
max-height: 375px;
|
|
max-width: none;
|
|
|
|
box-shadow: 0 0 4px #000;
|
|
-webkit-box-shadow: 0 0 4px #000;
|
|
-moz-box-shadow: 0 0 4px #000;
|
|
|
|
}
|
|
|
|
.differential-haunted-panel .differential-add-comment-panel h1 {
|
|
display: none;
|
|
}
|
|
|
|
.differential-haunted-panel .aphront-panel-preview {
|
|
display: none;
|
|
}
|
|
|
|
.differential-haunted-panel {
|
|
padding-bottom: 250px;
|
|
}
|
|
|
|
.differential-comment-list .anchor-target {
|
|
background-color: #ffffdd;
|
|
border-color: #ffff00;
|
|
}
|
|
|
|
.differential-comment-header {
|
|
background: #f3f3f3;
|
|
padding: 4px 1em;
|
|
}
|
|
|
|
.differential-comment-header a {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.differential-comment-info {
|
|
color: #666666;
|
|
float: right;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.differential-comment-content {
|
|
background: #fcfcfc;
|
|
clear: both;
|
|
line-height: 1.4em;
|
|
margin: 0em;
|
|
padding: .3em 5px .4em 1.25em;
|
|
}
|
|
|
|
.differential-comment-content {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.differential-comment-content .phabricator-remarkup .remarkup-code-block,
|
|
.differential-comment-core .phabricator-remarkup .remarkup-code-block {
|
|
width: 88ex;
|
|
width: 81ch;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-testplan {
|
|
border-color: #660099;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-abandon {
|
|
border-color: #222222;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-accept {
|
|
border-color: #009966;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-reject {
|
|
border-color: #aa0000;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-rethink {
|
|
border-color: #aa0000;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-commit {
|
|
border-color: #006699;
|
|
}
|
|
|
|
|
|
.differential-comment .differential-comment-action-reclaim {
|
|
border-color: #0099aa;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-update {
|
|
border-color: #6699cc;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-add_reviewers {
|
|
border-color: #aa99cc;
|
|
}
|
|
|
|
.differential-comment .differential-comment-action-request_review {
|
|
border-color: #cc9966;
|
|
}
|
|
|
|
.differential-inline-summary th,
|
|
.differential-inline-summary td {
|
|
vertical-align: top;
|
|
padding: 0 0 6px;
|
|
}
|
|
|
|
.differential-inline-summary th {
|
|
padding-top: 16px;
|
|
color: #666666;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.differential-inline-summary tr > th:first-child {
|
|
padding-top: 2px;
|
|
}
|
|
|
|
|
|
.differential-inline-summary td.inline-line-number {
|
|
color: #444444;
|
|
white-space: nowrap;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
padding: 0 4px;
|
|
width: 90px;
|
|
}
|
|
|
|
.differential-inline-summary td.inline-line-number .num {
|
|
display: block;
|
|
position: relative;
|
|
padding-left: 15px;
|
|
padding-right: 5px;
|
|
width: 70px; /* Need lots of width for 23,950-23,951 */
|
|
}
|
|
|
|
.differential-inline-summary td.inline-which-diff {
|
|
padding: 0 8px 0 0;
|
|
color: #666666;
|
|
}
|
|
|
|
.differential-inline-summary td.inline-line-number a:hover {
|
|
background: #3b5998;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.differential-inline-summary-section {
|
|
margin: .75em 0 .5em;
|
|
font-size: 11px;
|
|
border-bottom: 1px solid #dddddd;
|
|
color: #666666;
|
|
}
|
|
|