From 0db37bc2046ab07f5d2aaf7943b9199b108f53f7 Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Tue, 17 Aug 2021 19:47:23 -0500 Subject: [PATCH 1/3] Update editor.less for .pageLine Change the .pageLine (page break) border from bottom to top, since any text on the same line is part of the following page rather than the preceding page. --- client/homebrew/editor/editor.less | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/client/homebrew/editor/editor.less b/client/homebrew/editor/editor.less index cd190ea88..2f0afb25f 100644 --- a/client/homebrew/editor/editor.less +++ b/client/homebrew/editor/editor.less @@ -4,41 +4,41 @@ width : 100%; .codeEditor{ - height : 100%; + height : 100%; .pageLine{ - background-color : fade(#333, 15%); - border-bottom : #333 solid 1px; + background : linear-gradient(to bottom, #DDD 0%, #EEE 100%); + border-top : #AAA solid 1px; } .columnSplit{ - font-style : italic; - color : grey; - background-color : fade(#299, 15%); - border-bottom : #299 solid 1px; + font-style : italic; + color : grey; + background-color : fade(#299, 15%); + border-bottom : #299 solid 1px; } .block{ - color : purple; + color : purple; font-weight : bold; //font-style: italic; } .inline-block{ - color : red; + color : red; font-weight : bold; //font-style: italic; } } .brewJump{ - position: absolute; - background-color: @teal; - cursor: pointer; - width : 30px; - height : 30px; - display : flex; - align-items : center; - bottom : 20px; - right : 20px; - z-index: 1000000; - justify-content:center; + position : absolute; + background-color : @teal; + cursor : pointer; + width : 30px; + height : 30px; + display : flex; + align-items : center; + bottom : 20px; + right : 20px; + z-index : 1000000; + justify-content : center; .tooltipLeft("Jump to brew page"); } From eee343c197ce323fb25cc71c87e241e25ca1af26 Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Sat, 11 Sep 2021 16:12:47 -0500 Subject: [PATCH 2/3] change tack, keep border on bottom but add page counter --- client/homebrew/editor/editor.less | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/client/homebrew/editor/editor.less b/client/homebrew/editor/editor.less index 2f0afb25f..5ad1d3ffb 100644 --- a/client/homebrew/editor/editor.less +++ b/client/homebrew/editor/editor.less @@ -4,10 +4,16 @@ width : 100%; .codeEditor{ - height : 100%; + height : 100%; + counter-reset : page; .pageLine{ - background : linear-gradient(to bottom, #DDD 0%, #EEE 100%); - border-top : #AAA solid 1px; + background : linear-gradient(to bottom, white 80%, lightgray); + &:after{ + content : counter(page); + counter-increment : page; + float : right; + color : gray; + } } .columnSplit{ font-style : italic; From 39f745639f5aaefae226e93b72e6f9f1dd62edaf Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Tue, 28 Sep 2021 20:06:29 -0500 Subject: [PATCH 3/3] remove gradient, set counter to start at '2' --- client/homebrew/editor/editor.less | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/homebrew/editor/editor.less b/client/homebrew/editor/editor.less index 5ad1d3ffb..0097ddbf6 100644 --- a/client/homebrew/editor/editor.less +++ b/client/homebrew/editor/editor.less @@ -4,10 +4,12 @@ width : 100%; .codeEditor{ - height : 100%; - counter-reset : page; + height : 100%; + counter-reset : page; + counter-increment : page; .pageLine{ - background : linear-gradient(to bottom, white 80%, lightgray); + background : #33333328; + border-top : #339 solid 1px; &:after{ content : counter(page); counter-increment : page;