editor: help btn/label style

This commit is contained in:
jean-emmanuel 2018-08-30 16:25:22 +02:00
parent b7e3e6f21f
commit 47e42ee24b
2 changed files with 10 additions and 18 deletions

View file

@ -12,7 +12,7 @@ module.exports = function editField(editor, widget, propName, defaultValue){
let field = DOM.create(`
<div class="input-wrapper ${widget.errors[propName] ? 'error' : ''} ${disabled ? 'disabled' : ''}">
<label class="${error ? 'error' : ''}">${propName}</label>
<label class="btn ${error ? 'error' : ''}">${propName}</label>
</div>
`)

View file

@ -19,17 +19,6 @@
}
}
}
.btn + span {
position: absolute;
right:0rem;
top:0rem;
padding:8rem;
opacity: 0.6;
cursor: pointer;
&:hover {
opacity: 1;
}
}
.form {
margin-top: 10rem;
@ -60,14 +49,17 @@
}
}
label {
background: var(--color-fg);
flex-shrink: 0;
padding: 6rem 7rem 4rem;
// border:1rem solid var(--color-bg);
// border-bottom: 1rem solid var(--color-bg);
min-width: 29%;
box-shadow: 1rem 0 0 0 var(--color-bg) inset;
margin-top: 1rem;
margin: 1rem;
margin-bottom: 0;
&:not(.btn) {
background: var(--color-fg);
box-shadow: 1rem 0 0 0 var(--color-bg) inset;
margin: 0;
margin-top: 1rem;
}
&.dynamic:after {
content:"\f0e7";
font-family: FontAwesome;
@ -471,7 +463,7 @@
}
code {
color: var(--color-accent);
padding: 2rem 3rem;
padding: 1rem 3rem;
background: rgba(black, 0.2);
display: inline-block;
user-select: auto;