2016-05-01 19:56:30 +00:00
|
|
|
@import '../constants/dimensions';
|
|
|
|
@import '../constants/colors';
|
|
|
|
|
|
|
|
.key-value-editor {
|
2016-08-29 17:58:59 +00:00
|
|
|
padding: @padding-md 0;
|
2016-05-01 20:46:11 +00:00
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
.key-value-editor__label {
|
|
|
|
padding: 0 @padding-md;
|
|
|
|
opacity: 0.5;
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
.key-value-editor__row {
|
2017-02-28 06:26:24 +00:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: stretch;
|
2016-07-20 23:16:28 +00:00
|
|
|
|
2017-02-27 21:00:13 +00:00
|
|
|
.input {
|
|
|
|
background-color: transparent;
|
2016-11-29 20:55:31 +00:00
|
|
|
height: @line-height-sm;
|
2017-02-27 21:00:13 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
margin: @padding-xs 0 0;
|
2016-11-29 20:55:31 +00:00
|
|
|
}
|
|
|
|
|
2017-02-28 06:26:24 +00:00
|
|
|
.key-value-editor__row__drag {
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
color: var(--hl-lg) !important;
|
|
|
|
&:hover {
|
|
|
|
color: var(--hl-lg) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.key-value-editor__row--disabled .input,
|
|
|
|
&.key-value-editor__row--disabled button {
|
|
|
|
text-decoration: line-through;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.key-value-editor__row--dragging {
|
|
|
|
// Set opacity on children so we can still see the separator
|
|
|
|
& > * {
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.key-value-editor__row--dragging-below::after,
|
|
|
|
&.key-value-editor__row--dragging-above::before {
|
|
|
|
position: absolute;
|
|
|
|
height: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
border-bottom: 2px dotted var(--color-surprise);
|
|
|
|
content: " ";
|
|
|
|
display: block
|
|
|
|
}
|
|
|
|
|
|
|
|
&.key-value-editor__row--dragging-below::after {
|
|
|
|
top: 100%;
|
|
|
|
}
|
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
& > * {
|
|
|
|
padding: 0 @padding-sm;
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
&:first-child {
|
|
|
|
padding-left: @padding-md;
|
|
|
|
}
|
2016-07-20 23:16:28 +00:00
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
&:last-child {
|
|
|
|
padding-right: @padding-md;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
2016-11-22 19:42:10 +00:00
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2016-11-23 19:33:24 +00:00
|
|
|
& > button,
|
|
|
|
.dropdown > button {
|
2016-11-22 19:42:10 +00:00
|
|
|
color: @hl;
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2016-11-22 19:42:10 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2016-05-01 19:56:30 +00:00
|
|
|
|
2016-11-23 19:33:24 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2016-11-22 19:44:08 +00:00
|
|
|
color: inherit;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|