Skip to content

Commit

Permalink
refactor: use a variable for the menu bar height
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Jul 20, 2019
1 parent fe815a0 commit c9f5426
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/theme/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ html.sidebar-visible.js #menu-bar-sticky-container {
position: relative;
padding: 0 8px;
z-index: 10;
line-height: 50px;
line-height: var(--menu-bar-height);
cursor: pointer;
transition: color 0.5s;
}
Expand Down Expand Up @@ -85,7 +85,7 @@ html.sidebar-visible.js #menu-bar-sticky-container {
display: inline-block;
font-weight: 200;
font-size: 20px;
line-height: 50px;
line-height: var(--menu-bar-height);
text-align: center;
margin: 0;
flex: 1;
Expand Down Expand Up @@ -123,7 +123,7 @@ html.sidebar-visible.js #menu-bar-sticky-container {
text-decoration: none;

position: fixed;
top: 50px; /* Height of menu-bar */
top: var(--menu-bar-height);
bottom: 0;
margin: 0;
max-width: 150px;
Expand Down Expand Up @@ -412,7 +412,7 @@ ul#searchresults span.teaser em {
.theme-popup {
position: absolute;
left: 10px;
top: 50px;
top: var(--menu-bar-height);
z-index: 1000;
border-radius: 4px;
font-size: 0.7em;
Expand Down
1 change: 1 addition & 0 deletions src/theme/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
--sidebar-width: 300px;
--page-padding: 15px;
--content-max-width: 750px;
--menu-bar-height: 50px;
}

/* Themes */
Expand Down

0 comments on commit c9f5426

Please sign in to comment.