mirror of https://gitlab.com/curben/blog
style: remove unused left nav menu
This commit is contained in:
parent
0c98384e57
commit
01bd1f3943
|
@ -119,5 +119,3 @@ theme_config:
|
|||
brands:
|
||||
GitLab: https://gitlab.com/curben/blog
|
||||
|
||||
# nav position (top, left. top is default)
|
||||
nav: left
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<header id="header" class="header">
|
||||
<%/* Nav menu for desktop */%>
|
||||
<nav id="main-nav" class="main-nav <% if (theme.nav === 'left') { %>nav-left<% } %>">
|
||||
<nav id="main-nav" class="main-nav">
|
||||
<% for (let i in theme.menu) { %>
|
||||
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
||||
<% } %>
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
<div class="archive-container">
|
||||
<%- partial('_partial/header') %>
|
||||
<% if (theme.nav === 'left') { %>
|
||||
<hr class="header-hr header-hr-left"/>
|
||||
<% } else { %>
|
||||
<hr class="header-hr"/>
|
||||
<% } %>
|
||||
<%- partial('_partial/archive', {pagination: config.archive, index: true}) %>
|
||||
</div>
|
||||
|
|
|
@ -826,22 +826,6 @@ blockquote {
|
|||
font-weight: 300;
|
||||
}
|
||||
|
||||
.nav-left {
|
||||
position: absolute;
|
||||
left: -130px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.nav-left .main-nav-link {
|
||||
display: block;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.header-hr-left,
|
||||
.mobile-nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.archive-container,
|
||||
.category-container,
|
||||
.tag-container {
|
||||
|
@ -967,21 +951,6 @@ blockquote {
|
|||
border: 0;
|
||||
}
|
||||
|
||||
.article .nav-left {
|
||||
position: relative;
|
||||
left: auto;
|
||||
text-align: initial;
|
||||
}
|
||||
|
||||
.article .nav-left .main-nav-link {
|
||||
display: inline-block;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.article .header-hr-left {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.article hr {
|
||||
width: 80%;
|
||||
background-image: -webkit-linear-gradient(
|
||||
|
@ -1475,10 +1444,6 @@ pre .keyword {
|
|||
width: 80%;
|
||||
}
|
||||
|
||||
.header-hr-left {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* hide desktop nav */
|
||||
.main-nav {
|
||||
display: none;
|
||||
|
|
Loading…
Reference in New Issue