Skip to content

Commit 874097c

Browse files
authored
Rollup merge of #74371 - Aloso:patch-1, r=GuilliameGomez
Improve ayu rustdoc theme This PR changes the following: * It makes some lines darker * It gives the crate selector and search bar a border * The search bar's border turns blue when focused * ~~Gives the logo a bright shadow.~~ For standard library crates, it would be better to invert the logo, but that would be bad for crates with a colored logo, e.g. [async-std](https://docs.rs/async-std/1.6.2/async_std/). Before: ![old](https://user-images.githubusercontent.com/15658558/87576611-ed4e0800-c6d1-11ea-9667-3924702f79e2.png) After (note that this PR no longer includes the white shadow of the logo): ![new](https://user-images.githubusercontent.com/15658558/87576621-ef17cb80-c6d1-11ea-8e15-5d7f8b180c07.png)
2 parents c60b051 + d08bb40 commit 874097c

File tree

1 file changed

+6
-9
lines changed
  • src/librustdoc/html/static/themes

1 file changed

+6
-9
lines changed

src/librustdoc/html/static/themes/ayu.css

+6-9
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pre {
108108
}
109109

110110
.sidebar .version {
111-
border-bottom-color: #DDD;
111+
border-bottom-color: #424c57;
112112
}
113113

114114
.sidebar-title {
@@ -198,7 +198,7 @@ pre.rust .comment, pre.rust .doccomment {
198198
}
199199

200200
nav:not(.sidebar) {
201-
border-bottom-color: #e0e0e0;
201+
border-bottom-color: #424c57;
202202
}
203203
nav.main .current {
204204
border-top-color: #5c6773;
@@ -223,22 +223,19 @@ a {
223223
#crate-search {
224224
color: #c5c5c5;
225225
background-color: #141920;
226-
border-radius: 4px;
227-
box-shadow: none;
228-
border-color: #5c6773;
226+
box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
227+
border-color: #424c57;
229228
}
230229

231230
.search-input {
232231
color: #ffffff;
233232
background-color: #141920;
234-
box-shadow: none;
233+
box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
235234
transition: box-shadow 150ms ease-in-out;
236-
border-radius: 4px;
237-
margin-left: 8px;
238235
}
239236

240237
#crate-search+.search-input:focus {
241-
box-shadow: 0px 6px 20px 0px black;
238+
box-shadow: 0 0 0 1px #148099,0 0 0 2px transparent;
242239
}
243240

244241
.search-focus:disabled {

0 commit comments

Comments
 (0)