Skip to content

Commit

Permalink
Rollup merge of rust-lang#76374 - pickfire:patch-4, r=Cldfire
Browse files Browse the repository at this point in the history
Improve ayu doc source line number contrast

Improve contrast of foreground line number.

Before

![image](https://user-images.githubusercontent.com/4687791/92305696-1bf2ab80-efbc-11ea-8b5c-a24c4f6261e0.png)

After

![image](https://user-images.githubusercontent.com/4687791/92305700-2a40c780-efbc-11ea-9061-dbfcb1e71980.png)

r? @Cldfire

I think we should add the line for light and dark theme too, it looks better and clearer that way.
  • Loading branch information
Dylan-DPC authored Sep 7, 2020
2 parents fddf315 + d80415a commit f037dca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustdoc/html/static/themes/ayu.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ pre {
color: #ffb44c;
}

.line-numbers span { color: #5c6773ab; }
.line-numbers span { color: #5c6773; }
.line-numbers .line-highlighted {
background-color: rgba(255, 236, 164, 0.06) !important;
color: #708090;
background-color: rgba(255, 236, 164, 0.06);
padding-right: 4px;
border-right: 1px solid #ffb44c;
}
Expand Down

0 comments on commit f037dca

Please sign in to comment.