File tree 2 files changed +28
-8
lines changed
librustdoc/html/static/css
2 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -290,20 +290,21 @@ p:last-child {
290
290
button {
291
291
/* Buttons on Safari have different default padding than other platforms. Make them the same. */
292
292
padding : 1px 6px ;
293
+ /* Opinionated tweak: use pointer cursor as clickability signifier. */
294
+ cursor : pointer;
293
295
}
294
296
297
+ /* end tweaks for normalize.css 8 */
298
+
295
299
button # toggle-all-docs {
296
300
padding : 0 ;
297
301
background : none;
298
302
border : none;
299
- cursor : pointer;
300
303
/* iOS button gradient: https://stackoverflow.com/q/5438567 */
301
304
-webkit-appearance : none;
302
305
opacity : 1 ;
303
306
}
304
307
305
- /* end tweaks for normalize.css 8 */
306
-
307
308
.rustdoc {
308
309
display : flex;
309
310
flex-direction : row;
@@ -1305,7 +1306,6 @@ a.test-arrow:hover {
1305
1306
# titles > button {
1306
1307
text-align : center;
1307
1308
font-size : 1.125rem ;
1308
- cursor : pointer;
1309
1309
border : 0 ;
1310
1310
border-top : 2px solid;
1311
1311
flex : 1 ;
@@ -1345,7 +1345,6 @@ a.test-arrow:hover {
1345
1345
font-weight : bold;
1346
1346
background : none;
1347
1347
color : inherit;
1348
- cursor : pointer;
1349
1348
text-align : center;
1350
1349
border : none;
1351
1350
outline : none;
@@ -1367,7 +1366,6 @@ a.test-arrow:hover {
1367
1366
1368
1367
# settings-menu > a , # help-button > a , # copy-path {
1369
1368
width : 33px ;
1370
- cursor : pointer;
1371
1369
line-height : 1.5 ;
1372
1370
}
1373
1371
@@ -1796,7 +1794,6 @@ in storage.js
1796
1794
z-index : 10 ;
1797
1795
border-top-right-radius : 3px ;
1798
1796
border-bottom-right-radius : 3px ;
1799
- cursor : pointer;
1800
1797
border : 1px solid;
1801
1798
border-left : 0 ;
1802
1799
}
@@ -1967,7 +1964,6 @@ in storage.js
1967
1964
position : absolute;
1968
1965
top : 0.25em ;
1969
1966
z-index : 1 ;
1970
- cursor : pointer;
1971
1967
padding : 0 ;
1972
1968
background : none;
1973
1969
border : none;
Original file line number Diff line number Diff line change
1
+ // This test ensures that several clickable items actually have the pointer cursor.
2
+ goto: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
3
+
4
+ // the `[+]/[-]` button
5
+ assert-css: ("#toggle-all-docs", {"cursor": "pointer"})
6
+
7
+ // the button next to the path header
8
+ assert-css: ("#copy-path", {"cursor": "pointer"})
9
+
10
+ // the search tabs
11
+ write: (".search-input", "Foo")
12
+ // To be SURE that the search will be run.
13
+ press-key: 'Enter'
14
+ // Waiting for the search results to appear...
15
+ wait-for: "#titles"
16
+ assert-css: ("#titles > button", {"cursor": "pointer"})
17
+
18
+ // mobile sidebar toggle button
19
+ size: (500, 700)
20
+ assert-css: (".sidebar-menu-toggle", {"cursor": "pointer"})
21
+
22
+ // the sidebar toggle button on the source code pages
23
+ goto: "file://" + |DOC_PATH| + "/src/lib2/lib.rs.html"
24
+ assert-css: ("#sidebar-toggle > button", {"cursor": "pointer"})
You can’t perform that action at this time.
0 commit comments