0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-24 02:10:29 +01:00
discourse-custom-wizard/assets/stylesheets/common/admin/mapper.scss

223 Zeilen
3,4 KiB
SCSS

2020-04-01 07:03:26 +02:00
.wizard-mapper {
width: 100%;
2020-04-01 07:03:26 +02:00
.select-kit {
min-width: initial;
width: initial;
2020-04-01 07:03:26 +02:00
.select-kit-header {
min-height: 30px;
}
2020-04-01 07:03:26 +02:00
.choices .choice {
height: 24px;
}
}
2020-04-01 07:03:26 +02:00
div.mapper-block:not(:last-of-type) {
margin-right: 10px;
}
2020-04-06 10:36:38 +02:00
> .mapper-connector.single {
width: min-content;
2020-04-07 10:33:51 +02:00
margin-bottom: 10px;
2020-04-07 09:54:30 +02:00
height: 20px;
border: 2px solid var(--primary-low);
2020-04-06 10:36:38 +02:00
}
2020-04-01 07:03:26 +02:00
}
[class~="mapper-input"] {
2020-04-01 07:03:26 +02:00
display: flex;
align-items: flex-start;
width: min-content;
position: relative;
2020-04-05 03:37:09 +02:00
padding: 25px 7px 7px 7px;
margin-bottom: 10px;
background: rgba(var(--secondary-rgb), 0.5);
border: 2px solid var(--primary-low);
2020-04-01 07:03:26 +02:00
.d-icon {
text-align: center;
}
input {
margin: 0;
}
input[disabled] {
background-color: var(--primary-low);
2020-04-01 07:03:26 +02:00
border-color: #ddd;
}
2020-04-05 03:37:09 +02:00
.output {
position: relative;
}
2020-04-01 07:03:26 +02:00
a.remove-input {
position: absolute;
2020-04-07 12:28:39 +02:00
right: -13px;
2020-04-07 06:56:16 +02:00
top: 0px;
2020-04-07 12:28:39 +02:00
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
2020-04-05 03:37:09 +02:00
transform: translateY(-50%);
background: var(--secondary);
2020-04-07 06:56:16 +02:00
border-radius: 50%;
font-size: 0.8em;
border: 2px solid var(--primary-low);
2020-04-01 07:03:26 +02:00
}
&.association,
&.validation {
2020-04-07 10:33:51 +02:00
padding-right: 27px;
}
2020-04-01 07:03:26 +02:00
}
.add-mapper-input {
2020-04-07 09:54:30 +02:00
display: inline-block;
2020-04-01 07:03:26 +02:00
}
.mapper-connector {
width: auto;
min-width: 40px;
2020-04-01 07:03:26 +02:00
.select-kit .select-kit-header {
display: flex;
justify-content: center;
2020-04-02 07:21:57 +02:00
}
2020-04-02 07:21:57 +02:00
&.single {
height: 28px;
background: var(--secondary);
border: 1px solid var(--primary-medium);
2020-04-02 07:21:57 +02:00
display: flex;
align-items: center;
justify-content: center;
2020-04-01 07:03:26 +02:00
}
2020-04-07 09:54:30 +02:00
.connector-single {
padding: 0 5px;
}
2020-04-01 07:03:26 +02:00
}
.mapper-selector {
width: 100%;
2020-04-13 14:17:22 +02:00
max-width: 250px;
min-width: 250px;
2020-04-11 08:22:12 +02:00
position: relative;
> input,
.select-kit,
.ac-wrap,
.autocomplete.ac-user {
2020-04-13 14:17:22 +02:00
width: 250px !important;
}
2020-04-11 08:22:12 +02:00
.input {
width: 100%;
transition: all 0.1s;
2020-04-01 07:03:26 +02:00
}
2020-04-01 07:03:26 +02:00
.type-selector {
position: absolute;
top: -22px;
2020-04-07 13:06:35 +02:00
width: 150px;
2020-04-01 07:03:26 +02:00
}
.type-selector a {
color: var(--primary);
2020-04-01 07:03:26 +02:00
margin-right: 4px;
2020-04-06 03:54:16 +02:00
display: flex;
align-items: center;
2020-04-01 07:03:26 +02:00
&.active {
color: var(--tertiary);
2020-04-01 07:03:26 +02:00
text-decoration: underline;
}
2020-04-01 07:03:26 +02:00
&:last-of-type {
margin-right: 0;
}
2020-04-06 03:54:16 +02:00
.type-selector-icon {
margin-left: 2px;
font-size: 0.7em;
}
}
2020-04-06 03:54:16 +02:00
.selector-types {
box-shadow: shadow("dropdown");
2020-04-06 03:54:16 +02:00
position: absolute;
2020-04-13 14:17:22 +02:00
display: flex;
background: var(--secondary);
2020-04-06 03:54:16 +02:00
z-index: 200;
padding: 5px 7px;
flex-direction: column;
border: 1px solid var(--primary-low);
2020-04-01 07:03:26 +02:00
}
2020-04-05 03:37:09 +02:00
.value-list .remove-value-btn {
background: none;
border: none;
2020-04-05 03:37:09 +02:00
.d-icon {
color: var(--primary);
2020-04-05 03:37:09 +02:00
}
}
2020-04-07 13:53:00 +02:00
.select-kit-header .selected-name {
max-width: 85%;
2020-04-07 13:53:00 +02:00
.name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
2020-04-01 07:03:26 +02:00
}
.mapper-pairs {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
2020-04-07 10:33:51 +02:00
.add-pair,
.remove-pair,
.join-pair {
font-size: 0.9em;
}
2020-04-01 07:03:26 +02:00
.add-pair {
margin-top: 5px;
}
2020-04-01 07:03:26 +02:00
.remove-pair {
position: absolute;
top: 5px;
2020-04-07 10:33:51 +02:00
right: -20px;
2020-04-01 07:03:26 +02:00
}
2020-04-01 07:03:26 +02:00
.join-pair {
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
}
2020-04-06 10:36:38 +02:00
.mapper-connector {
min-width: 50px;
}
2020-04-01 07:03:26 +02:00
}
.mapper-pair {
display: flex;
2020-04-01 07:31:09 +02:00
align-items: flex-start;
2020-04-01 07:03:26 +02:00
position: relative;
2020-04-01 07:03:26 +02:00
&:not(:first-of-type) {
margin-top: 30px;
}
}