Skip to content

Commit 896b44a

Browse files
authored
Rollup merge of #83157 - nagisa:nagisa/portability-background, r=GuillaumeGomez
No background for code in portability snippets This better matches the appearance of this kind of snippet in the full item view and is less jarring to read due to repeated foreground-background changes. ![Listing of items in a module with some portability snippets attached to some of the items (light theme). The portability snippet has a light blue background and all of the text in it, monospace or not, is the same colour – black](https://user-images.githubusercontent.com/679122/111196363-1900f500-85b5-11eb-8f97-e283c59002a4.png) ![Listing of items in a module with some portability snippets attached to some of the items (dark theme). The portability snippet has a light blue background and all of the text in it, monospace or not, is the same colour – black](https://user-images.githubusercontent.com/679122/111196366-19998b80-85b5-11eb-9914-4d14d9d13ed3.png) There should be no observable changes to the ayu theme.
2 parents 0f6b206 + 9aa48ba commit 896b44a

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/librustdoc/html/static/themes/ayu.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ a {
266266

267267
.stab.portability > code {
268268
color: #e6e1cf;
269-
background-color: transparent;
269+
background: none;
270270
}
271271

272272
#help > div {

src/librustdoc/html/static/themes/dark.css

+1-4
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,7 @@ a.test-arrow {
222222
.stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
223223
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #2f2f2f; }
224224
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #2f2f2f; }
225-
226-
.stab.portability > code {
227-
color: #ddd;
228-
}
225+
.stab.portability > code { background: none; }
229226

230227
#help > div {
231228
background: #4d4d4d;

src/librustdoc/html/static/themes/light.css

+1-4
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,7 @@ a.test-arrow {
220220
.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
221221
.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
222222
.stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
223-
224-
.stab.portability > code {
225-
color: #000;
226-
}
223+
.stab.portability > code { background: none; }
227224

228225
#help > div {
229226
background: #e9e9e9;

0 commit comments

Comments
 (0)