Skip to content

Commit 6cd8d1d

Browse files
authored
Rollup merge of #105665 - notriddle:notriddle/popover-css-merge, r=GuillaumeGomez
rustdoc: simplify popover CSS * Merge the color-changing block into the regular rules, which was probably written that way because it used to be in the theme files, but has no reason to be written this way now that it's in rustdoc.css * Get rid of redundant `display: block`, since `position: absolute` blockifies the layout anyway.
2 parents a4f70ff + 8135849 commit 6cd8d1d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

+3-6
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,11 @@ so that we can apply CSS-filters to change the arrow color in themes */
902902
top: 100%;
903903
right: 0;
904904
z-index: 2;
905-
display: block;
906905
margin-top: 7px;
907906
border-radius: 3px;
908907
border: 1px solid var(--border-color);
908+
background-color: var(--main-background-color);
909+
color: var(--main-color);
909910
--popover-arrow-offset: 11px;
910911
}
911912

@@ -916,16 +917,12 @@ so that we can apply CSS-filters to change the arrow color in themes */
916917
right: var(--popover-arrow-offset);
917918
border: solid var(--border-color);
918919
border-width: 1px 1px 0 0;
920+
background-color: var(--main-background-color);
919921
padding: 4px;
920922
transform: rotate(-45deg);
921923
top: -5px;
922924
}
923925

924-
.popover, .popover::before {
925-
background-color: var(--main-background-color);
926-
color: var(--main-color);
927-
}
928-
929926
/* use larger max-width for help popover, but not for help.html */
930927
#help.popover {
931928
max-width: 600px;

0 commit comments

Comments
 (0)