]> git.lizzy.rs Git - rust.git/blob - src/tools/error_index_generator/error-index.css
Rollup merge of #99460 - JanBeh:PR_asref_asmut_docs, r=joshtriplett
[rust.git] / src / tools / error_index_generator / error-index.css
1 code.compile_fail {
2         border-left: 2px solid red;
3 }
4
5 pre .tooltip {
6         position: absolute;
7         left: -25px;
8         top: 0;
9         z-index: 1;
10         color: red;
11         cursor: pointer;
12 }
13 pre .tooltip::after {
14         display: none;
15         content: "This example deliberately fails to compile";
16         background-color: #000;
17         color: #fff;
18         border-color: #000;
19         text-align: center;
20         padding: 5px 3px 3px 3px;
21         border-radius: 6px;
22         margin-left: 5px;
23 }
24 pre .tooltip::before {
25         display: none;
26         border-color: transparent black transparent transparent;
27         content: " ";
28         position: absolute;
29         top: 50%;
30         left: 2px;
31         margin-top: -5px;
32         border-width: 5px;
33         border-style: solid;
34         height: 0px;
35 }
36
37 pre .tooltip:hover::before, pre .tooltip:hover::after {
38         display: inline;
39 }