Skip to content

Commit

Permalink
_content/css: hide scroll bars under each line number on phone screens
Browse files Browse the repository at this point in the history
jquery-linedtextarea sets the line numbers to be width 3%
because then it can set the main box to be 97%.
Ideally we'd do something like 3ex and 100% - 3ex
but I've failed to get that to work with the jquery we are using.

On very narrow screens like phones, 3% is too narrow for the
line numbers, and the browser shows a tiny little horizontal
scroll bar under each line number. Make those go away.

Fixes golang/go#49829.

Change-Id: Iccb51a885076d4cbdf91429485960f5ab7790f8b
Reviewed-on: https://go-review.googlesource.com/c/website/+/367976
Trust: Russ Cox <[email protected]>
Run-TryBot: Russ Cox <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Jamal Carvalho <[email protected]>
  • Loading branch information
passionSeven committed Nov 30, 2021
1 parent 8f6767f commit 396281f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _content/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3889,6 +3889,7 @@ h2.Playground-about {
.linedtextarea .lines div {
padding-right: 5px;
color: lightgray;
overflow: hidden;
}
.linedtextarea .lineerror {
color: black !important;
Expand Down

0 comments on commit 396281f

Please sign in to comment.