David Contreras 4475dacc5a
Fixed issue with long lines in Code Editor Example (#3130)
* broadcasting

* Simplified broadcasting

* Updated for broadcasting

* Changed to camel case

* Camel case and auto formating

* Added comments

* Skip if matrices have the same size

* Fixed issue with undefined variable

missing dot  in `A._size`

* Implemented broadcasting in all functions

* Added helper functions

* Added function to check for broadcasting rules

* Tests for broadcasted arithmetic

* Fixed issue with matrix the size of a vector

* Documented and updated broadcasting

* Included broadcast.test

* Included math to syntax when missing

* Add code editor example

* Vite mini project

* Initial example

* added alpine debounce

* Fixed display

* Added parser.clear

* Added mathjs-language

* Made module to get expressions

* Added custom events

* Issue with help formatting

* Simplified help format

* Restored package.json

* removed unneded icons

* Added readme file

* Fixed versions

* Commented getExpressions

* Documented main.js

* Fixed title

* Fixed alpine version

* Removed AlpineJS

* Added documentation and renamed variables for clarity

* Fixed naming errors

* Fixed issue with long lines

* Edge case where multiple expressions are on the same line not ending in ";"

---------

Co-authored-by: David Contreras <david.contreras@guentner.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-01-19 09:27:41 +01:00

60 lines
772 B
CSS

html,
body {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
}
body {
display: flex;
flex-direction: column;
}
#app {
display: flex;
overflow: hidden;
flex: 1;
flex-direction: row;
}
#editor {
flex: 1;
height: auto;
display: flex;
overflow: auto;
}
#editor>.cm-editor {
flex: 1;
overflow: scroll;
}
#app>article {
flex: 1;
overflow: auto;
box-sizing: border-box;
}
article.markdown-body .results {
padding: 0.5em;
margin: 0.5em;
}
article.markdown-body > .highlighted {
background-color: rgba(0, 150, 255, 0.2);
}
article.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 1em;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}