Skip to content

Commit 7109f40

Browse files
GuillaumeGomezJoshua Nelson
authored and
Joshua Nelson
committed
Fix theming CSS conflicts
1 parent 89336f1 commit 7109f40

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

templates/style/_utils.scss

+1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ div {
2121
@extend .info;
2222

2323
background-color: var(--color-warn-background);
24+
color: var(--color-warn);
2425
}
2526
}

templates/style/base.scss

+10-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ body {
2525
padding: 0;
2626
margin: 0;
2727

28-
input, #search {
28+
input, :not(#rustdoc_body_wrapper) > #search {
2929
background-color: var(--color-background-input);
3030
color: var(--input-color);
3131
}
@@ -34,12 +34,12 @@ body {
3434
color: var(--color-navbar-standard);
3535
}
3636

37-
#search {
37+
:not(#rustdoc_body_wrapper) > #search {
3838
box-shadow: 0 0 0 1px var(--color-border), 0 0 0 1px var(--color-border);
3939
transition: box-shadow 150ms ease-in-out;
4040
}
4141

42-
#search:focus {
42+
:not(#rustdoc_body_wrapper) > #search:focus {
4343
box-shadow: var(--input-box-shadow-focus);
4444
}
4545

@@ -488,6 +488,13 @@ div.cratesfyi-package-container {
488488
display: flex;
489489
align-items: center;
490490

491+
// This rule is only used on the error page when we land on a crate which doesn't exist.
492+
#crate-title {
493+
color: var(--color-standard);
494+
text-align: center;
495+
width: 100%;
496+
}
497+
491498
.description-container {
492499
flex-grow: 3;
493500
color: var(--color-standard);

0 commit comments

Comments
 (0)