mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 17:02:41 +01:00
8573a1e142
Summary: Currently, in Maniphest, if you drag-and-drop a file it always attaches. Instead, I want you to have two options: - Drag and drop to the attachment area to attach; or - drag and drop to the Remarkup panel to upload + inline. For the first step, make the input have a clear drop target instead of it being the entire panel. Test Plan: Attached files in Create Task, task view, meta mta send test. Reviewers: btrahan, vrana Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3651
314 lines
5.4 KiB
CSS
314 lines
5.4 KiB
CSS
/**
|
|
* @provides aphront-form-view-css
|
|
*/
|
|
|
|
/**
|
|
* These styles are overrides for .aphront-form-view
|
|
*/
|
|
.aphront-form-view-shaded {
|
|
border: 1px solid #c4c4c4;
|
|
background: #e7e7e7;
|
|
}
|
|
|
|
.aphront-form-view-padded {
|
|
padding: 1em;
|
|
}
|
|
|
|
|
|
.aphront-form-view label.aphront-form-label {
|
|
padding-top: 4px;
|
|
width: 19%;
|
|
float: left;
|
|
text-align: right;
|
|
font-weight: bold;
|
|
font-size: 13px;
|
|
color: #666666;
|
|
}
|
|
|
|
.aphront-form-input {
|
|
margin-left: 20%;
|
|
margin-right: 25%;
|
|
width: 55%;
|
|
}
|
|
|
|
|
|
.aphront-form-error {
|
|
width: 23%;
|
|
float: right;
|
|
color: #aa0000;
|
|
font-weight: bold;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.aphront-form-required {
|
|
font-weight: normal;
|
|
color: #888888;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.aphront-form-input input,
|
|
.aphront-form-input textarea {
|
|
font-size: 12px;
|
|
display: block;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
.aphront-form-input textarea {
|
|
height: 12em;
|
|
}
|
|
|
|
.aphront-form-control {
|
|
padding: 4px;
|
|
}
|
|
|
|
.aphront-form-control-submit button,
|
|
.aphront-form-control-submit a.button {
|
|
float: right;
|
|
margin: 0.5em 0 0em 2%;
|
|
}
|
|
|
|
.aphront-form-control-textarea textarea.aphront-textarea-very-short {
|
|
height: 3em;
|
|
}
|
|
|
|
.aphront-form-control-textarea textarea.aphront-textarea-very-tall {
|
|
height: 24em;
|
|
}
|
|
|
|
.aphront-form-control-select .aphront-form-input {
|
|
padding-top: 2px;
|
|
}
|
|
|
|
|
|
.aphront-form-view .aphront-form-caption {
|
|
font-size: 11px;
|
|
color: #444444;
|
|
text-align: right;
|
|
margin-right: 25%;
|
|
margin-left: 20%;
|
|
}
|
|
|
|
/* override for when inside an aphront-panel-view */
|
|
.aphront-panel-view .aphront-form-view h1 {
|
|
padding: 0em 0em .8em 0em;
|
|
}
|
|
|
|
.aphront-form-instructions {
|
|
margin: 0.75em 3% 1.25em;
|
|
}
|
|
|
|
.aphront-form-important {
|
|
margin: .5em 0;
|
|
background: #ffffdd;
|
|
padding: .5em 1em;
|
|
}
|
|
.aphront-form-important code {
|
|
display: block;
|
|
padding: .25em;
|
|
margin: .5em 2em;
|
|
}
|
|
|
|
|
|
.aphront-form-control-static .aphront-form-input,
|
|
.aphront-form-control-markup .aphront-form-input {
|
|
padding-top: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.aphront-form-control-togglebuttons .aphront-form-input {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
table.aphront-form-control-radio-layout,
|
|
table.aphront-form-control-checkbox-layout {
|
|
margin-top: 3px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
table.aphront-form-control-radio-layout th,
|
|
table.aphront-form-control-checkbox-layout th {
|
|
padding-top: 2px;
|
|
padding-left: 0.35em;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.aphront-form-control-radio-layout td input,
|
|
.aphront-form-control-checkbox-layout td input {
|
|
margin-top: 4px;
|
|
width: auto;
|
|
}
|
|
|
|
.aphront-form-radio-caption {
|
|
font-size: 11px;
|
|
color: #444444;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.aphront-form-control-image .image {
|
|
width: 164px;
|
|
}
|
|
|
|
.aphront-form-control-image span {
|
|
margin: 0px 4px 0px 2px;
|
|
}
|
|
|
|
.aphront-form-control-image .default-image {
|
|
width: 12px;
|
|
}
|
|
|
|
.aphront-form-input hr {
|
|
border: none;
|
|
background: #bbbbbb;
|
|
height: 1px;
|
|
position: relative;
|
|
}
|
|
|
|
.aphront-form-inset {
|
|
margin: 0 0 1em;
|
|
padding: .75em;
|
|
background: #f3f3f3;
|
|
border: 1px solid #afafaf;
|
|
}
|
|
|
|
.aphront-form-drag-and-drop-file-list {
|
|
width: 400px;
|
|
}
|
|
|
|
.drag-and-drop-instructions {
|
|
color: #333333;
|
|
font-size: 11px;
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.drag-and-drop-file-target {
|
|
border: 1px dashed #bfbfbf;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.aphront-textarea-drag-and-drop {
|
|
background: #99ff99;
|
|
border-color: #669966;
|
|
}
|
|
|
|
.calendar-button {
|
|
padding: 11px;
|
|
right: -30px;
|
|
top: -3px;
|
|
|
|
background: url(/rsrc/image/icon/fatcow/calendar_edit.png)
|
|
no-repeat center center;
|
|
z-index: 2;
|
|
position: absolute;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.aphront-form-date-container {
|
|
position: relative;
|
|
display: inline;
|
|
}
|
|
|
|
.aphront-form-date-container select{
|
|
margin: 2px;
|
|
}
|
|
|
|
.fancy-datepicker {
|
|
position: absolute;
|
|
top: -10px;
|
|
right: -8px;
|
|
width: 240px;
|
|
padding-bottom: 6em;
|
|
}
|
|
|
|
.fancy-datepicker-core {
|
|
padding: 1px;
|
|
font-size: 11px;
|
|
font-family: Verdana;
|
|
text-align: center;
|
|
}
|
|
|
|
.fancy-datepicker-core .month-table,
|
|
.fancy-datepicker-core .day-table {
|
|
margin: 0 auto;
|
|
border-collapse: separate;
|
|
border-spacing: 1px;
|
|
width: 100%;
|
|
}
|
|
|
|
.fancy-datepicker-core .month-table {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.fancy-datepicker-core .month-table td.lrbutton {
|
|
width: 20%;
|
|
}
|
|
|
|
.fancy-datepicker-core .month-table td {
|
|
padding: 4px;
|
|
font-weight: bold;
|
|
color: #444444;
|
|
}
|
|
|
|
.fancy-datepicker-core .month-table td.lrbutton {
|
|
background: #e6e6e6;
|
|
border: 1px solid;
|
|
border-color: #a6a6a6 #969696 #868686 #a6a6a6;
|
|
}
|
|
|
|
.fancy-datepicker-core .day-table td {
|
|
overflow: hidden;
|
|
background: #f6f6f6;
|
|
vertical-align: center;
|
|
text-align: center;
|
|
border: 1px solid #d6d6d6;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.fancy-datepicker-core .day-table td.day-placeholder {
|
|
border-color: transparent;
|
|
background: transparent;
|
|
}
|
|
|
|
.fancy-datepicker-core .day-table td.weekend {
|
|
color: #666666;
|
|
border-color: #e6e6e6;
|
|
}
|
|
|
|
.fancy-datepicker-core .day-table td.day-name {
|
|
background: transparent;
|
|
border: 1px transparent;
|
|
vertical-align: bottom;
|
|
color: #888888;
|
|
}
|
|
|
|
.fancy-datepicker-core .day-table td.today {
|
|
background: #eeee99;
|
|
border-color: #aaaa66;
|
|
}
|
|
|
|
.fancy-datepicker-core .day-table td.datepicker-selected {
|
|
background: #0099ff;
|
|
border-color: #0066cc;
|
|
}
|
|
|
|
.fancy-datepicker-core td {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fancy-datepicker-core td.novalue {
|
|
cursor: inherit;
|
|
}
|
|
|
|
.picker-open .calendar-button,
|
|
.fancy-datepicker-core {
|
|
background-color: white;
|
|
border: 1px solid #777777;
|
|
|
|
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.picker-open .calendar-button {
|
|
border-left: 1px solid white;
|
|
}
|