insomnia/app/ui/css/components/keyvalueeditor.less

90 lines
1.7 KiB
Plaintext
Raw Normal View History

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
.key-value-editor__label {
padding: 0 @padding-md;
opacity: 0.5;
font-size: @font-size-sm;
}
2016-05-01 19:56:30 +00:00
.key-value-editor__row {
position: relative;
display: flex;
flex-direction: row;
align-items: stretch;
2016-07-20 23:16:28 +00:00
.input {
background-color: transparent;
height: @line-height-sm;
box-sizing: border-box;
margin: @padding-xs 0 0;
}
.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%;
}
& > * {
padding: 0 @padding-sm;
2016-05-01 19:56:30 +00:00
&:first-child {
padding-left: @padding-md;
}
2016-07-20 23:16:28 +00:00
&:last-child {
padding-right: @padding-md;
2016-05-01 19:56:30 +00:00
}
}
2016-05-01 19:56:30 +00:00
& > button,
.dropdown > button {
color: @hl;
2016-05-01 19:56:30 +00:00
&:hover,
&:focus {
background: transparent;
}
2016-05-01 19:56:30 +00:00
&:hover,
&:focus {
2016-11-22 19:44:08 +00:00
color: inherit;
2016-05-01 19:56:30 +00:00
}
}
}
}