Skip to content

Commit a6a3054

Browse files
authored
small visual touch-ups for search input and dialog content (#5145)
1 parent 0f473f9 commit a6a3054

1 file changed

Lines changed: 27 additions & 9 deletions

File tree

website/src/css/customTheme.scss

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ So we need to "revert" some CSS vars to not enforce dark mode
10521052
padding: 0;
10531053
justify-content: center;
10541054
width: 36px;
1055+
min-width: unset;
10551056
}
10561057

10571058
.DocSearch-Button-Keys,
@@ -1085,15 +1086,16 @@ So we need to "revert" some CSS vars to not enforce dark mode
10851086
border: 1px solid var(--light);
10861087
padding: 0 8px 0 12px;
10871088
font-family: var(--ifm-font-family-base);
1088-
color: var(--subtle);
1089+
color: var(--docsearch-muted-color);
10891090
box-sizing: border-box;
1091+
min-width: 160px;
10901092

10911093
&:hover {
10921094
box-shadow: inset 0 0 0 2px var(--ifm-color-primary);
10931095

10941096
.DocSearch-Search-Icon,
10951097
.DocSearch-Button-Placeholder {
1096-
color: var(--subtle);
1098+
color: var(--docsearch-muted-color);
10971099
}
10981100
}
10991101
}
@@ -1108,27 +1110,33 @@ So we need to "revert" some CSS vars to not enforce dark mode
11081110

11091111
.DocSearch-Button-Placeholder {
11101112
font-size: 14px;
1113+
padding-inline: 6px 12px;
11111114
}
11121115

11131116
.DocSearch-Button-Keys {
11141117
min-width: 42px;
1115-
margin-right: 4px;
1116-
margin-top: 1px;
1117-
gap: 2px;
1118+
margin-right: 3px;
1119+
margin-top: 0.5px;
1120+
gap: 3px;
11181121

11191122
.DocSearch-Button-Key {
1120-
font-size: 12px;
1121-
font-weight: 600;
1123+
font-size: 11px;
1124+
font-weight: 500;
11221125
background: color-mix(
11231126
in srgb,
1124-
var(--docsearch-subtle-color) 40%,
1127+
var(--docsearch-subtle-color) 50%,
11251128
transparent
11261129
);
11271130
color: var(--docsearch-muted-color);
11281131
transform: none;
11291132
margin: 0;
1130-
width: 20px;
11311133
height: 20px;
1134+
max-width: 22px;
1135+
font-family: var(--ifm-font-family-monospace);
1136+
}
1137+
1138+
.DocSearch-Button-Key--ctrl {
1139+
max-width: 32px;
11321140
}
11331141
}
11341142

@@ -1183,10 +1191,20 @@ So we need to "revert" some CSS vars to not enforce dark mode
11831191
}
11841192
}
11851193

1194+
.DocSearch-MagnifierLabel svg {
1195+
color: var(--docsearch-muted-color);
1196+
position: relative;
1197+
top: -1px;
1198+
}
1199+
11861200
.DocSearch-Form:focus-within .DocSearch-MagnifierLabel svg {
11871201
color: var(--home-button-primary);
11881202
}
11891203

1204+
.DocSearch-Close {
1205+
border-radius: 100%;
1206+
}
1207+
11901208
.DocSearch-Footer {
11911209
font-size: 14px;
11921210
border-radius: 0 0 var(--ifm-global-radius) var(--ifm-global-radius);

0 commit comments

Comments
 (0)