8000 Fix search box and select appearances · python/python-docs-theme@c0c7ba3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c0c7ba3

Browse files
authored
Fix search box and select appearances
Some problems in Safari mobile browser were fixed: right margin on the search box (between the button and the border), color of the button; Language and version switchers in both Chrome for Android and Safari had gray background.
1 parent a49d94e commit c0c7ba3

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,6 @@ dl > dt span ~ em {
293293
flex: 0 1 0;
294294
margin-right: 1rem;
295295
}
296-
.version_switcher_placeholder select {
297-
border-radius: 0;
298-
}
299296
.nav-content .search {
300297
display: flex;
301298
flex: 1 1 auto;
@@ -319,10 +316,17 @@ dl > dt span ~ em {
319316
}
320317
.nav-content .search input[type=submit] {
321318
height: 100%;
322-
border: 0;
319+
appearance: none;
320+
-webkit-appearance: none;
321+
border: 1px solid-transparent;
322+
border-left-color: #a9a9a9;
323323
box-shadow: none;
324-
outline: 1px solid #999;
325324
cursor: pointer;
325+
background-color: #f0f0f0;
326+
margin-right: 0;
327+
}
328+
.nav-content .search input[type=submit]:hover {
329+
border-color: #a9a9a9;
326330
}
327331
.nav-content .search svg {
328332
flex: 0 0 20px;
@@ -483,6 +487,7 @@ dl > dt span ~ em {
483487
appearance: none;
484488
border: 0;
485489
height: 100%;
490+
background-color: white;
486491
}
487492
.language_switcher_placeholder:focus-visible,
488493
.version_switcher_placeholder:focus-visible {

0 commit comments

Comments
 (0)
0