File tree 2 files changed +22
-6
lines changed
2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ impl Spec {
86
86
let mut test_html = String :: new ( ) ;
87
87
if let Some ( tests) = tests. get ( rule_id) {
88
88
test_html = format ! (
89
- "<span class=\" popup-container\" >\n \
90
- <a href=\" javascript:void(0)\" onclick=\" spec_toggle_tests('{rule_id}');\" >\
91
- Tests</a>\n \
89
+ "<br>< span class=\" popup-container\" >\n \
90
+ <a href=\" javascript:void(0)\" onclick=\" spec_toggle_tests('{rule_id}');\" >\
91
+ <span> Tests</span> </a>\n \
92
92
<div id=\" tests-{rule_id}\" class=\" tests-popup popup-hidden\" >\n \
93
93
Tests with this rule:
94
94
<ul>" ) ;
Original file line number Diff line number Diff line change @@ -302,6 +302,17 @@ main > .rule {
302
302
color : # 999 !important ;
303
303
}
304
304
305
+ /* Test links */
306
+ .rule .popup-container {
307
+ float : right;
308
+ padding-right : 10px ;
309
+ }
310
+
311
+ .rule .popup-container > a {
312
+ float : right;
313
+ text-align : right;
314
+ }
315
+
305
316
/* When clicking a rule, it is added as a URL fragment and the browser will
306
317
navigate to it. This adds an indicator that the linked rule is the one that
307
318
is "current", just like normal headers are in mdbook.
@@ -326,13 +337,18 @@ main > .rule {
326
337
The cutoff point is chosen semi-arbitrary, it felt that
327
338
when `width < 14em`, there are too many breaks. */
328
339
@container rule (width < 14em) {
329
- main > .rule a span {
340
+ main > .rule a .rule-link span ,
341
+ main > .rule .popup-container > a span {
330
342
display : none;
331
343
}
332
344
333
- main > .rule a ::before {
345
+ main > .rule > a . rule-link ::before {
334
346
content : "[*]" ;
335
- }
347
+ }
348
+
349
+ main > .rule .popup-container > a ::before {
350
+ content : "[T]" ;
351
+ }
336
352
}
337
353
338
354
/* Align rules to various siblings */
You can’t perform that action at this time.
0 commit comments