1
0
Fork 0
discourse-custom-wizard-unl.../assets/stylesheets/admin/admin.scss

982 Zeilen
15 KiB
SCSS

2021-09-24 11:58:42 +02:00
@import "wizard/mapper";
@import "wizard/manager";
@import "wizard/api";
@import "common/components/buttons";
2021-09-24 11:58:42 +02:00
@import "wizard/variables";
2020-04-01 07:03:26 +02:00
2020-04-13 14:17:22 +02:00
.admin-wizard-controls {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
& + .wizard-message + div {
2020-04-20 13:40:32 +02:00
margin-top: 20px;
}
2020-04-12 01:27:16 +02:00
}
2020-04-20 13:40:32 +02:00
.wizard-message {
background-color: var(--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;
align-items: flex-start;
2020-04-20 13:40:32 +02:00
.message-block {
2020-04-14 01:39:21 +02:00
.d-icon {
margin-right: 4px;
}
.d-icon-check-circle {
color: var(--success);
}
.d-icon-times-circle {
color: var(--danger);
}
2020-04-15 04:47:14 +02:00
a + a {
border-left: 1px solid var(--primary-medium);
2020-04-15 04:47:14 +02:00
padding-left: 5px;
margin-left: 5px;
2020-04-15 04:34:39 +02:00
}
.message {
white-space: nowrap;
}
.list-colon {
margin-right: 5px;
}
ul {
list-style: none;
margin: 0;
span.action {
margin-left: 5px;
}
}
2020-04-14 01:39:21 +02:00
}
2020-04-20 13:40:32 +02:00
& + div {
margin-top: 30px;
}
2020-04-15 02:46:44 +02:00
}
.wizard-table {
2020-04-15 02:46:44 +02:00
overflow: scroll;
table td:not(.small) {
2020-04-15 07:41:27 +02:00
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;
}
2020-03-29 09:49:33 +02:00
}
.wizard-settings-parent {
2021-09-24 11:58:42 +02:00
padding: 1em;
border: 1px solid var(--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,
2021-09-24 11:58:42 +02:00
.subscription-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;
background-color: var(--primary-very-low);
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;
2020-04-20 11:41:13 +02:00
&.visible {
display: flex;
}
2020-04-20 11:41:13 +02:00
.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;
2020-04-01 07:03:26 +02:00
.setting {
width: auto;
margin-right: 20px;
2020-04-01 07:03:26 +02:00
.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;
}
button {
font-size: 1rem;
}
2020-04-12 01:27:16 +02:00
.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%;
2020-04-13 14:17:22 +02:00
a {
padding: 6px 12px;
font-size: 1rem;
background-color: var(--primary-low);
2020-04-13 14:17:22 +02:00
}
}
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;
}
.controls {
margin-left: auto;
margin-right: 0.5rem;
}
2017-10-06 04:59:02 +02:00
}
2020-04-01 07:03:26 +02:00
.admin-wizard-buttons {
margin-top: 20px;
2021-02-19 07:18:30 +01:00
display: flex;
2021-02-19 07:18:30 +01:00
.btn {
margin-right: 1em;
}
2020-04-01 07:03:26 +02:00
}
2020-04-13 14:17:22 +02:00
.admin-wizard-container.settings {
[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;
2020-04-02 07:21:57 +02:00
&: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;
}
2021-09-03 10:46:32 +02:00
> span {
2017-10-22 05:37:58 +02:00
font-size: 0.929em;
}
2017-11-01 05:21:14 +01:00
button {
display: block;
}
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;
&.medium {
width: 40%;
}
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: var(--primary-low);
2020-03-29 09:49:33 +02:00
cursor: not-allowed;
2017-11-02 03:22:13 +01: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
}
2020-03-30 01:53:28 +02:00
.image-upload-controls {
label {
font-size: 1em;
margin: 0 5px 0 0;
}
}
2020-03-30 01:53:28 +02:00
> textarea {
min-height: 100px;
resize: vertical;
}
2020-03-30 01:53:28 +02:00
input[type="checkbox"] {
float: left;
margin: 5px 7px 0 0;
}
.input .select-kit,
> .select-kit {
2020-04-13 14:17:22 +02:00
max-width: 250px !important;
min-width: 250px !important;
}
&.force-final {
padding: 1em;
background-color: var(--primary-very-low);
label,
span {
font-size: 1em;
}
}
2017-10-06 04:59:02 +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-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
}
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);
2020-04-15 06:48:42 +02:00
.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;
}
2021-08-10 11:00:42 +02:00
2021-09-24 11:58:42 +02:00
&.subscription {
2021-08-10 11:00:42 +02:00
.setting-label {
display: flex;
flex-direction: column;
label {
margin: 0;
}
}
}
2017-10-13 15:02:34 +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: var(--danger);
2017-10-13 15:02:34 +02:00
.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
}
2020-03-29 09:49:33 +02:00
.d-editor-container {
display: block;
}
2020-03-29 09:49:33 +02:00
.d-editor-textarea-wrapper {
display: grid;
margin-bottom: 10px;
2020-03-29 09:49:33 +02:00
textarea {
resize: vertical;
}
}
2020-03-29 09:49:33 +02:00
.d-editor-preview-wrapper {
display: none;
margin: 0 0 10px 0;
padding: 10px;
background-color: var(--secondary);
border: 1px solid var(--primary-medium);
2020-03-29 09:49:33 +02:00
max-width: 100%;
2020-03-29 09:49:33 +02:00
&.force-preview {
display: block;
}
}
button {
margin: 0;
}
}
2020-03-29 09:49:33 +02:00
.wizard-editor-gutter {
position: relative;
display: flex;
2020-03-29 09:49:33 +02:00
.btn {
margin-right: 10px;
color: var(--primary);
&:hover {
color: var(--secondary);
}
2020-03-29 09:49:33 +02:00
}
2020-03-29 09:49:33 +02:00
.wizard-editor-gutter-popover {
position: absolute;
padding: 10px;
background-color: var(--secondary);
box-shadow: shadow("card");
2020-03-29 09:49:33 +02:00
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
}
2021-02-19 07:18:30 +01:00
.btn {
height: 32px;
}
2017-10-17 09:18:53 +02:00
}
.sortable-placeholder {
height: 30px;
width: 100px;
display: inline-block;
vertical-align: top;
background-color: var(--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;
2020-03-29 09:49:33 +02:00
.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
.modal .modal-body.next-session-time-modal {
overflow: visible;
.picker-container {
position: absolute;
top: 30px;
2017-11-01 05:21:14 +01:00
}
}
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: var(--tertiary);
2018-05-24 07:34:58 +02:00
}
> 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: var(--secondary);
border: 1px solid var(--primary-medium);
2020-04-02 07:21:57 +02:00
}
2020-10-20 07:40:23 +02:00
.admin-wizards-custom-fields {
2020-11-10 01:56:11 +01:00
.admin-wizard-controls {
.buttons {
display: flex;
align-items: center;
2020-11-10 01:56:11 +01:00
button.btn {
margin-left: 10px;
}
}
2020-11-10 01:56:11 +01:00
}
2020-11-10 01:56:11 +01:00
.btn.save:enabled {
@extend .btn-primary;
}
2020-11-10 01:56:11 +01:00
.btn.destroy {
@extend .btn-danger;
}
h3 {
margin-bottom: 0;
}
2020-10-20 07:40:23 +02:00
.select-kit {
2020-11-10 01:56:11 +01:00
width: 150px;
2020-10-20 07:40:23 +02:00
}
2020-10-20 07:40:23 +02:00
.select-kit.multi-select {
2020-11-10 01:56:11 +01:00
width: 300px;
.choices .choice,
.select-kit-filter .filter-input {
height: 25px;
min-height: 25px;
}
2020-10-20 07:40:23 +02:00
}
2020-10-20 07:40:23 +02:00
input[type="text"] {
margin: 0;
}
2020-11-10 01:56:11 +01:00
table {
td {
vertical-align: top;
2020-11-10 01:56:11 +01:00
label {
margin: 0;
line-height: 30px;
display: inline-block;
margin-right: 10px;
}
}
2020-11-10 01:56:11 +01:00
td {
min-width: 170px;
width: 170px;
}
2020-11-10 01:56:11 +01:00
td.multi-select {
min-width: 300px;
}
2020-11-10 01:56:11 +01:00
td.input {
min-width: 210px;
width: 210px;
}
2020-11-10 01:56:11 +01:00
td.actions {
min-width: 100px;
text-align: right;
2020-11-10 01:56:11 +01:00
button.btn {
margin-left: 5px !important;
}
2020-11-09 11:44:32 +01:00
}
td.external {
font-style: italic;
}
}
2021-02-11 14:52:09 +01:00
}
2021-09-01 04:19:00 +02:00
.admin-wizard-container.settings .realtime-validations .setting-value > ul {
list-style: none;
margin: 0;
2021-09-01 04:19:00 +02:00
width: 100%;
display: flex;
flex-wrap: wrap;
2021-02-15 12:51:59 +01:00
> li {
2021-09-24 11:58:42 +02:00
border: 1px solid var(--primary);
padding: 1em;
2021-02-15 12:51:59 +01:00
margin: 0 0 1em 0;
2021-09-07 14:13:01 +02:00
2021-09-01 04:19:00 +02:00
.setting-title {
display: flex;
align-items: center;
2021-09-01 04:19:00 +02:00
h4 {
margin: 0 15px 0 0;
}
input[type="checkbox"] {
margin: 0 5px 0 0;
2021-09-07 14:13:01 +02:00
}
2021-09-01 04:19:00 +02:00
}
.setting-label {
width: 100px;
}
.setting-value {
display: flex;
align-items: center;
.input .select-kit,
> .select-kit {
max-width: unset !important;
}
> span {
margin-right: 1em;
2021-09-07 14:13:01 +02:00
}
}
2021-02-15 12:51:59 +01:00
}
}
2021-02-11 14:52:09 +01:00
.validation-container {
display: flex;
2021-09-01 04:19:00 +02:00
flex-direction: column;
padding: 1em 0;
2021-02-11 14:52:09 +01:00
.validation-section {
2021-09-01 04:19:00 +02:00
min-width: 250px;
2021-09-07 14:13:01 +02:00
margin: 0.5em 0;
2021-02-11 14:52:09 +01:00
}
}
.wizard.category-selector {
width: 200px !important;
}
.time-n-value {
width: 70px;
vertical-align: middle;
}
.select-kit.time-unit-selector {
width: 80px;
vertical-align: middle;
}
2021-09-24 11:58:42 +02:00
.subscription-label {
2021-09-03 10:46:32 +02:00
color: var(--tertiary);
2021-09-07 14:13:01 +02:00
font-size: 0.75em;
2021-09-03 10:46:32 +02:00
}
2021-09-24 11:58:42 +02:00
.admin-wizards-subscription {
.admin-wizard-controls {
2021-09-07 14:13:01 +02:00
h3,
label {
margin: 0;
}
label {
2021-09-07 14:13:01 +02:00
padding: 0.4em 0.5em;
margin-left: 0.75em;
2021-09-03 10:46:32 +02:00
background-color: var(--success);
color: var(--secondary);
}
.buttons {
display: flex;
align-items: center;
.loading-container {
margin-right: 1em;
}
}
}
2021-09-24 11:58:42 +02:00
.custom-wizard-subscription {
.title-container {
display: flex;
justify-content: space-between;
align-items: center;
2021-09-07 14:13:01 +02:00
margin-bottom: 0.5em;
h3 {
margin: 0;
}
.buttons > span {
2021-09-07 14:13:01 +02:00
margin-right: 0.5em;
}
}
.detail-container {
display: flex;
align-items: center;
padding: 1em;
2021-09-03 10:46:32 +02:00
background-color: var(--primary-very-low);
.subscription-state {
2021-09-07 14:13:01 +02:00
padding: 0.25em 0.5em;
margin-right: 0.75em;
&.active {
2021-09-03 10:46:32 +02:00
background-color: var(--success);
color: var(--secondary);
}
}
}
}
}
2021-09-03 10:46:32 +02:00
2021-09-24 11:58:42 +02:00
.wizard-subscription-selector.select-kit.single-select {
2021-09-03 10:46:32 +02:00
.select-kit-row .texts {
display: flex;
align-items: center;
}
2021-09-24 11:58:42 +02:00
.subscription-label {
2021-09-07 14:13:01 +02:00
margin-left: 0.75em;
padding-top: 0.25em;
2021-09-03 10:46:32 +02:00
}
}
2021-09-24 11:58:42 +02:00
.btn.btn-pavilion-support {
background: var(--pavilion-primary);
color: var(--pavilion-secondary);
.d-icon {
color: var(--pavilion-secondary);
}
&:hover,
&:focus {
2021-09-24 11:58:42 +02:00
background: darken($pavilion_primary, 5%);
&[href],
svg.d-icon {
2021-09-24 11:58:42 +02:00
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);
}
}
2021-09-24 11:58:42 +02:00
&:not(.subscribed) .subscription-settings {
filter: blur(1px);
}
}
.wizard-notice {
padding: 1em;
margin-bottom: 1em;
border: 1px solid var(--primary);
border-radius: 4px;
position: relative;
&.dismissed {
display: none;
}
.d-icon {
margin-right: .4em;
}
.notice-header {
display: flex;
}
.notice-badge {
border: 1px solid var(--primary);
display: inline-flex;
align-items: center;
padding: 0 .5em;
border-radius: 4px;
margin-right: 1em;
font-size: .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 {
margin-right: .3em;
}
.notice-message {
p {
margin: .5em 0;
}
p:last-of-type {
margin-bottom: 0;
}
}
.dismiss-notice,
.spinner {
position: absolute;
top: 1em;
right: 1em;
color: var(--primary);
}
}