0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 05:52:52 +01:00
discourse-custom-wizard/assets/stylesheets/common/wizard-admin.scss

584 Zeilen
8,9 KiB
SCSS

2020-04-01 07:03:26 +02:00
@import 'wizard-mapper';
@import 'wizard-transfer';
@import 'wizard-api';
2020-04-13 14:17:22 +02:00
.admin-wizard-controls {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
2020-04-20 13:40:32 +02:00
&+ .wizard-message + div {
margin-top: 20px;
}
2020-04-12 01:27:16 +02:00
}
2020-04-20 13:40:32 +02:00
.wizard-message {
2020-04-13 14:17:22 +02:00
background-color: $primary-low;
2020-04-20 13:40:32 +02:00
width: 100%;
2020-04-13 14:17:22 +02:00
padding: 10px;
2020-04-20 13:40:32 +02:00
box-sizing: border-box;
2020-04-13 14:17:22 +02:00
display: flex;
justify-content: space-between;
2020-04-14 01:39:21 +02:00
2020-04-20 13:40:32 +02:00
.message-block {
2020-04-14 01:39:21 +02:00
.d-icon {
margin-right: 4px;
}
2020-04-15 04:34:39 +02:00
2020-04-15 04:47:14 +02:00
a + a {
border-left: 1px solid $primary-medium;
padding-left: 5px;
margin-left: 5px;
2020-04-15 04:34:39 +02:00
}
2020-04-14 01:39:21 +02:00
}
2020-04-20 13:40:32 +02:00
& + div {
margin-top: 30px;
2020-04-22 15:10:27 +02:00
&+ div.setting {
margin-top: 30px;
}
2020-04-20 13:40:32 +02:00
}
2020-04-15 02:46:44 +02:00
}
.wizard-submissions {
overflow: scroll;
2020-04-15 07:41:27 +02:00
table td {
min-width: 150px;
}
2020-03-29 09:49:33 +02:00
}
2020-04-15 04:10:39 +02:00
.admin-wizards-logs {
.admin-wizard-controls {
h3 {
margin: 0 7px;
}
}
.wizard-logs {
.date {
width: 100px;
}
}
}
2020-03-29 09:49:33 +02:00
.wizard-settings-parent {
2020-04-02 07:21:57 +02:00
padding: 20px;
2020-04-07 13:06:35 +02:00
border: 1px solid $primary-low;
2020-03-29 09:49:33 +02:00
}
.wizard-settings-group {
display: flex;
justify-content: space-between;
flex-flow: wrap;
width: 100%;
box-sizing: border-box;
}
.wizard-settings,
2020-04-10 09:57:49 +02:00
.wizard-custom-step,
.wizard-custom-action {
2020-03-29 09:49:33 +02:00
@extend .wizard-settings-parent;
@extend .wizard-settings-group;
}
.wizard-basic-details,
.wizard-custom-field,
2020-04-02 07:21:57 +02:00
.advanced-settings {
2020-03-29 09:49:33 +02:00
@extend .wizard-settings-group;
2017-10-07 04:27:38 +02:00
}
2020-04-10 09:57:49 +02:00
.wizard-custom-field {
2020-04-02 07:21:57 +02:00
background: transparent;
2020-04-11 08:22:12 +02:00
background-color: dark-light-diff($primary, $secondary, 96%, -65%);
2020-04-02 07:21:57 +02:00
padding: 20px;
}
2020-04-20 11:41:13 +02:00
.wizard-custom-field,
.wizard-custom-action {
position: relative;
display: none;
&.visible {
display: flex;
}
.undo-changes {
position: absolute;
top: 0;
right: 0;
}
}
2020-04-13 14:17:22 +02:00
.admin-wizard-container.settings .wizard-basic-details {
2020-04-01 07:03:26 +02:00
justify-content: initial;
.setting {
width: auto;
margin-right: 20px;
.setting-label {
width: initial;
min-width: initial;
}
}
2020-03-31 10:30:53 +02:00
}
2017-10-06 04:59:02 +02:00
.wizard-header {
2020-03-29 09:49:33 +02:00
margin-bottom: 20px;
2020-03-31 10:30:53 +02:00
&.large {
font-size: 1.5em;
min-height: 31px;
2020-04-13 14:17:22 +02:00
margin-bottom: 20px;
2020-04-11 08:22:12 +02:00
display: flex;
2020-04-12 01:27:16 +02:00
justify-content: space-between;
2020-04-13 14:17:22 +02:00
align-items: flex-start;
2020-04-01 07:03:26 +02:00
input {
margin-bottom: 0;
2020-04-13 14:17:22 +02:00
width: 400px;
2020-04-01 07:03:26 +02:00
}
2020-04-12 01:27:16 +02:00
label {
margin-bottom: 0;
}
.download-link {
font-size: 1rem;
line-height: 20px;
}
2020-04-13 14:17:22 +02:00
.wizard-url {
display: inline-flex;
margin-left: 20px;
max-width: 50%;
a {
padding: 6px 12px;
font-size: 1rem;
background-color: $primary-low;
}
button {
font-size: 1rem;
}
}
2020-03-31 10:30:53 +02:00
}
2017-10-06 04:59:02 +02:00
&.medium {
2020-03-29 09:49:33 +02:00
font-size: 1.3em;
2017-10-06 04:59:02 +02:00
}
&.small {
2017-10-13 15:02:34 +02:00
font-size: 1em;
margin-bottom: 5px;
2017-10-06 04:59:02 +02:00
}
2017-10-30 07:24:51 +01:00
&.underline {
text-decoration: underline;
}
2017-10-06 04:59:02 +02:00
}
2020-04-01 07:03:26 +02:00
.admin-wizard-buttons {
margin-top: 20px;
}
2020-04-13 14:17:22 +02:00
.admin-wizard-container.settings {
2020-04-02 07:21:57 +02:00
2020-03-31 10:30:53 +02:00
[class~='setting'] {
2020-03-29 09:49:33 +02:00
display: inline-flex;
2020-03-31 10:30:53 +02:00
align-items: flex-start;
2020-03-29 09:49:33 +02:00
width: 48%;
2020-03-31 10:30:53 +02:00
margin-bottom: 30px;
padding-bottom: 0;
2020-04-02 07:21:57 +02:00
position: relative;
&:last-of-type {
margin-bottom: 0;
}
2017-10-06 04:59:02 +02:00
.setting-label {
2020-03-29 09:49:33 +02:00
width: 80px;
2020-03-31 10:30:53 +02:00
min-width: 80px;
2017-10-07 04:27:38 +02:00
}
2017-10-22 05:37:58 +02:00
.setting-value {
2020-03-29 09:49:33 +02:00
flex: 1;
overflow: initial;
float: initial;
width: initial;
padding: 0;
2017-10-22 05:37:58 +02:00
label {
font-size: 0.85em;
}
span {
font-size: 0.929em;
}
2017-11-01 05:21:14 +01:00
button {
display: block;
}
2020-03-29 09:49:33 +02:00
input[type="text"], textarea {
2017-11-02 03:22:13 +01:00
width: 100%;
2020-03-29 09:49:33 +02:00
box-sizing: border-box;
2020-04-01 07:03:26 +02:00
margin-bottom: 0;
2020-03-29 09:49:33 +02:00
}
2020-04-14 01:39:21 +02:00
input[type="number"] {
margin-bottom: 0;
}
2020-03-29 09:49:33 +02:00
input[disabled] {
background-color: $primary-low;
cursor: not-allowed;
2017-11-02 03:22:13 +01:00
}
2020-03-30 01:53:28 +02:00
2020-04-01 07:03:26 +02:00
input.medium {
width: 200px;
}
2020-04-13 14:17:22 +02:00
input.small {
width: 100px;
}
2020-03-30 01:53:28 +02:00
.uploaded-image-preview {
width: 100%;
max-height: 100px;
2020-04-01 07:03:26 +02:00
margin-bottom: 0;
2020-03-30 01:53:28 +02:00
}
.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;
}
2020-04-13 14:17:22 +02:00
.input .select-kit, > .select-kit {
max-width: 250px !important;
min-width: 250px !important;
}
2017-10-06 04:59:02 +02:00
}
2020-03-31 10:30:53 +02:00
&.full, &.full-inline {
2017-10-06 04:59:02 +02:00
width: 100%;
2018-05-24 07:34:58 +02:00
2017-11-02 03:22:13 +01:00
.setting-value {
width: initial;
float: none;
2019-08-27 08:05:24 +02:00
&.editor {
.d-editor {
margin-bottom: 5px;
}
}
2020-03-30 01:53:28 +02:00
.uploaded-image-preview {
2020-04-13 14:17:22 +02:00
max-height: 200px;
2020-03-30 01:53:28 +02:00
}
2017-11-02 03:22:13 +01:00
}
2017-10-06 04:59:02 +02:00
}
2020-03-29 09:49:33 +02:00
2020-03-31 10:30:53 +02:00
&.full-inline {
.setting-value {
display: flex;
align-items: center;
2020-04-02 07:21:57 +02:00
input {
margin: 0 7px 0 0;
2020-03-31 10:30:53 +02:00
}
button {
margin: 0 0 0 20px;
}
2020-03-29 09:49:33 +02:00
}
}
2020-04-15 06:48:42 +02:00
&.field-mapper-setting {
.setting-value {
max-width: calc(100% - 80px);
.mapper-input {
max-width: 100%;
box-sizing: border-box;
}
}
}
2017-10-13 15:02:34 +02:00
label {
2020-03-30 01:53:28 +02:00
margin: 3px 0;
2017-10-13 15:02:34 +02:00
}
.setting-gutter {
margin-top: 5px;
}
2017-10-13 15:02:34 +02:00
}
2020-04-01 07:03:26 +02:00
2020-04-02 07:21:57 +02:00
.advanced-settings {
width: 100%;
margin-top: 30px;
[class~='setting']:first-of-type {
border-top: none;
}
}
2020-04-13 14:17:22 +02:00
.wizard-custom-action > [class~='setting']:first-of-type {
2020-04-01 07:03:26 +02:00
margin-bottom: 0;
}
2017-10-13 15:02:34 +02:00
2017-10-30 07:24:51 +01:00
.select-box-kit-header {
height: initial;
}
2017-10-13 15:02:34 +02:00
.buttons .error {
color: $danger;
.fa {
margin-right: 5px;
}
}
.buttons .remove {
float: right;
2017-10-06 04:59:02 +02:00
}
.custom-category {
margin-top: 5px;
padding: 5px;
}
2017-10-06 04:59:02 +02:00
}
2020-03-29 09:49:33 +02:00
.btn-after-time {
margin-top: 7px;
}
.wizard-text-editor {
.d-editor {
width: 100%;
.d-editor-input {
2020-04-13 14:17:22 +02:00
min-height: 150px;
2020-03-29 09:49:33 +02:00
}
.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;
}
}
}
2017-10-06 04:59:02 +02:00
.wizard-links {
2020-04-20 13:40:32 +02:00
margin: 40px 0 20px 0;
2020-03-30 01:53:28 +02:00
display: inline-block;
2020-03-29 09:49:33 +02:00
width: 100%;
2017-10-06 04:59:02 +02:00
2020-04-11 08:22:12 +02:00
.link-list {
2017-10-17 09:18:53 +02:00
margin: 0;
padding: 0;
list-style: none;
2020-04-11 08:22:12 +02:00
display: inline-flex;
align-items: flex-start;
flex-flow: wrap;
2017-10-17 09:18:53 +02:00
2020-04-11 08:22:12 +02:00
> div {
display: flex;
align-items: center;
margin-bottom: 10px;
margin-right: 10px;
2017-10-17 09:18:53 +02:00
}
}
.sortable-placeholder {
height: 30px;
width: 100px;
display: inline-block;
vertical-align: top;
background-color: $primary-low;
2017-10-06 04:59:02 +02:00
margin-right: 10px;
2017-10-17 09:18:53 +02:00
margin-left: 3px;
2017-10-06 04:59:02 +02:00
}
}
2017-10-13 15:02:34 +02:00
.wizard-column-contents {
position: relative;
}
2020-03-29 09:49:33 +02:00
.required-data-message {
display: inline-block;
margin-top: 20px;
.label {
2019-07-27 09:14:07 +02:00
margin-bottom: 5px;
}
2020-04-01 07:03:26 +02:00
input {
margin-bottom: 0;
}
2019-07-27 09:01:29 +02:00
}
2017-10-09 07:52:09 +02:00
.wizard-field-composer textarea {
width: 100%;
min-height: 150px;
}
2017-11-01 05:21:14 +01:00
.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;
}
}
}
2017-11-24 05:32:15 +01:00
.post-builder-editor {
min-height: 220px;
}
2018-05-24 07:34:58 +02:00
.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;
}
}
2019-05-31 09:54:11 +02:00
.wizard-step-contents {
height: unset !important;
}
2020-04-02 07:21:57 +02:00
.wizard-advanced-toggle {
width: 100%;
}
.add-mapper-input .btn, .btn-after-time, .wizard-editor-gutter .btn {
background-color: $secondary;
border: 1px solid $primary-medium;
}