Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 01:40:29 +01:00
997 Zeilen
15 KiB
SCSS
997 Zeilen
15 KiB
SCSS
@import "wizard/mapper";
|
|
@import "wizard/manager";
|
|
@import "wizard/api";
|
|
@import "common/components/buttons";
|
|
@import "wizard/variables";
|
|
|
|
.admin-wizard-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
|
|
& + .wizard-message + div {
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
|
|
.wizard-message {
|
|
background-color: var(--primary-low);
|
|
width: 100%;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
|
|
.message-block {
|
|
.d-icon {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.d-icon-check-circle {
|
|
color: var(--success);
|
|
}
|
|
|
|
.d-icon-times-circle {
|
|
color: var(--danger);
|
|
}
|
|
|
|
a + a {
|
|
border-left: 1px solid var(--primary-medium);
|
|
padding-left: 5px;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.message {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.list-colon {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
|
|
span.action {
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
& + div {
|
|
margin-top: 30px;
|
|
}
|
|
}
|
|
|
|
.wizard-table {
|
|
overflow: scroll;
|
|
|
|
table td:not(.small) {
|
|
min-width: 150px;
|
|
}
|
|
|
|
table thead th {
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.wizard-table-icon-item {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
svg {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.wizard-table-checkbox-true {
|
|
text-transform: capitalize;
|
|
color: var(--success);
|
|
}
|
|
|
|
.wizard-table-checkbox-false {
|
|
text-transform: capitalize;
|
|
color: var(--danger);
|
|
}
|
|
|
|
.wizard-table-long-text {
|
|
&-content {
|
|
white-space: nowrap;
|
|
word-wrap: break-word;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 250px;
|
|
margin-bottom: 0;
|
|
|
|
&.text-expanded {
|
|
white-space: normal;
|
|
}
|
|
}
|
|
|
|
a {
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|
|
|
|
.wizard-table-composer-text {
|
|
font-family: monospace;
|
|
}
|
|
}
|
|
|
|
.wizard-settings-parent {
|
|
padding: 1em;
|
|
border: 1px solid var(--primary-low);
|
|
}
|
|
|
|
.wizard-settings-group {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-flow: wrap;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.wizard-settings,
|
|
.wizard-custom-step,
|
|
.wizard-custom-action {
|
|
@extend .wizard-settings-parent;
|
|
@extend .wizard-settings-group;
|
|
}
|
|
|
|
.wizard-basic-details,
|
|
.wizard-custom-field,
|
|
.subscription-settings {
|
|
@extend .wizard-settings-group;
|
|
}
|
|
|
|
.wizard-custom-field {
|
|
background: transparent;
|
|
background-color: var(--primary-very-low);
|
|
padding: 20px;
|
|
}
|
|
|
|
.wizard-custom-field,
|
|
.wizard-custom-action {
|
|
position: relative;
|
|
display: none;
|
|
|
|
&.visible {
|
|
display: flex;
|
|
}
|
|
|
|
.undo-changes {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
.admin-wizard-container.settings .wizard-basic-details {
|
|
justify-content: initial;
|
|
|
|
.setting {
|
|
width: auto;
|
|
margin-right: 20px;
|
|
|
|
.setting-label {
|
|
width: initial;
|
|
min-width: initial;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wizard-header {
|
|
margin-bottom: 20px;
|
|
|
|
&.large {
|
|
font-size: 1.5em;
|
|
min-height: 31px;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
|
|
input {
|
|
margin-bottom: 0;
|
|
width: 400px;
|
|
}
|
|
|
|
label {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
button {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.download-link {
|
|
font-size: 1rem;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.wizard-url {
|
|
display: inline-flex;
|
|
margin-left: 20px;
|
|
max-width: 50%;
|
|
|
|
a {
|
|
padding: 6px 12px;
|
|
font-size: 1rem;
|
|
background-color: var(--primary-low);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.medium {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
&.small {
|
|
font-size: 1em;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
&.underline {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.controls {
|
|
margin-left: auto;
|
|
margin-right: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.admin-wizard-buttons {
|
|
margin-top: 20px;
|
|
display: flex;
|
|
|
|
.btn {
|
|
margin-right: 1em;
|
|
}
|
|
}
|
|
|
|
.admin-wizard-container.settings {
|
|
[class~="setting"] {
|
|
display: inline-flex;
|
|
align-items: flex-start;
|
|
width: 48%;
|
|
margin-bottom: 30px;
|
|
padding-bottom: 0;
|
|
position: relative;
|
|
|
|
&:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.setting-label {
|
|
width: 80px;
|
|
min-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;
|
|
margin-bottom: 0;
|
|
|
|
&.medium {
|
|
width: 40%;
|
|
}
|
|
}
|
|
|
|
input[type="number"] {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
input[disabled] {
|
|
background-color: var(--primary-low);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
input.medium {
|
|
width: 200px;
|
|
}
|
|
|
|
input.small {
|
|
width: 100px;
|
|
}
|
|
|
|
.uploaded-image-preview {
|
|
width: 100%;
|
|
max-height: 100px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.input .select-kit,
|
|
> .select-kit {
|
|
max-width: 250px !important;
|
|
min-width: 250px !important;
|
|
}
|
|
|
|
&.force-final {
|
|
padding: 1em;
|
|
background-color: var(--primary-very-low);
|
|
|
|
label,
|
|
span {
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.full,
|
|
&.full-inline {
|
|
width: 100%;
|
|
|
|
.setting-value {
|
|
width: initial;
|
|
float: none;
|
|
|
|
&.editor {
|
|
.d-editor {
|
|
margin-bottom: 5px;
|
|
}
|
|
}
|
|
|
|
.uploaded-image-preview {
|
|
max-height: 200px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.full-inline {
|
|
.setting-value {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
input {
|
|
margin: 0 7px 0 0;
|
|
}
|
|
|
|
button {
|
|
margin: 0 0 0 20px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.field-mapper-setting {
|
|
.setting-value {
|
|
max-width: calc(100% - 80px);
|
|
|
|
.mapper-input {
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
}
|
|
|
|
label {
|
|
margin: 3px 0;
|
|
}
|
|
|
|
.setting-gutter {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
&.subscription {
|
|
.setting-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
label {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.wizard-custom-action > [class~="setting"]:first-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.wizard-custom-action .select-kit-row.disabled {
|
|
background: var(--primary-low);
|
|
}
|
|
|
|
.select-box-kit-header {
|
|
height: initial;
|
|
}
|
|
|
|
.buttons .error {
|
|
color: var(--danger);
|
|
|
|
.fa {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.buttons .remove {
|
|
float: right;
|
|
}
|
|
|
|
.custom-category {
|
|
margin-top: 5px;
|
|
padding: 5px;
|
|
}
|
|
}
|
|
|
|
.btn-after-time {
|
|
margin-top: 7px;
|
|
}
|
|
|
|
.wizard-text-editor {
|
|
.d-editor {
|
|
width: 100%;
|
|
|
|
.d-editor-input {
|
|
min-height: 150px;
|
|
}
|
|
|
|
.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: var(--secondary);
|
|
border: 1px solid var(--primary-medium);
|
|
max-width: 100%;
|
|
|
|
&.force-preview {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
button {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.wizard-editor-gutter {
|
|
position: relative;
|
|
display: flex;
|
|
|
|
.btn {
|
|
margin-right: 10px;
|
|
color: var(--primary);
|
|
|
|
&:hover {
|
|
color: var(--secondary);
|
|
}
|
|
}
|
|
|
|
.wizard-editor-gutter-popover {
|
|
position: absolute;
|
|
padding: 10px;
|
|
background-color: var(--secondary);
|
|
box-shadow: shadow("card");
|
|
z-index: 200;
|
|
top: 40px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wizard-links {
|
|
margin: 40px 0 20px 0;
|
|
display: inline-block;
|
|
width: 100%;
|
|
|
|
.link-list {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
display: inline-flex;
|
|
align-items: flex-start;
|
|
flex-flow: wrap;
|
|
|
|
> div {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.btn {
|
|
height: 32px;
|
|
}
|
|
}
|
|
|
|
.sortable-placeholder {
|
|
height: 30px;
|
|
width: 100px;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
background-color: var(--primary-low);
|
|
margin-right: 10px;
|
|
margin-left: 3px;
|
|
}
|
|
}
|
|
|
|
.wizard-column-contents {
|
|
position: relative;
|
|
}
|
|
|
|
.required-data-message {
|
|
display: inline-block;
|
|
margin-top: 20px;
|
|
|
|
.label {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
input {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.wizard-field-composer textarea {
|
|
width: 100%;
|
|
min-height: 150px;
|
|
}
|
|
|
|
.modal .modal-body.next-session-time-modal {
|
|
overflow: visible;
|
|
|
|
.picker-container {
|
|
position: absolute;
|
|
top: 30px;
|
|
}
|
|
}
|
|
|
|
.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: var(--tertiary);
|
|
}
|
|
|
|
> span:before {
|
|
right: 100%;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
> span:after {
|
|
left: 100%;
|
|
margin-left: 15px;
|
|
}
|
|
}
|
|
|
|
.wizard-step-contents {
|
|
height: unset !important;
|
|
}
|
|
|
|
.wizard-advanced-toggle {
|
|
width: 100%;
|
|
}
|
|
|
|
.add-mapper-input .btn,
|
|
.btn-after-time,
|
|
.wizard-editor-gutter .btn {
|
|
background-color: var(--secondary);
|
|
border: 1px solid var(--primary-medium);
|
|
}
|
|
|
|
.admin-wizards-custom-fields {
|
|
.admin-wizard-controls {
|
|
.buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
button.btn {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn.save:enabled {
|
|
@extend .btn-primary;
|
|
}
|
|
|
|
.btn.destroy {
|
|
@extend .btn-danger;
|
|
}
|
|
|
|
h3 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.select-kit {
|
|
width: 150px;
|
|
}
|
|
|
|
.select-kit.multi-select {
|
|
width: 300px;
|
|
|
|
.choices .choice,
|
|
.select-kit-filter .filter-input {
|
|
height: 25px;
|
|
min-height: 25px;
|
|
}
|
|
}
|
|
|
|
input[type="text"] {
|
|
margin: 0;
|
|
}
|
|
|
|
table {
|
|
td {
|
|
vertical-align: top;
|
|
|
|
label {
|
|
margin: 0;
|
|
line-height: 30px;
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
td {
|
|
min-width: 170px;
|
|
width: 170px;
|
|
}
|
|
|
|
td.multi-select {
|
|
min-width: 300px;
|
|
}
|
|
|
|
td.input {
|
|
min-width: 210px;
|
|
width: 210px;
|
|
}
|
|
|
|
td.actions {
|
|
min-width: 100px;
|
|
text-align: right;
|
|
|
|
button.btn {
|
|
margin-left: 5px !important;
|
|
}
|
|
}
|
|
|
|
td.external {
|
|
font-style: italic;
|
|
}
|
|
}
|
|
}
|
|
|
|
.admin-wizard-container.settings .realtime-validations .setting-value > ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
> li {
|
|
border: 1px solid var(--primary);
|
|
padding: 1em;
|
|
margin: 0 0 1em 0;
|
|
|
|
.setting-title {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
h4 {
|
|
margin: 0 15px 0 0;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
margin: 0 5px 0 0;
|
|
}
|
|
}
|
|
|
|
.setting-label {
|
|
width: 100px;
|
|
}
|
|
|
|
.setting-value {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.input .select-kit,
|
|
> .select-kit {
|
|
max-width: unset !important;
|
|
}
|
|
|
|
> span {
|
|
margin-right: 1em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.validation-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1em 0;
|
|
|
|
.validation-section {
|
|
min-width: 250px;
|
|
margin: 0.5em 0;
|
|
}
|
|
}
|
|
|
|
.wizard.category-selector {
|
|
width: 200px !important;
|
|
}
|
|
|
|
.time-n-value {
|
|
width: 70px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.select-kit.time-unit-selector {
|
|
width: 80px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.subscription-label {
|
|
color: var(--tertiary);
|
|
font-size: 0.75em;
|
|
}
|
|
|
|
.admin-wizards-subscription {
|
|
.admin-wizard-controls {
|
|
h3,
|
|
label {
|
|
margin: 0;
|
|
}
|
|
|
|
label {
|
|
padding: 0.4em 0.5em;
|
|
margin-left: 0.75em;
|
|
background-color: var(--success);
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.loading-container {
|
|
margin-right: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.custom-wizard-subscription {
|
|
.title-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5em;
|
|
|
|
h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.buttons > span {
|
|
margin-right: 0.5em;
|
|
}
|
|
}
|
|
|
|
.detail-container {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 1em;
|
|
background-color: var(--primary-very-low);
|
|
|
|
.subscription-state {
|
|
padding: 0.25em 0.5em;
|
|
margin-right: 0.75em;
|
|
|
|
&.active {
|
|
background-color: var(--success);
|
|
color: var(--secondary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.wizard-subscription-selector.select-kit.single-select {
|
|
.select-kit-row .texts {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.subscription-label {
|
|
margin-left: 0.75em;
|
|
padding-top: 0.25em;
|
|
}
|
|
}
|
|
|
|
.btn.btn-pavilion-support {
|
|
background: var(--pavilion-primary);
|
|
color: var(--pavilion-secondary);
|
|
|
|
.d-icon {
|
|
color: var(--pavilion-secondary);
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
background: darken($pavilion_primary, 5%);
|
|
|
|
&[href],
|
|
svg.d-icon {
|
|
color: darken($pavilion_secondary, 10%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.subscription-container {
|
|
width: 100%;
|
|
padding: 1em;
|
|
background-color: rgba($pavilion_primary, 0.1);
|
|
|
|
.subscription-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 1em;
|
|
|
|
h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--pavilion-primary);
|
|
}
|
|
}
|
|
|
|
&:not(.subscribed) .subscription-settings {
|
|
filter: blur(1px);
|
|
}
|
|
}
|
|
|
|
.wizard-notice {
|
|
padding: 1em;
|
|
margin-bottom: 1em;
|
|
border: 1px solid var(--primary);
|
|
position: relative;
|
|
|
|
&.dismissed {
|
|
display: none;
|
|
}
|
|
|
|
&.resolved .notice-badge:not(.notice-expired-at),
|
|
&.resolved a,
|
|
&.resolved p {
|
|
color: var(--primary-medium) !important;
|
|
}
|
|
|
|
.d-icon {
|
|
margin-right: 0.4em;
|
|
}
|
|
|
|
.notice-header {
|
|
display: flex;
|
|
}
|
|
|
|
.notice-badge {
|
|
border: 1px solid var(--primary);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0 0.5em;
|
|
margin-right: 1em;
|
|
font-size: 0.9em;
|
|
line-height: 25px;
|
|
min-height: 25px;
|
|
box-sizing: border-box;
|
|
|
|
&:last-of-type {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
&.warning {
|
|
.notice-expired-at {
|
|
border: 1px solid var(--success);
|
|
background-color: rgba($success, 0.1);
|
|
color: var(--success);
|
|
}
|
|
|
|
.notice-title {
|
|
border: 1px solid var(--pavilion-warning);
|
|
background-color: rgba($pavilion_warning, 0.1);
|
|
color: var(--pavilion-warning);
|
|
}
|
|
}
|
|
|
|
.notice-issued,
|
|
.notice-resolved {
|
|
margin-right: 0.3em;
|
|
}
|
|
|
|
.notice-message {
|
|
p {
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
p:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.dismiss-notice,
|
|
.spinner {
|
|
position: absolute;
|
|
top: 1em;
|
|
right: 1em;
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
.disable-important {
|
|
position: absolute;
|
|
right: 3em;
|
|
top: 1em;
|
|
color: var(--primary-medium);
|
|
}
|
|
}
|