1
0
Fork 0
discourse-custom-wizard-unl.../assets/stylesheets/wizard_custom_admin.scss
2020-03-30 17:16:03 +11:00

730 Zeilen
10 KiB
SCSS

$setting-background: dark-light-diff($primary, $secondary, 96%, -65%);
.wizard-list {
float: left;
width: 250px;
margin-top: 10px;
}
.wizard-settings-parent {
margin-bottom: 20px;
padding: 30px;
background-color: $setting-background;
}
.wizard-settings-group {
display: flex;
justify-content: space-between;
flex-flow: wrap;
width: 100%;
box-sizing: border-box;
}
.wizard-settings,
.wizard-custom-step {
@extend .wizard-settings-parent;
@extend .wizard-settings-group;
}
.wizard-basic-details,
.wizard-custom-field,
.wizard-custom-action {
@extend .wizard-settings-group;
}
.new-wizard {
margin-top: 15px;
}
.wizard-header {
font-size: 1.5em;
margin-bottom: 20px;
&.medium {
font-size: 1.3em;
}
&.small {
font-size: 1em;
margin-bottom: 5px;
}
&.underline {
text-decoration: underline;
}
.wizard-url {
display: inline-block;
font-size: 1rem;
margin-left: 20px;
background-color: $setting-background;
}
}
.content-list + .content {
overflow: hidden;
}
.admin-wizard.settings {
margin-top: 10px;
margin-left: 30px;
.setting {
display: inline-flex;
vertical-align: top;
width: 48%;
padding-bottom: 30px;
.setting-label {
width: 80px;
}
.setting-value {
flex: 1;
overflow: initial;
float: initial;
width: initial;
padding: 0;
label {
font-size: 0.85em;
}
span {
font-size: 0.929em;
}
button {
display: block;
}
input[type="text"], textarea {
width: 100%;
box-sizing: border-box;
}
input[disabled] {
background-color: $primary-low;
cursor: not-allowed;
}
input[type="number"] {
width: 70px;
}
.uploaded-image-preview {
width: 100%;
max-height: 100px;
}
.image-upload-controls {
label {
font-size: 1em;
margin: 0 5px 0 0;
}
}
> textarea {
min-height: 100px;
resize: vertical;
}
input[type="checkbox"] {
float: left;
margin: 5px 7px 0 0;
}
span {
overflow: hidden;
}
}
&.full {
width: 100%;
.setting-value {
width: initial;
float: none;
&.editor {
.d-editor {
margin-bottom: 5px;
}
}
.uploaded-image-preview {
max-height: 170px;
}
}
}
&.field-mapper-setting {
padding-bottom: 20px;
.setting-label {
margin-top: 18px;
}
}
label {
margin: 3px 0;
}
.setting-gutter {
margin-top: 5px;
}
}
.select-box-kit-header {
height: initial;
}
.buttons .error {
color: $danger;
.fa {
margin-right: 5px;
}
}
.buttons .remove {
float: right;
}
.custom-category {
margin-top: 5px;
padding: 5px;
}
}
.field-mapper {
width: 100%;
display: inline-block;
> .custom-input, > .add-custom-input {
float: left;
clear: left;
}
.add-custom-input:first-child {
margin-top: 15px;
}
.multi-select {
.multi-select-header, input {
min-height: 25px;
}
.choices .choice {
height: 24px;
}
}
}
.btn-after-time {
margin-top: 7px;
}
.wizard-text-editor {
.d-editor {
width: 100%;
.d-editor-input {
min-height: 130px;
}
.d-editor-container {
display: block;
}
.d-editor-textarea-wrapper {
display: grid;
margin-bottom: 10px;
textarea {
resize: vertical;
}
}
.d-editor-preview-wrapper {
display: none;
margin: 0 0 10px 0;
padding: 10px;
background-color: $secondary;
border: 1px solid $primary-medium;
max-width: 100%;
&.force-preview {
display: block;
}
}
button {
margin: 0;
}
}
.wizard-editor-gutter {
position: relative;
display: flex;
.btn {
margin-right: 10px;
}
.wizard-editor-gutter-popover {
position: absolute;
padding: 10px;
background-color: $secondary;
box-shadow: shadow('card');
z-index: 200;
top: 40px;
}
}
}
.wizard-links {
margin: 20px 0;
display: inline-block;
width: 100%;
ul {
margin: 0;
padding: 0;
list-style: none;
display: inline-block;
li {
display: inline-block;
margin-bottom: 7px;
margin-right: 7px;
}
}
.sortable-placeholder {
height: 30px;
width: 100px;
display: inline-block;
vertical-align: top;
background-color: $primary-low;
margin-right: 10px;
margin-left: 3px;
}
}
.wizard-column-contents {
position: relative;
}
.wizard-dropdown-choices {
padding: 15px;
margin-bottom: 20px;
background-color: $secondary;
width: 100%;
.wizard-header:not(.underline) {
margin-top: 15px;
}
}
.custom-input {
display: inline-flex;
align-items: flex-start;
margin-bottom: 10px;
position: relative;
.type-selector a {
color: $primary;
margin-right: 4px;
&.active {
color: $tertiary;
text-decoration: underline;
}
&:last-of-type {
margin-right: 0;
}
}
.input-pairs {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
.add-pair {
margin-top: 10px;
}
.remove-pair {
position: absolute;
top: 25px;
right: -30px;
}
.join-pair {
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
}
}
.input-pair {
display: flex;
align-items: flex-end;
position: relative;
&:not(:first-of-type) {
margin-top: 10px;
}
&.no-connector div.input-block:not(:last-of-type) {
margin-right: 10px;
}
}
.d-icon {
text-align: center;
}
input {
margin: 0;
}
input[disabled] {
background-color: $primary-low;
border-color: #ddd;
}
.input-block, .select-kit, input {
width: 160px;
min-width: 160px;
}
a.remove-input {
position: absolute;
right: -25px;
top: 25px;
}
.connector {
margin: 0 10px;
margin-top: 21px;
&.prefix {
margin-left: 0;
}
.select-kit {
min-width: 50px;
}
.key-connector {
padding-bottom: 5px;
display: inline-block;
}
.output-connector {
white-space: nowrap;
}
}
}
.required-data-message {
display: inline-block;
margin-top: 20px;
.label {
margin-bottom: 5px;
}
}
.admin-contents .wizard-submissions {
width: 100%;
display: inline-block;
table {
margin-top: 0;
position: absolute;
}
}
.wizard-field-composer textarea {
width: 100%;
min-height: 150px;
}
.next-session-time-modal {
text-align: center;
.date-time-card {
width: 270px;
padding: 10px 20px;
text-align: left;
}
.modal-date-time-set{
padding-top: 3px;
padding-bottom: 4px;
display: flex;
flex-direction: row;
.modal-date-area{
order: 1;
}
.modal-time-area{
order: 2;
margin-left: 10px;
.modal-time{
width: 127px;
}
}
}
.ui-timepicker-input {
width: 119px;
text-align: center;
}
.date-picker{
width: 121px;
}
.pika-single {
position: relative !important;
.pika-lendar {
border: 1px solid #eee;
padding: 14px;
margin: 0;
float: none;
width: auto;
}
}
}
.post-builder-editor {
min-height: 220px;
}
.text-divider {
display: block;
text-align: center;
overflow: hidden;
white-space: nowrap;
margin: 5px 0;
> span {
position: relative;
display: inline-block;
}
> span:before,
> span:after {
content: "";
position: absolute;
top: 50%;
width: 9999px;
height: 1px;
background: $tertiary;
}
> span:before {
right: 100%;
margin-right: 15px;
}
> span:after {
left: 100%;
margin-left: 15px;
}
}
.wizard-step-contents {
height: unset !important;
}
.admin-wizards-api {
margin-bottom: 40px;
.content-list {
margin-right: 20px;
}
.new-api {
margin-top: 20px;
}
.metadata .title input {
width: 400px;
}
.buttons {
text-align: right;
vertical-align: middle;
> .d-icon, > .spinner {
margin-right: 7px;
}
.error {
margin-top: 10px;
color: $danger;
}
}
}
.wizard-api-header {
&.page {
margin-bottom: 20px;
}
.buttons {
float: right;
}
.wizard-header {
overflow: hidden;
}
}
.wizard-api-authentication {
display: flex;
background-color: $primary-very-low;
padding: 20px;
margin-bottom: 20px;
.settings {
width: 50%;
max-width: 50%;
}
.redirect-uri .controls {
word-break: break-all;
}
.auth-type .select-kit {
min-width: 210px;
width: 210px;
margin-bottom: 10px;
}
.status {
border-left: 1px solid $primary;
margin-left: 20px;
padding-left: 20px;
width: 50%;
max-width: 50%;
.wizard-header {
overflow: hidden;
}
.authorization {
float: right;
}
.control-group {
margin-bottom: 15px;
}
}
}
.wizard-api-endpoints {
background-color: $primary-very-low;
padding: 20px;
margin-bottom: 20px;
.endpoint-list {
margin-top: 20px;
ul {
margin: 0;
list-style: none;
}
}
.endpoint {
margin-top: 20px;
.top, .bottom {
display: flex;
}
.top {
margin-bottom: 15px;
}
.combo-box {
margin-right: 10px;
width: 210px;
}
input {
margin: 0;
margin-right: 10px;
}
.endpoint-url {
flex: 1 1 auto;
}
.remove-endpoint {
margin-left: auto;
}
}
}
.wizard-api-log {
background-color: #f8f8f8;
padding: 20px;
margin-bottom: 20px;
}
.wizard-step-contents{
height: unset !important;
}
// Tansfer tab
.admin-wizards-transfer .admin-container .container {
padding-top: 20px;
}
#file-url {
display: block;
margin-bottom: 10px;
}
.wizard-list-select {
list-style-type: none;
}
.wizard-action-buttons {
flex-direction: column;
}
.import-message {
margin: 10px 0;
}
.import-logs {
margin-top: 20px;
.title {
font-weight: 800;
margin-bottom: 10px;
}
ul {
list-style: none;
}
}