Skip to content

Commit 51789da

Browse files
Merge pull request #39293 from aireilly/fix-sidebar-css
fixes search input css on mobile
2 parents 34765bc + 7096d54 commit 51789da

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

_stylesheets/docs.css

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,9 @@ h2:hover>a.anchor, h2>a.anchor:hover, h3:hover>a.anchor, h3>a.anchor:hover, h4:h
681681
z-index: 2;
682682
width: 263px;
683683
background-color: #fff;
684+
margin-left: 5px;
684685
display: flex;
685686
flex-flow: column;
686-
margin-left: 5px;
687687
top: 190px;
688688
bottom: 10px;
689689
display: block;
@@ -704,7 +704,8 @@ h2:hover>a.anchor, h2>a.anchor:hover, h3:hover>a.anchor, h3>a.anchor:hover, h4:h
704704
border: 1px solid lightgrey;
705705
font-size: 12px;
706706
height: 25px;
707-
width: 31px !important;
707+
width: 30px;
708+
padding: 1px;
708709
}
709710

710711
#hc-search-input {
@@ -932,7 +933,7 @@ h2:hover>a.anchor, h2>a.anchor:hover, h3:hover>a.anchor, h3>a.anchor:hover, h4:h
932933
}
933934

934935
.nav {
935-
padding-top: 25px;
936+
padding-top: 15px;
936937
}
937938

938939
#toc:before {
@@ -1000,6 +1001,7 @@ h2:hover>a.anchor, h2>a.anchor:hover, h3:hover>a.anchor, h3>a.anchor:hover, h4:h
10001001
transition: all .3s ease;
10011002
display: none;
10021003
top: unset;
1004+
left: -5px;
10031005
}
10041006

10051007
.breadcrumb {
@@ -1022,7 +1024,8 @@ h2:hover>a.anchor, h2>a.anchor:hover, h3:hover>a.anchor, h3>a.anchor:hover, h4:h
10221024
font-size: 14px;
10231025
height: 25px;
10241026
width: 26px;
1025-
padding: 2px 2px 2px 2px;
1027+
padding: 2px;
1028+
margin-bottom: 3px;
10261029
}
10271030

10281031
.btn-close {
@@ -1034,16 +1037,10 @@ h2:hover>a.anchor, h2>a.anchor:hover, h3:hover>a.anchor, h3>a.anchor:hover, h4:h
10341037
}
10351038

10361039
#hc-search {
1037-
position: fixed;
10381040
top: 40px;
1039-
width: 80%;
1040-
}
1041-
1042-
#hc-search-btn {
1043-
width: 31px;
1041+
position: unset;
10441042
}
10451043

1046-
10471044
}
10481045

10491046
/*

0 commit comments

Comments
 (0)