Skip to content

Commit 5883743

Browse files
CldfireGuillaumeGomez
authored andcommitted
A couple tweaks for the new themes
1 parent f48e17c commit 5883743

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

templates/style/_themes.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ html {
1313
--color-menu-header-background: #e0e0e0;
1414
--color-navbar-standard: #777;
1515
--color-standard: #000;
16+
--color-brand: #000;
1617
--color-struct: #df3600;
1718
--color-type: #e57300;
1819
--color-url: #4d76ae;
1920
--color-warn-background: #ffe5cc;
2021
--color-warn-hover: #b25900;
2122
--color-warn: #e57300;
2223
--color-background-input: #fff;
24+
--color-table-header-background: #e0e0e0;
25+
--color-table-header: #000;
2326
}
2427

2528
// To add a new theme, copy the above theme into a new `html[data-theme="name"]`
@@ -39,13 +42,16 @@ html[data-theme="dark"] {
3942
--color-menu-header-background: #e0e0e0;
4043
--color-navbar-standard: #ddd;
4144
--color-standard: #c0c0c0;
45+
--color-brand: #fff;
4246
--color-struct: #df3600;
4347
--color-type: #e57300;
4448
--color-url: #d2991d;
4549
--color-warn-background: #ffe5cc;
4650
--color-warn-hover: #b25900;
4751
--color-warn: #e57300;
4852
--color-background-input: #f0f0f0;
53+
--color-table-header-background: #e0e0e0;
54+
--color-table-header: #000;
4955
}
5056

5157
html[data-theme="ayu"] {
@@ -62,11 +68,14 @@ html[data-theme="ayu"] {
6268
--color-menu-header-background: #e0e0e0;
6369
--color-navbar-standard: #ddd;
6470
--color-standard: #c5c5c5;
71+
--color-brand: #fff;
6572
--color-struct: #df3600;
6673
--color-type: #e57300;
6774
--color-url: #39afd7;
6875
--color-warn-background: #ffe5cc;
6976
--color-warn-hover: #b25900;
7077
--color-warn: #e57300;
7178
--color-background-input: #141920;
79+
--color-table-header-background: #364759;
80+
--color-table-header: #eee;
7281
}

templates/style/base.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,16 @@ body {
2727

2828
input, #search {
2929
background-color: var(--color-background-input);
30+
color: var(--color-standard);
3031
}
3132

3233
#search {
33-
box-shadow: 0 0 0 1px var(--color-border), 0 0 0 2px transparent;
34+
box-shadow: 0 0 0 1px var(--color-border), 0 0 0 1px var(--color-border);
35+
transition: box-shadow 150ms ease-in-out;
36+
}
37+
38+
#search:focus {
39+
box-shadow: 0 0 0 1px #148099, 0 0 0 1px #148099;
3440
}
3541

3642
// rustdocs have 200px sidebar and
@@ -99,7 +105,7 @@ div.landing {
99105
h1.brand {
100106
font-size: 3em;
101107
margin-bottom: 10px;
102-
color: var(--color-standard);
108+
color: var(--color-brand);
103109
}
104110

105111
form.landing-search-form {
@@ -612,6 +618,11 @@ div.search-page-search-form {
612618
margin-bottom: 10px;
613619
}
614620

621+
thead {
622+
background-color: var(--color-table-header-background);
623+
color: var(--color-table-header);
624+
}
625+
615626
thead tr th {
616627
font-family: $font-family-sans;
617628
font-weight: 500;

0 commit comments

Comments
 (0)