phorge/webroot/rsrc/css/layout/phabricator-object-item-list-view.css
epriestley 5e53fc750a Fix some ObjectItemList issues
Summary:
Safari has a weird bug with `border-radius` plus border color:

{F35865}

Move the uncolored borders to an internal div to fix this. Also tweak some positioning on icons for cards, and add a "magenta" color.

Test Plan: {F35866}

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5338
2013-03-23 14:37:18 -07:00

374 lines
7.3 KiB
CSS

/**
* @provides phabricator-object-item-list-view-css
*/
.phabricator-object-item-list-view {
padding: 8px 6px;
}
.device-desktop .phabricator-object-item-list-view {
padding: 20px;
}
.device-desktop .phabricator-object-list-flush {
padding: 0;
}
.phabricator-object-item {
background: #ffffff;
border-style: solid;
border-color: #c0c5d1;
border-width: 0 0 0 3px;
margin: 5px 0;
overflow: hidden;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.10);
}
.phabricator-object-item-frame {
border-style: solid;
border-color: #c0c5d1;
border-width: 1px 1px 1px 0;
overflow: hidden;
position: relative;
}
.device-desktop .phabricator-object-item {
margin: 0 0 5px 0;
}
.phabricator-object-item-name {
display: block;
font-weight: bold;
font-size: 14px;
padding: 0 10px;
}
.phabricator-object-item-link {
display: inline-block;
padding: 8px 0;
}
.phabricator-object-item-objname {
color: #222222;
}
.phabricator-object-item-with-attrs .phabricator-object-item-name {
padding-bottom: 2px;
}
.phabricator-object-item-content {
overflow: hidden;
}
.phabricator-object-item-grippable {
cursor: move;
}
.phabricator-object-item-grip {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 15px;
background: url(/rsrc/image/texture/grip.png) center center no-repeat;
}
.phabricator-object-item-grippable .phabricator-object-item-frame {
padding-left: 9px;
}
/* - Stackable List ------------------------------------------------------------
Tighter, stacking list.
*/
.phabricator-object-item-list-view.phabricator-object-list-stackable
.phabricator-object-item {
margin: -1px 0 0 0;
}
.phabricator-object-list-stackable .phabricator-object-item {
border-left-width: 1px;
}
.device-desktop .phabricator-object-list-stackable
.phabricator-object-item:hover {
background: #e9ecf5;
}
/* - Attribute List ------------------------------------------------------------
Object attributes, commonly used to render created date, etc.
*/
.phabricator-object-item-attributes {
padding: 0px 10px 8px;
}
.phabricator-object-item-attribute {
display: inline;
color: #777;
font-size: 13px;
}
.phabricator-object-item-attribute-spacer {
padding: 0 4px;
}
/* - Icons ---------------------------------------------------------------------
Icons, which show object state. On mobile, they are rendered without labels
to save space.
*/
.phabricator-object-icon-pane {
float: right;
}
.phabricator-object-item-with-handle-icons .phabricator-object-item-icons {
padding-bottom: 34px;
}
.phabricator-object-item-icons {
float: right;
padding: 6px 10px 0;
}
/* NOTE: The main content is an "overflow: hidden" div which we give a right
margin so it doesn't overlap the icons. The margin is slightly larger than
the width + padding of the icon div, so the icons have some space even if
the content is wider than available space. */
.device-desktop .phabricator-object-icon-pane {
width: 120px;
}
.device-desktop .phabricator-object-item-with-icons
.phabricator-object-item-content,
.device-desktop .phabricator-object-item-with-handle-icons
.phabricator-object-item-content {
margin-right: 132px;
}
.device .phabricator-object-item-icons {
width: 18px;
}
.device .phabricator-object-item-with-icons .phabricator-object-item-content,
.device .phabricator-object-item-with-handle-icons
.phabricator-object-item-content {
margin-right: 30px;
}
.device .phabricator-object-item-icon-label {
display: none;
}
.phabricator-object-item-icon {
vertical-align: middle;
position: relative;
font-size: 11px;
color: #666666;
text-align: right;
white-space: nowrap;
overflow: hidden;
min-height: 18px;
line-height: 18px;
}
.device-desktop .phabricator-object-item-icon {
padding-right: 22px;
}
.device-desktop .phabricator-object-item-icon-none {
padding-right: 0;
}
.phabricator-object-item-icon-image {
position: absolute;
right: 2px;
top: 2px;
width: 14px;
height: 14px;
}
/* - Bar Colors ----------------------------------------------------------------
Colors for the left-hand border bars, used to indicate object status or other
attributes.
*/
.phabricator-object-item-bar-color-red {
border-left-color: #cc0000;
}
.phabricator-object-item-bar-color-orange {
border-left-color: #cc7300;
}
.phabricator-object-item-bar-color-yellow {
border-left-color: #ccc000;
}
.phabricator-object-item-bar-color-green {
border-left-color: #009b2d;
}
.phabricator-object-item-bar-color-sky {
border-left-color: #6498cf;
}
.phabricator-object-item-bar-color-blue {
border-left-color: #00659a;
}
.phabricator-object-item-bar-color-indigo {
border-left-color: #3a00cc;
}
.phabricator-object-item-bar-color-violet {
border-left-color: #67009b;
}
.phabricator-object-item-bar-color-magenta {
border-left-color: #cc00c0;
}
.phabricator-object-item-bar-color-grey {
border-left-color: #999999;
}
.phabricator-object-item-bar-color-black {
border-left-color: #333333;
}
/* - Effects -------------------------------------------------------------------
Effects like highlighted items.
*/
.phabricator-object-item-highlighted {
background: #ffffb2;
}
.phabricator-object-item-selected {
background: #bfdcff;
}
/* - Foot Icons ----------------------------------------------------------------
Object counts shown in the footer.
*/
.phabricator-object-item-foot-icons {
margin-left: 10px;
bottom: 0;
position: absolute;
}
.phabricator-object-item-with-foot-icons .phabricator-object-item-content {
padding-bottom: 22px;
}
.phabricator-object-item-foot-icon {
display: inline-block;
background: #909090;
color: #ffffff;
font-weight: bold;
margin-right: 3px;
padding: 1px 4px 0 22px;
height: 19px;
vertical-align: middle;
position: relative;
}
.phabricator-object-item-foot-icon .sprite-icon {
width: 14px;
height: 14px;
position: absolute;
left: 4px;
top: 3px;
}
/* - Handle Icons --------------------------------------------------------------
Shows owners, reviewers, etc.
*/
.phabricator-object-item-handle-icons {
height: 28px;
margin-right: 10px;
bottom: 0;
right: 0;
text-align: right;
position: absolute;
}
.phabricator-object-item-handle-icon {
margin-left: 3px;
width: 28px;
height: 28px;
display: inline-block;
background: #f3f3f3;
background-size: 28px 28px;
background-repeat: no-repeat;
}
/* - Card List -----------------------------------------------------------------
Rounded card list.
*/
/* Hard to sprite since we can't have other sprites appearing in tall cells */
.phabricator-object-list-cards .phabricator-object-item {
border-radius: 3px;
border-left-width: 4px;
background: #e8e8e8 url('/rsrc/image/texture/card-gradient.png') repeat-x;
}
.phabricator-object-list-cards .phabricator-object-item-name {
font-size: 13px;
}
.phabricator-object-list-cards .phabricator-object-item-link {
white-space: nowrap;
padding: 6px 0;
}
.phabricator-object-list-cards .phabricator-object-item-with-attrs
.phabricator-object-item-name {
padding: 4px 10px 4px;
}
.phabricator-object-list-cards .phabricator-object-item-selected {
background: #bfdcff;
}
.phabricator-object-list-cards .phabricator-object-item-selected
.phabricator-object-item-frame {
border-color: #99ccff;
}
.phabricator-object-list-cards .phabricator-object-item-attributes {
padding-bottom: 4px;
}