You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cryptpad/www/form/app-form.less

186 lines
5.8 KiB
Plaintext

@import (reference) '../../customize/src/less2/include/framework.less';
@import (reference) '../../customize/src/less2/include/tools.less';
@import (reference) '../../customize/src/less2/include/avatar.less';
&.cp-app-form {
@form_input-width: 400px;
.framework_main(
@bg-color: @colortheme_apps[form]
);
display: flex;
flex-flow: column;
font: @colortheme_app-font;
color: @cryptpad_text_col;
#cp-app-form-editor {
flex: 1;
display: flex;
flex-flow: row;
height: 100%;
overflow: hidden;
}
4 years ago
&.cp-app-form-results {
div.cp-form-creator-content, .cp-app-form-button-results {
display: none !important;
}
}
&:not(.cp-app-form-results) {
div.cp-form-creator-results, .cp-app-form-button-creator {
display: none !important;
}
}
#cp-app-form-container {
display: flex;
flex: 1;
justify-content: center;
div.cp-form-creator-container {
display: flex;
flex: 1;
max-width: 1300px;
div.cp-form-creator-control {
padding: 10px;
display: flex;
flex-flow: column;
width: 300px;
4 years ago
.cp-form-creator-types {
margin-top: 20px;
display: flex;
flex-flow: column;
}
}
4 years ago
div.cp-form-creator-content, div.cp-form-creator-results {
padding: 10px;
display: flex;
flex-flow: column;
flex: 1;
overflow: auto;
.cp-form-block {
.tools_unselectable();
background: @cp_form-bg1;
padding: 10px;
&:not(:last-child) {
margin-bottom: 20px;
}
.cp-form-block-question {
margin-bottom: 5px;
}
.cp-form-input-block {
display: flex;
//width: @form_input-width;
&:not(.editing) {
input {
background: transparent;
border: none;
padding: 0 !important;
& ~ button:not(:disabled) {
.cp-form-edit { display: inline; }
.cp-form-save { display: none; }
}
}
}
input {
flex: 1;
min-width: 100px;
padding: 0 10px !important;
height: auto;
}
button {
.cp-form-edit {
display: none;
}
.cp-form-save { display: inline; }
}
.cp-form-block-drag {
font-size: 22px;
width: 20px;
margin-left: 5px;
text-align: center;
line-height: 31px;
}
}
&.editable { cursor: grab; }
}
.cp-form-edit-block {
.cp-form-edit-block-input {
display: flex;
width: 400px;
input {
flex: 1;
min-width: 100px;
}
button {
i { margin: 0 !important; }
}
}
}
}
}
4 years ago
div.cp-form-creator-results {
display: flex;
flex-flow: column;
position: relative;
& > div {
background: @cp_form-bg1;
4 years ago
padding: 10px;
&:not(:last-child) {
margin-bottom: 20px;
}
}
.cp-form-block-question {
margin-bottom: 5px;
}
.cp-form-block-type {
float: right;
padding: 5px;
margin-top: -10px;
margin-right: -10px;
i { margin-right: 5px; }
background: @cp_form-bg2;
4 years ago
}
.cp-form-results-type-text {
max-height: 300px;
overflow: auto;
.cp-form-results-type-text-data {
padding: 5px 10px;
background: @cp_form-bg2;
4 years ago
&:not(:last-child) { margin-bottom: 1px; }
}
}
.cp-form-results-type-radio {
display: table;
.cp-form-results-type-radio-data {
display: table-row;
border: 1px solid @cp_form-border;
4 years ago
& > span {
border: 1px solid @cp_form-border;
4 years ago
display: table-cell;
padding: 5px 10px;
background: @cp_form-bg2;
4 years ago
&.cp-value {
min-width: 200px;
}
}
}
}
}
}
.cp-form-type-radio {
display: flex;
flex-flow: column;
align-items: baseline;
.cp-radio {
display: inline-flex;
}
}
}