@@ -896,11 +896,11 @@ table,
896
896
897
897
.search-container {
898
898
position : relative;
899
- max-width : 960px ;
899
+ display : flex;
900
+ height : 34px ;
900
901
}
901
- .search-container > div {
902
- display : inline-flex;
903
- width : calc (100% - 63px );
902
+ .search-container > * {
903
+ height : 100% ;
904
904
}
905
905
.search-results-title {
906
906
display : inline;
@@ -931,10 +931,8 @@ table,
931
931
background-position : calc (100% - 1px ) 56% ;
932
932
background-image : /* AUTOREPLACE: */ url ("down-arrow.svg" );
933
933
}
934
- .search-container > .top-button {
935
- position : absolute;
936
- right : 0 ;
937
- top : 10px ;
934
+ .search-container {
935
+ margin-top : 4px ;
938
936
}
939
937
.search-input {
940
938
/* Override Normalize.css: it has a rule that sets
@@ -947,23 +945,14 @@ table,
947
945
-moz-box-sizing : border-box !important ;
948
946
box-sizing : border-box !important ;
949
947
outline : none;
950
- border : none;
951
- border-radius : 1px ;
952
- margin-top : 5px ;
953
- padding : 10px 16px ;
948
+ border : 1px solid;
949
+ border-radius : 2px ;
950
+ padding : 5px 8px ;
954
951
font-size : 1.0625rem ;
955
952
transition : border-color 300ms ease;
956
- transition : border-radius 300ms ease-in-out;
957
- transition : box-shadow 300ms ease-in-out;
958
953
width : 100% ;
959
954
}
960
955
961
- .search-input : focus {
962
- border-radius : 2px ;
963
- border : 0 ;
964
- outline : 0 ;
965
- }
966
-
967
956
.search-results {
968
957
display : none;
969
958
padding-bottom : 2em ;
@@ -1436,43 +1425,36 @@ pre.rust {
1436
1425
1437
1426
.theme-picker {
1438
1427
position : absolute;
1439
- left : -34 px ;
1440
- top : 9 px ;
1428
+ left : -38 px ;
1429
+ top : 4 px ;
1441
1430
}
1442
1431
1443
1432
.theme-picker button {
1444
1433
outline : none;
1445
1434
}
1446
1435
1447
1436
# settings-menu , # help-button {
1448
- position : absolute;
1449
- top : 10px ;
1450
- }
1451
-
1452
- # settings-menu {
1453
- right : 0 ;
1437
+ margin-left : 4px ;
1454
1438
outline : none;
1455
1439
}
1456
1440
1441
+ # theme-picker , # copy-path {
1442
+ height : 34px ;
1443
+ }
1457
1444
# theme-picker , # settings-menu , # help-button , # copy-path {
1458
- padding : 4px ;
1459
- /* Rare exception to specifying font sizes in rem. Since these are acting
1460
- as icons, it's okay to specify their sizes in pixels. */
1461
- font-size : 16px ;
1462
- width : 27px ;
1463
- height : 29px ;
1445
+ padding : 5px ;
1446
+ width : 33px ;
1464
1447
border : 1px solid;
1465
- border-radius : 3 px ;
1448
+ border-radius : 2 px ;
1466
1449
cursor : pointer;
1467
1450
}
1468
1451
1469
1452
# help-button {
1470
- right : 30px ;
1471
1453
font-family : "Fira Sans" , Arial, sans-serif;
1472
1454
text-align : center;
1473
1455
/* Rare exception to specifying font sizes in rem. Since this is acting
1474
1456
as an icon, it's okay to specify their sizes in pixels. */
1475
- font-size : 16 px ;
1457
+ font-size : 20 px ;
1476
1458
padding-top : 2px ;
1477
1459
}
1478
1460
@@ -1909,10 +1891,6 @@ details.rustdoc-toggle[open] > summary.hideme::after {
1909
1891
display : none !important ;
1910
1892
}
1911
1893
1912
- .theme-picker {
1913
- z-index : 1 ;
1914
- }
1915
-
1916
1894
.notable-traits {
1917
1895
position : absolute;
1918
1896
left : -22px ;
@@ -1999,10 +1977,6 @@ details.rustdoc-toggle[open] > summary.hideme::after {
1999
1977
width : 100% ;
2000
1978
}
2001
1979
2002
- .search-container > div {
2003
- width : calc (100% - 32px );
2004
- }
2005
-
2006
1980
/* Display an alternating layout on tablets and phones */
2007
1981
.search-results > a {
2008
1982
border-bottom : 1px solid # aaa9 ;
@@ -2047,30 +2021,11 @@ details.rustdoc-toggle[open] > summary.hideme::after {
2047
2021
width : 50% ;
2048
2022
}
2049
2023
2050
- .search-container > div {
2051
- display : block;
2052
- width : calc (100% - 37px );
2053
- }
2054
-
2055
2024
# crate-search {
2056
2025
border-radius : 4px ;
2057
2026
border : 0 ;
2058
2027
}
2059
2028
2060
- # theme-picker , # settings-menu {
2061
- padding : 5px ;
2062
- width : 31px ;
2063
- height : 31px ;
2064
- }
2065
-
2066
- # theme-picker {
2067
- margin-top : -2px ;
2068
- }
2069
-
2070
- # settings-menu {
2071
- top : 7px ;
2072
- }
2073
-
2074
2029
.docblock {
2075
2030
margin-left : 12px ;
2076
2031
}
0 commit comments