mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 15:00:58 +01:00
eab768f705
Summary: Provide a quick workflow for adding a new project. This ended up being sort of complicated because we don't currently put forms in dialogs. I separated the actual <form /> tag out of the display/layout of AphrontFormView to enable this (the dialog is itself a form). Limitations: if you create a new project and then remove it, it won't appear in the tokenizer until you reload the page. We need to add the ability for the datasource to drop its cache to enable this, which is super complicated. Test Plan: Used "Create new project" to add a new project when creating a task. Reviewed By: aran Reviewers: jungejason, tuomaspelkonen, aran CC: anjali, aran, epriestley Differential Revision: 422
135 lines
2.1 KiB
CSS
135 lines
2.1 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-input input,
|
|
.aphront-form-input textarea {
|
|
font-size: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.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;
|
|
clear: both;
|
|
margin-right: 25%;
|
|
margin-left: 20%;
|
|
}
|
|
|
|
.aphront-form-instructions {
|
|
margin: 0.75em 3% 1.25em;
|
|
}
|
|
|
|
.aphront-form-control-static .aphront-form-input {
|
|
padding-top: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.aphront-form-control-togglebuttons .aphront-form-input {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
table.aphront-form-control-checkbox-layout {
|
|
margin-top: 3px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
table.aphront-form-control-checkbox-layout th {
|
|
padding-top: 2px;
|
|
padding-left: 0.35em;
|
|
}
|
|
|
|
.aphront-form-control-checkbox-layout td input {
|
|
width: auto;
|
|
}
|
|
|
|
.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;
|
|
}
|