Skip to content

Commit 5481485

Browse files
committed
Auto merge of #55126 - GuillaumeGomez:improve-search-tabs, r=QuietMisdreavus
improve search tabs look Fixes #55056. ![screenshot from 2018-10-16 19-06-48](https://user-images.githubusercontent.com/3050060/47034247-1e08b280-d177-11e8-9c1e-c7320af9b561.png) ![screenshot from 2018-10-16 19-09-39](https://user-images.githubusercontent.com/3050060/47034255-2365fd00-d177-11e8-8686-4765d3e56ff5.png) With this, I think it'll be more obvious. cc @memoryruins r? @QuietMisdreavus
2 parents 424a749 + dc52425 commit 5481485

File tree

3 files changed

+14
-23
lines changed

3 files changed

+14
-23
lines changed

src/librustdoc/html/static/rustdoc.css

+4-7
Original file line numberDiff line numberDiff line change
@@ -1086,17 +1086,14 @@ pre.rust {
10861086
float: left;
10871087
width: 33.3%;
10881088
text-align: center;
1089-
border-bottom: 1px solid;
10901089
font-size: 18px;
10911090
cursor: pointer;
1091+
border-top: 2px solid;
10921092
}
10931093

1094-
#titles > div.selected {
1095-
border-bottom: 3px solid;
1096-
}
1097-
1098-
#titles > div:hover {
1099-
border-bottom: 3px solid;
1094+
#titles > div:not(:last-child):not(.selected) {
1095+
margin-right: 1px;
1096+
width: calc(33.3% - 1px);
11001097
}
11011098

11021099
#titles > div > div.count {

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

+5-8
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,13 @@ pre.ignore:hover, .information:hover + pre.ignore {
300300
border-color: black;
301301
}
302302

303-
#titles > div {
304-
border-bottom-color: #ccc;
303+
#titles > div:not(.selected) {
304+
background-color: #252525;
305+
border-top-color: #252525;
305306
}
306307

307-
#titles > div.selected {
308-
border-bottom-color: #0078ee;
309-
}
310-
311-
#titles > div:hover {
312-
border-bottom-color: #0089ff;
308+
#titles > div:hover, #titles > div.selected {
309+
border-top-color: #0089ff;
313310
}
314311

315312
#titles > div > div.count {

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

+5-8
Original file line numberDiff line numberDiff line change
@@ -294,16 +294,13 @@ pre.ignore:hover, .information:hover + pre.ignore {
294294
border-color: black;
295295
}
296296

297-
#titles > div {
298-
border-bottom-color: #ccc;
297+
#titles > div:not(.selected) {
298+
background-color: #e6e6e6;
299+
border-top-color: #e6e6e6;
299300
}
300301

301-
#titles > div.selected {
302-
border-bottom-color: #0078ee;
303-
}
304-
305-
#titles > div:hover {
306-
border-bottom-color: #0089ff;
302+
#titles > div:hover, #titles > div.selected {
303+
border-top-color: #0089ff;
307304
}
308305

309306
#titles > div > div.count {

0 commit comments

Comments
 (0)