Skip to content

Commit de197f9

Browse files
jshasyphar
authored andcommitted
Switch font sizes to px
1 parent b3300b6 commit de197f9

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

templates/style/_navbar.scss

+10-7
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ div.nav-container {
4545
background-color: var(--color-background);
4646
}
4747
&:after {
48-
font-size: 0.8em;
48+
font-size: 12.8px;
4949
content: "\25BC"
5050
}
5151
}
5252

5353
.pure-menu-link {
54-
font-size: 0.8em;
54+
font-size: 12.8px;
5555
font-weight: 400;
5656
color: var(--color-navbar-standard);
5757

5858
&.description {
59-
font-size: 0.9em;
59+
font-size: 14.4px;
6060
}
6161

6262
// Improves menu link readability when inverting the colors on focus.
@@ -89,7 +89,6 @@ div.nav-container {
8989
display: none;
9090
border-left: 1px solid var(--color-border);
9191
height: 100%;
92-
overflow-x: hidden;
9392

9493
@media #{$media-sm} {
9594
display: block;
@@ -103,13 +102,13 @@ div.nav-container {
103102
color: var(--color-navbar-standard);
104103
cursor: pointer;
105104
padding-left: 0.5rem;
106-
font-size: 0.8em;
105+
font-size: 12.8px;
107106
}
108107

109108
input {
110109
border: none;
111110
margin: 0 1em 0 0;
112-
font-size: 0.8em;
111+
font-size: 12.8px;
113112
box-shadow: none;
114113
background-color: var(--color-background);
115114
height: 100%;
@@ -120,6 +119,10 @@ div.nav-container {
120119
outline: unset;
121120
}
122121

122+
.docsrs-logo, .pure-menu-item a {
123+
padding: 6.4px 16px 6.4px 16px;
124+
}
125+
123126
.docsrs-logo, .pure-menu-item, .pure-menu-item a {
124127
height: 100%;
125128
}
@@ -273,7 +276,7 @@ div.nav-container {
273276

274277
p.description {
275278
font-family: $font-family-sans;
276-
font-size: 0.8em;
279+
font-size: 12.8px;
277280
color: var(--color-navbar-standard);
278281
padding: 0.5em 1em;
279282
margin: 0;

0 commit comments

Comments
 (0)