Skip to content

Commit

Permalink
modified header
Browse files Browse the repository at this point in the history
  • Loading branch information
somrat committed May 27, 2020
1 parent 289e44e commit a7bdb89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
31 changes: 11 additions & 20 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,17 @@ a:focus, a:hover {
background: #1f2532;
}

.top-bar {
position: sticky;
top: 0;
width: 100%;
color: #fff;
transition: all 0.2s ease-out 0s;
padding: 10px 0;
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
z-index: 10;
}

.navigation .navbar-nav > li.active a {
color: #fff;
}
Expand Down Expand Up @@ -1781,24 +1792,4 @@ a:focus, a:hover {

.page-404 h1 {
font-size: 200px;
}

/*# sourceMappingURL=maps/style.css.map */
.top-bar {
position: fixed;
top: 0;
width: 100%;
background: #fff;
color: #fff;
transition: all 0.2s ease-out 0s;
padding: 15px 0;
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1);
border-bottom: 1px solid #dedede;
z-index: 10;
}

.top-bar.animated-header {
padding: 20px 0;
background: #fff;
box-shadow: none;
}
3 changes: 1 addition & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{ "<!-- Fixed Navigation -->" | safeHTML }}
<!-- <section class="top-bar animated-header"> emprunt depuis timer theme -->
{{ if .Site.Params.menufixed }}
<section class="header navigation top-bar animated-header">
<section class="header navigation top-bar">
{{ else }}
<section class="header navigation">
{{ end }}
Expand Down

0 comments on commit a7bdb89

Please sign in to comment.