1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00
phorge-phorge/webroot/rsrc/css/sprite-actions.css
epriestley cbd3c0b7ac Add action icons to object list views
Summary:
We have a few interfaces where add "Edit", "Delete" or some other action to a list. Currently, this happens via icons, but these are cumbersome and weird, are inconsistent, can't be workflow'd, are hard to hit on desktops and virtually impossible to hit on mobile, and generally just feel iffy to me. Prominent examples are Projects and Flags. I'd like to try adding an "edit" action to Maniphest (to provide quick edit from list views, basically). It looks like some of Releeph would benefit here, as well.

Instead, provide first-class actions:

{F42978}

They produce targets which my meaty ham-fists can plausibly hit on mobile, too:

{F42979}

(We could do some kind of swipe-to-expose thing eventually, but I think putting them by default is OK?)

Test Plan: Added UIExamples. Checked desktop/mobile.

Reviewers: chad, btrahan, edward

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D5890
2013-05-10 12:57:01 -07:00

175 lines
3.4 KiB
CSS

/**
* @provides sprite-actions-css
* @generated
*/
.sprite-actions {
background-image: url(/rsrc/image/sprite-actions.png);
background-repeat: no-repeat;
}
@media
only screen and (min-device-pixel-ratio: 1.5),
only screen and (-webkit-min-device-pixel-ratio: 1.5) {
.sprite-actions {
background-image: url(/rsrc/image/sprite-actions-X2.png);
background-size: 150px 175px;
}
}
.actions-close-dark, .device-desktop .actions-close-grey.phui-icon-view:hover {
background-position: 0px 0px;
}
.actions-down-dark, .device-desktop .actions-down-grey.phui-icon-view:hover {
background-position: -25px 0px;
}
.actions-flag-dark, .device-desktop .actions-flag-grey.phui-icon-view:hover {
background-position: -50px 0px;
}
.actions-heart-dark, .device-desktop .actions-heart-grey.phui-icon-view:hover {
background-position: -75px 0px;
}
.actions-move-dark, .device-desktop .actions-move-grey.phui-icon-view:hover {
background-position: -100px 0px;
}
.actions-new-dark, .device-desktop .actions-new-grey.phui-icon-view:hover {
background-position: -125px 0px;
}
.actions-search-dark, .device-desktop .actions-search-grey.phui-icon-view:hover {
background-position: 0px -25px;
}
.actions-settings-dark, .device-desktop .actions-settings-grey.phui-icon-view:hover {
background-position: -25px -25px;
}
.actions-star-dark, .device-desktop .actions-star-grey.phui-icon-view:hover {
background-position: -50px -25px;
}
.actions-tag-dark, .device-desktop .actions-tag-grey.phui-icon-view:hover {
background-position: -75px -25px;
}
.actions-token-dark, .device-desktop .actions-token-grey.phui-icon-view:hover {
background-position: -100px -25px;
}
.actions-up-dark, .device-desktop .actions-up-grey.phui-icon-view:hover {
background-position: -125px -25px;
}
.actions-wrench-dark, .device-desktop .actions-wrench-grey.phui-icon-view:hover {
background-position: 0px -50px;
}
.actions-close-grey {
background-position: -25px -50px;
}
.actions-down-grey {
background-position: -50px -50px;
}
.actions-flag-grey {
background-position: -75px -50px;
}
.actions-heart-grey {
background-position: -100px -50px;
}
.actions-move-grey {
background-position: -125px -50px;
}
.actions-new-grey {
background-position: 0px -75px;
}
.actions-search-grey {
background-position: -25px -75px;
}
.actions-settings-grey {
background-position: -50px -75px;
}
.actions-star-grey {
background-position: -75px -75px;
}
.actions-tag-grey {
background-position: -100px -75px;
}
.actions-token-grey {
background-position: -125px -75px;
}
.actions-up-grey {
background-position: 0px -100px;
}
.actions-wrench-grey {
background-position: -25px -100px;
}
.actions-close-white {
background-position: -50px -100px;
}
.actions-down-white {
background-position: -75px -100px;
}
.actions-flag-white {
background-position: -100px -100px;
}
.actions-heart-white {
background-position: -125px -100px;
}
.actions-move-white {
background-position: 0px -125px;
}
.actions-new-white {
background-position: -25px -125px;
}
.actions-search-white {
background-position: -50px -125px;
}
.actions-settings-white {
background-position: -75px -125px;
}
.actions-star-white {
background-position: -100px -125px;
}
.actions-tag-white {
background-position: -125px -125px;
}
.actions-token-white {
background-position: 0px -150px;
}
.actions-up-white {
background-position: -25px -150px;
}
.actions-wrench-white {
background-position: -50px -150px;
}