mirror of https://github.com/shadowfacts/type.git
more consistent fonts, enable enter to bypass line
This commit is contained in:
parent
8dba800bb9
commit
a2b597be5a
18
css/main.css
18
css/main.css
|
@ -45,13 +45,13 @@
|
|||
#content {
|
||||
font-family: "Ubuntu Mono" !important;
|
||||
margin-top: 50px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-left: 25%;
|
||||
width: 80%;
|
||||
border: none;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.CodeMirror-cursor {
|
||||
background-color: #ffc40d !important;
|
||||
border-color: #ffc40d !important;
|
||||
}
|
||||
|
||||
.CodeMirror-code, .CodeMirror {
|
||||
|
@ -60,7 +60,8 @@
|
|||
|
||||
.CodeMirror pre {
|
||||
font-family: "Ubuntu Mono" !important;
|
||||
font-size:10pt;
|
||||
font-size:14px;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
button {
|
||||
|
@ -73,7 +74,7 @@ button {
|
|||
cursor:pointer;
|
||||
color:#ffffff;
|
||||
font-family:Arial;
|
||||
font-size:17px;
|
||||
font-size:12px;
|
||||
padding:6px 16px;
|
||||
text-decoration:none;
|
||||
text-shadow:0px 1px 0px #283966;
|
||||
|
@ -99,13 +100,12 @@ button:active {
|
|||
}
|
||||
|
||||
.prev-list > li {
|
||||
display: inline-block;
|
||||
display: block;
|
||||
width: 48%;
|
||||
list-style: none;
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
border: #CCC 1px solid;
|
||||
border-radius: 3px;
|
||||
font-family: "Ubuntu Mono" !important;
|
||||
}
|
||||
|
||||
.prev-list > li > a,
|
||||
|
@ -115,5 +115,5 @@ button:active {
|
|||
}
|
||||
|
||||
body {
|
||||
font-family: "Open Sans";
|
||||
font-family: "Open Sans" !important;
|
||||
}
|
||||
|
|
|
@ -211,7 +211,7 @@ function handleEnter(event) {
|
|||
let pos = editor.getCursor();
|
||||
let currentLine = editor.doc.getLine(pos.line);
|
||||
let trimmed = currentLine.trim();
|
||||
if (editor.getCursor().ch >= currentLine.indexOf(trimmed) + trimmed.length) {
|
||||
// if (editor.getCursor().ch >= currentLine.indexOf(trimmed) + trimmed.length) {
|
||||
if (pos.line < editor.doc.size - 1) {
|
||||
var newLine = pos.line;
|
||||
while (true) {
|
||||
|
@ -235,7 +235,7 @@ function handleEnter(event) {
|
|||
} else {
|
||||
goToNextChunk();
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
function handleTab(event) {
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
|
||||
<h2>New File</h2>
|
||||
<form id="form">
|
||||
<input type="text" id="file" placeholder="path/to/file.js" required="true">
|
||||
<br>
|
||||
<input type="submit" value="Type">
|
||||
<input type="text" id="file" placeholder="path/to/file.java" required="true">
|
||||
<br /><br />
|
||||
<button type="submit">Type</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue