mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
4d12c58dcf
Summary: Ref T6523. Allows you to click stuff instead of using drag-and-drop. Test Plan: On iOS simulator, created and updated a mock. Reviewers: chad Reviewed By: chad Maniphest Tasks: T6523 Differential Revision: https://secure.phabricator.com/D16088
165 lines
3 KiB
CSS
165 lines
3 KiB
CSS
/**
|
|
* @provides pholio-edit-css
|
|
*/
|
|
|
|
.pholio-uploaded-image {
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
/* When we activate the image control to show that we're going to replace
|
|
it on drag-and-drop, this gives us a border which looks good without
|
|
crowding anything or leaving elements misaligned. */
|
|
border: 1px solid transparent;
|
|
margin: -4px -4px 12px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.pholio-thumb-box {
|
|
margin: 2px 0;
|
|
float: left;
|
|
background: {$lightgreybackground};
|
|
border: 1px solid {$lightgreyborder};
|
|
border-radius: 3px;
|
|
width: 296px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.device .pholio-thumb-box {
|
|
width: 100%;
|
|
}
|
|
|
|
.device-desktop .pholio-thumb-box {
|
|
/* Provide room for the draggable grip. */
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.device .pholio-thumb-box {
|
|
float: none;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.pholio-thumb-img {
|
|
max-width: 280px;
|
|
max-height: 210px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.pholio-uploaded-image .pholio-thumb-img {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pholio-thumb-frame {
|
|
background: url('/rsrc/image/checker_lighter.png');
|
|
}
|
|
|
|
.device .pholio-thumb-frame {
|
|
width: 100%;
|
|
}
|
|
|
|
.pholio-thumb-title {
|
|
padding: 4px 8px;
|
|
font-weight: bold;
|
|
color: {$darkgreytext};
|
|
overflow: hidden;
|
|
border-bottom: 1px solid #d7d7d7;
|
|
}
|
|
|
|
.pholio-thumb-name {
|
|
line-height: 24px;
|
|
margin-right: 48px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.pholio-thumb-title .button {
|
|
float: right;
|
|
}
|
|
|
|
.pholio-image-details {
|
|
margin-left: 324px;
|
|
}
|
|
|
|
.device .pholio-image-details {
|
|
margin-left: 0;
|
|
clear: both;
|
|
}
|
|
|
|
.pholio-uploaded-image .pholio-image-details .aphront-form-control {
|
|
padding: 0;
|
|
margin: 0 0 8px 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pholio-uploaded-image .pholio-image-details .aphront-form-label,
|
|
.pholio-uploaded-image .pholio-image-details .aphront-form-input {
|
|
display: block;
|
|
width: auto;
|
|
text-align: left;
|
|
padding: 0;
|
|
margin: 0;
|
|
clear: both;
|
|
}
|
|
|
|
.pholio-uploaded-image .pholio-image-details .aphront-form-label {
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.pholio-edit-drop {
|
|
display: block;
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: {$lightgreytext};
|
|
text-align: center;
|
|
padding: 16px;
|
|
color: {$greytext};
|
|
}
|
|
|
|
.pholio-uploaded-image.pholio-drop-active,
|
|
.pholio-edit-drop.pholio-drop-active {
|
|
border-style: solid;
|
|
border-color: {$green};
|
|
background-color: {$lightgreen};
|
|
}
|
|
|
|
.pholio-replacing {
|
|
opacity: 0.5;
|
|
border-color: {$green};
|
|
background-color: {$lightgreen};
|
|
}
|
|
|
|
.pholio-drop-uploading {
|
|
padding: 24px;
|
|
text-align: center;
|
|
border: 1px solid #bbbbbb;
|
|
background: #fcfcfc;
|
|
color: {$greytext};
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.pholio-drop-undo {
|
|
padding: 8px;
|
|
margin-bottom: 12px;
|
|
text-align: center;
|
|
color: #333333;
|
|
border: 1px solid {$yellow};
|
|
background-color: {$lightyellow};
|
|
}
|
|
|
|
.pholio-drop-undo a {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.pholio-drag-handle {
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 12px;
|
|
cursor: move;
|
|
background-image: url(/rsrc/image/texture/grip.png);
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.device .pholio-drag-handle {
|
|
display: none;
|
|
}
|