Skip to content

Commit 84891c2

Browse files
Rollup merge of #115266 - GuillaumeGomez:unify-css-color-formats, r=notriddle
Unify CSS color formats a bit more When `rgb` format doesn't have an `rgba` equivalent, I turned it into hex format. I also "decapitalized" hex formats. r? `@notriddle`
2 parents 1095175 + fde47b6 commit 84891c2

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3131
--codeblock-error-color: rgba(255, 0, 0, .5);
3232
--codeblock-ignore-hover-color: rgb(255, 142, 0);
3333
--codeblock-ignore-color: rgba(255, 142, 0, .6);
34-
--warning-border-color: rgb(255, 142, 0);
34+
--warning-border-color: #ff8e00;
3535
--type-link-color: #ffa0a5;
3636
--trait-link-color: #39afd7;
3737
--assoc-item-link-color: #39afd7;
@@ -96,8 +96,8 @@ Original by Dempfi (https://github.com/dempfi/ayu)
9696
--codeblock-link-background: #333;
9797
--scrape-example-toggle-line-background: #999;
9898
--scrape-example-toggle-line-hover-background: #c5c5c5;
99-
--scrape-example-code-line-highlight: rgb(91, 59, 1);
100-
--scrape-example-code-line-highlight-focus: rgb(124, 75, 15);
99+
--scrape-example-code-line-highlight: #5b3b01;
100+
--scrape-example-code-line-highlight-focus: #7c4b0f;
101101
--scrape-example-help-border-color: #aaa;
102102
--scrape-example-help-color: #eee;
103103
--scrape-example-help-hover-border-color: #fff;

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
--codeblock-error-color: rgba(255, 0, 0, .5);
2727
--codeblock-ignore-hover-color: rgb(255, 142, 0);
2828
--codeblock-ignore-color: rgba(255, 142, 0, .6);
29-
--warning-border-color: rgb(255, 142, 0);
29+
--warning-border-color: #ff8e00;
3030
--type-link-color: #2dbfb8;
3131
--trait-link-color: #b78cf2;
3232
--assoc-item-link-color: #d2991d;
@@ -69,7 +69,7 @@
6969
--test-arrow-color: #dedede;
7070
--test-arrow-background-color: rgba(78, 139, 202, 0.2);
7171
--test-arrow-hover-color: #dedede;
72-
--test-arrow-hover-background-color: rgb(78, 139, 202);
72+
--test-arrow-hover-background-color: #4e8bca;
7373
--target-background-color: #494a3d;
7474
--target-border-color: #bb7410;
7575
--kbd-color: #000;
@@ -87,12 +87,12 @@
8787
--crate-search-hover-border: #2196f3;
8888
--src-sidebar-background-selected: #333;
8989
--src-sidebar-background-hover: #444;
90-
--table-alt-row-background-color: #2A2A2A;
90+
--table-alt-row-background-color: #2a2a2a;
9191
--codeblock-link-background: #333;
9292
--scrape-example-toggle-line-background: #999;
9393
--scrape-example-toggle-line-hover-background: #c5c5c5;
94-
--scrape-example-code-line-highlight: rgb(91, 59, 1);
95-
--scrape-example-code-line-highlight-focus: rgb(124, 75, 15);
94+
--scrape-example-code-line-highlight: #5b3b01;
95+
--scrape-example-code-line-highlight-focus: #7c4b0f;
9696
--scrape-example-help-border-color: #aaa;
9797
--scrape-example-help-color: #eee;
9898
--scrape-example-help-hover-border-color: #fff;

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
--settings-input-border-color: #717171;
66
--settings-button-color: #000;
77
--settings-button-border-focus: #717171;
8-
--sidebar-background-color: #F5F5F5;
9-
--sidebar-background-color-hover: #E0E0E0;
10-
--code-block-background-color: #F5F5F5;
8+
--sidebar-background-color: #f5f5f5;
9+
--sidebar-background-color-hover: #e0e0e0;
10+
--code-block-background-color: #f5f5f5;
1111
--scrollbar-track-background-color: #dcdcdc;
1212
--scrollbar-thumb-background-color: rgba(36, 37, 39, 0.6);
1313
--scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
@@ -26,7 +26,7 @@
2626
--codeblock-error-color: rgba(255, 0, 0, .5);
2727
--codeblock-ignore-hover-color: rgb(255, 142, 0);
2828
--codeblock-ignore-color: rgba(255, 142, 0, .6);
29-
--warning-border-color: rgb(255, 142, 0);
29+
--warning-border-color: #ff8e00;
3030
--type-link-color: #ad378a;
3131
--trait-link-color: #6e4fc9;
3232
--assoc-item-link-color: #3873ad;
@@ -47,7 +47,7 @@
4747
--search-tab-button-not-selected-border-top-color: #e6e6e6;
4848
--search-tab-button-not-selected-background: #e6e6e6;
4949
--search-tab-button-selected-border-top-color: #0089ff;
50-
--search-tab-button-selected-background: #ffffff;
50+
--search-tab-button-selected-background: #fff;
5151
--stab-background-color: #fff5d6;
5252
--stab-code-color: #000;
5353
--code-highlight-kw-color: #8959a8;
@@ -84,7 +84,7 @@
8484
--crate-search-hover-border: #717171;
8585
--src-sidebar-background-selected: #fff;
8686
--src-sidebar-background-hover: #e0e0e0;
87-
--table-alt-row-background-color: #F5F5F5;
87+
--table-alt-row-background-color: #f5f5f5;
8888
--codeblock-link-background: #eee;
8989
--scrape-example-toggle-line-background: #ccc;
9090
--scrape-example-toggle-line-hover-background: #999;

0 commit comments

Comments
 (0)