Skip to content

Commit

Permalink
chore: Use ES6 template strings in CSS and code generators (#5902)
Browse files Browse the repository at this point in the history
* Unindent CSS, save 3 kb of code.
* Convert generator functions to template strings. 
This resolves #5761.
  • Loading branch information
NeilFraser authored Jan 29, 2022
1 parent a31003f commit 1f6a1bd
Show file tree
Hide file tree
Showing 39 changed files with 2,236 additions and 2,104 deletions.
20 changes: 10 additions & 10 deletions core/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,16 @@ Comment.prototype.dispose = function() {
* CSS for block comment. See css.js for use.
*/
Css.register(`
.blocklyCommentTextarea {
background-color: #fef49c;
border: 0;
display: block;
margin: 0;
outline: 0;
padding: 3px;
resize: none;
text-overflow: hidden;
}
.blocklyCommentTextarea {
background-color: #fef49c;
border: 0;
display: block;
margin: 0;
outline: 0;
padding: 3px;
resize: none;
text-overflow: hidden;
}
`);

exports.Comment = Comment;
Loading

0 comments on commit 1f6a1bd

Please sign in to comment.