Skip to content

Commit

Permalink
Style CodeMirror
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 6, 2021
1 parent 005147d commit 3af77d8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
1 change: 0 additions & 1 deletion core/src/main/resources/lib/form/textarea/textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Behaviour.specify("TEXTAREA.codemirror", 'textarea', 0, function(e) {
};
}
var scroller = codemirror.getScrollerElement();
scroller.setAttribute("style","border:1px solid black;");
scroller.style.height = h+"px";

// the form needs to be populated before the "Apply" button
Expand Down
9 changes: 0 additions & 9 deletions war/src/main/js/widgets/config/tabbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,6 @@
span.highlight {
background-color: #ffff00;
}

// CodeMirror
.CodeMirror {
background: var(--brightest-bg-color);
}

.CodeMirror-scroll {
border: 1px solid var(--input-border) !important;
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion war/src/main/less/base/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,6 @@ table.fingerprint-in-build td {
padding-left: 32px;
transition: var(--standard-transition);
margin-top: 0.66rem;
overflow: hidden;

&::after {
content: "";
Expand Down
28 changes: 28 additions & 0 deletions war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -639,3 +639,31 @@
.jenkins-\!-margin-bottom-0 {
margin-bottom: 0 !important;
}

.CodeMirror {
display: block;
background: var(--input-color);
border: 2px solid var(--input-border);
border-radius: var(--form-input-border-radius);
width: 100%;
box-shadow: var(--form-input-glow);
transition: var(--standard-transition);
cursor: text;

&:hover {
border-color: var(--input-border-hover);
}

&:active,
&:focus-within {
outline: none;
border-color: var(--focus-input-border);
box-shadow: var(--form-input-glow--focus);
}

textarea {
background: transparent;
border: none;
outline: none;
}
}
1 change: 0 additions & 1 deletion war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,6 @@ function rowvgStartEachRow(recursive,f) {
}
}
}).getWrapperElement();
w.setAttribute("style","border:1px solid black; margin-top: 1em; margin-bottom: 1em")
})();
});

Expand Down

0 comments on commit 3af77d8

Please sign in to comment.