insomnia/app/ui/css/editor/one-line-editor.less
Gregory Schier 2cdd4761c8 Remaining V5 Features (#122)
* Add digest auth and response timeline

* Some css fixes

* Fixed Button

* More auth methods, fixed URL regex, and fix gzip

* Get rid of negotiate auth

* Fix proxy

* Fixed GA tracking

* Some very small changes and fixes

* Fix content type names

* Even better auth switching and timeline syntax

* Some auth tweaks

* CSS tweaks

* Reworked toasts

* Fixed timer rounding quirk

* Request settings and render errors

* Fixed tests

* Vertical dragging and stuff

* Remove beta
2017-03-28 15:45:23 -07:00

48 lines
1.2 KiB
Plaintext

@import '../constants/colors';
@import '../constants/animations';
@import '../constants/dimensions';
@import '../constants/fonts';
.editor.editor--single-line {
&, * {
font-family: @font-default;
}
.CodeMirror > div > textarea {
/*
* This is the hidden div CodeMirror uses for stuff. By, default it's
* a 1000px absolutely positioned thing for doing work inside of. However, this
* means that the drag-n-drop shadow image is wider than it should be. So, we're
* constraining it here, which may break CM in weird ways, but doesn't seem to
* at first glance.
*/
max-width: 5em !important;
}
.CodeMirror {
/*
* NOTE: This screws up CodeMirror's scroll height calculations, but that's okay
* for now since we can only have one line here
*/
padding: inherit !important;
color: inherit !important;
margin: 0 0 0 -4px; // to undo CodeMirror's .CodeMirror-line offset
}
.CodeMirror-lines {
padding: 0;
}
.CodeMirror-scroll {
display: flex;
flex-direction: row;
align-items: center;
}
.nunjucks-tag {
font-size: 0.8em !important;
padding-top: 0.3em;
padding-bottom: 0.3em;
}
}