mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
web: change header position from fixed to static
Mainly because anchors (`<a name=...>`) need to be offsetted to account for the fixed header, and it ain't worth the hassle.
This commit is contained in:
parent
4a4502967e
commit
76bdc74670
2 changed files with 2 additions and 12 deletions
|
@ -18,12 +18,7 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
.main-header {
|
.main-header {
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
background: @white;
|
background: @white;
|
||||||
z-index: 1;
|
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
@ -68,7 +63,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
padding-top: @mainHeaderHeight + @packagesHeaderHeight + 10;
|
padding-top: 10px;
|
||||||
|
|
||||||
.entry {
|
.entry {
|
||||||
.transition(height .3s);
|
.transition(height .3s);
|
||||||
|
|
|
@ -7233,12 +7233,7 @@ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiac
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.body .main-header {
|
.body .main-header {
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
.body .main-header .navbar {
|
.body .main-header .navbar {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
@ -7274,7 +7269,7 @@ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiac
|
||||||
line-height: 1.7em;
|
line-height: 1.7em;
|
||||||
}
|
}
|
||||||
.body .content {
|
.body .content {
|
||||||
padding-top: 120px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
.body .content .entry {
|
.body .content .entry {
|
||||||
-webkit-transition: height 0.3s;
|
-webkit-transition: height 0.3s;
|
||||||
|
|
Loading…
Reference in a new issue