mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-26 20:22:42 +00:00
* Include two versions of Marked.js
* Include two versions of Marked.js
* Working two different render pipelines
Adds stylesheet "styleLegacy.less"
Adds markdownHandler "markdownLegacy.js"
The BrewRenderer will switch between these and the new pipeline dependent on the "version" prop passed in.
* Mustache-style div blocks
* Legacy snippets & columnbreak
* Codemirror styling for Div Blocks
* Lint
* Codemirror highlights for inline Divs as well
These will turn red `{{class Content}}`
Multi-line divs will turn purple
```
{{class,class2
content
}}
```
No real need for these to be different colors. Just for testing.
* More lint
* Update dependencies.
* Adding Button to switch render pipelines
* Update Marked.js
* Popup alert to refresh page when renderer changed
* Don't compress files in Development (very slow)
* Block DIV or inline Span depending on {{ placement
* \column emits a Div instead of Span
* Allow share page to use new renderer
* {{ divs no longer need empty lines. Spans work in lists.
* Typo
* Typo
* Enforce \page must be at start of line. Code cleanup.
* Inject newlines after/before {{/}} to avoid needing blank lines
* Fixes issues with tables.
* Remove console.log
* Fix spacing issue for Spans
* Move things from Brewrenderer to Markdown
Try to keep all custom text fiddling in one spot.
* Rename variables
* Update Font-Awesome to v5.15. Fix style issues on popups.
* Update {{ Divs/Spans, Fix nested hilighting
* Fixed Spans/divs with no tags or just commas
* Use blacklist for {{ to allow more characters
* Update package-lock.json
* Update all icons to Font-awesome 5
* V3 hidden behind config variable
Add "globalThis.enable_v3 = true" in the console to enable.
* lint
97 lines
2.1 KiB
Plaintext
97 lines
2.1 KiB
Plaintext
@keyframes glideDown {
|
|
0% {transform : translate(-50% + 3px, 0px);
|
|
opacity : 0;}
|
|
100% {transform : translate(-50% + 3px, 10px);
|
|
opacity : 1;}
|
|
}
|
|
.editPage{
|
|
.navItem.save{
|
|
width : 106px;
|
|
text-align : center;
|
|
position : relative;
|
|
&.saved{
|
|
cursor : initial;
|
|
color : #666;
|
|
}
|
|
&.error{
|
|
position : relative;
|
|
background-color : @red;
|
|
}
|
|
}
|
|
.googleDriveStorage {
|
|
position : relative;
|
|
}
|
|
.googleDriveStorage img{
|
|
height : 20px;
|
|
padding : 0px;
|
|
margin : -5px;
|
|
}
|
|
.errorContainer{
|
|
animation-name: glideDown;
|
|
animation-duration: 0.4s;
|
|
position : absolute;
|
|
top : 100%;
|
|
left : 50%;
|
|
z-index : 100000;
|
|
width : 140px;
|
|
padding : 3px;
|
|
color : white;
|
|
background-color : #333;
|
|
border : 3px solid #444;
|
|
border-radius : 5px;
|
|
transform : translate(-50% + 3px, 10px);
|
|
text-align : center;
|
|
a{
|
|
color : @teal;
|
|
}
|
|
&:before {
|
|
content: "";
|
|
width: 0px;
|
|
height: 0px;
|
|
position: absolute;
|
|
border-left: 10px solid transparent;
|
|
border-right: 10px solid transparent;
|
|
border-top: 10px solid transparent;
|
|
border-bottom: 10px solid #444;
|
|
left: 53px;
|
|
top: -23px;
|
|
}
|
|
&:after {
|
|
content: "";
|
|
width: 0px;
|
|
height: 0px;
|
|
position: absolute;
|
|
border-left: 10px solid transparent;
|
|
border-right: 10px solid transparent;
|
|
border-top: 10px solid transparent;
|
|
border-bottom: 10px solid #333;
|
|
left: 53px;
|
|
top: -19px;
|
|
}
|
|
.deny {
|
|
width : 48%;
|
|
margin : 1px;
|
|
padding : 5px;
|
|
background-color : #333;
|
|
display : inline-block;
|
|
border-left : 1px solid #666;
|
|
.animate(background-color);
|
|
&:hover{
|
|
background-color : red;
|
|
}
|
|
}
|
|
.confirm {
|
|
width : 48%;
|
|
margin : 1px;
|
|
padding : 5px;
|
|
background-color : #333;
|
|
display : inline-block;
|
|
color : white;
|
|
.animate(background-color);
|
|
&:hover{
|
|
background-color : teal;
|
|
}
|
|
}
|
|
}
|
|
}
|