Skip to content

Commit

Permalink
fix navbar (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenePixelpelx authored Nov 26, 2024
1 parent 0b1c5c9 commit 51fcbc1
Showing 1 changed file with 67 additions and 15 deletions.
82 changes: 67 additions & 15 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,21 +161,6 @@ body {
--float-shadow-color: #00000014;
}


.navbar__item {
flex-shrink: 0;
}

@media (max-width: 1560px){
.navbar__item {
display: none;
}

.navbar__toggle {
display: flex;
}
}

.navbar .navbar__items[data-theme=light] {
flex: auto;
background: rgba(35,35,40,.9)
Expand Down Expand Up @@ -594,8 +579,32 @@ html[data-theme=dark] .header-github-link:before {
background: url("/static/svg/wrench-24px-dark.svg") no-repeat;
}

@media (max-width: 1060px) and (min-width: 997px) {
.header-contribute-link:before, .header-github-link:before {
width: 20px;
height: 20px;
background-size: contain;
}

.navbar__items .clean-btn svg {
width: 20px;
height: 20px;
}

.navbar__items [class^="toggle"] {
width: 20px !important;
height: 20px !important;
}

.navbar__items [class^="navbarSearchContainer"] {
padding-left: 6px;
}
}


html[data-theme=dark] .header-contribute-link:before {
background: url("/static/svg/wrench-24px-light.svg") no-repeat;
background-size: contain;
}

.bootstrap-wrapper .col-auto {
Expand Down Expand Up @@ -1935,3 +1944,46 @@ a img,button img {
.button--sm {
--ifm-button-size-multiplier: 1.1 !important;
}

.navbar__item {
flex-shrink: 0;
}

@media (max-width: 1560px) {
.navbar__item {
font-size: 16px;
padding-left: 8px;
padding-right: 8px;
}
}

@media (max-width: 1380px) {
.navbar__item {
font-size: 14px;
padding-left: 6px;
padding-right: 6px;
}

.navbar__item .navbar__link::after {
margin-left: 2px;
border-width: 0.25em 0.25em 0;
top: 0;
}
}

@media (max-width: 1380px) {
.DocSearch .DocSearch-Button-Keys {
display: none;
}

.DocSearch-Button-Placeholder {
display: none;
}
}

@media (max-width: 1060px) and (min-width: 997px) {
.navbar {
padding-left: 10px;
padding-right: 10px;
}
}

0 comments on commit 51fcbc1

Please sign in to comment.