1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/webroot/rsrc/css/application/pholio/pholio-inline-comments.css
epriestley 1f51d023af Improve Pholio on mobile
Summary:
Ref T2644. This isn't perfect, but makes Pholio more-or-less usable on mobile. In particular:

  - Inline comments drop below the image.
  - Clicking the image lightboxes a full size version so you can scroll around it and inspect details.
  - Clicking it again dismisses it.

Things that aren't good:

  - Can't add inline comments. This seems complicated and not critical.
  - Can't easily figure out which inline comments go where since there's no hover. Maybe let you tap them? Not sure if we really need this.
  - Thumbs are between image and image data. I'm planning to get rid of the thumbs and do swipe left/right instead.
  - It would be nice to scroll the lightbox to center on the part of the image you tapped. I just thought of this, though.

Test Plan:
{F34640}
{F34641}
{F34642}

Reviewers: chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T2644

Differential Revision: https://secure.phabricator.com/D5232
2013-03-05 12:30:58 -08:00

93 lines
1.6 KiB
CSS

/**
* @provides pholio-inline-comments-css
*/
.pholio-inline-comment {
border: 1px solid #555555;
background: #353535;
margin: 0 10px 5px 10px;
padding: 8px 10px;
font-family: Verdana;
font-size: 11px;
}
.pholio-mock-inline-comments {
color: #cccccc;
border-top: 1px solid #333;
background: #282828;
overflow-x: auto;
text-align: left;
}
.device-desktop .pholio-mock-inline-comments {
border-left: 1px solid #101010;
position: absolute;
width: 320px;
top: 0;
bottom: 0;
right: 0;
}
.pholio-inline-comment-dialog-title {
font-weight: bold;
color: #fff;
padding-bottom: 2px;
margin-bottom: 6px;
text-align: left;
}
.pholio-inline-comment-dialog-buttons button {
float: right;
margin-left: 6px;
}
.pholio-inline-comment-dialog {
padding: 10px;
}
.pholio-inline-comment-dialog-textarea {
width: 254px;
height: 6em;
margin-bottom: 5px;
}
.pholio-new-inline-comment {
position: absolute;
border: 1px solid #000;
background: rgb(60, 60, 60);
z-index: 100;
padding: 8px 10px 8px 12px;
width: 260px;
box-shadow: 0 2px 10px 1px #999;
}
.pholio-inline-comment-dialog-buttons a {
display: none;
}
.pholio-inline-comment-draft {
border-style: dashed;
border-color: #777777;
background: #464646;
}
.pholio-inline-head-links {
float: right;
font-weight: normal;
color: #777777;
}
.pholio-mock-inline-comments a {
font-weight: normal;
color: #2178db;
}
.device-desktop .pholio-mock-inline-comment-highlight.pholio-mock-select-fill {
opacity: 0.5;
}
.device-desktop .pholio-mock-inline-comment-highlight.pholio-inline-comment {
background: #555555;
border-color: #aaaaaa;
}