Sotaro KARASAWA 10 лет назад
Родитель
Сommit
f1fe12701b
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 2
      lib/views/page.html
  2. 1 0
      resource/css/_page.scss

+ 2 - 2
lib/views/page.html

@@ -165,11 +165,11 @@
 
 
         //data-spy="affix" data-offset-top="80"
         //data-spy="affix" data-offset-top="80"
         var headerHeight = $('#page-header').outerHeight(true);
         var headerHeight = $('#page-header').outerHeight(true);
-        $('.header-wrap').css({height: headerHeight + 'px'});
+        $('.header-wrap').css({height: (headerHeight + 16) + 'px'});
         $('#page-header').affix({
         $('#page-header').affix({
           offset: {
           offset: {
             top: function() {
             top: function() {
-              return headerHeight + 74; // (54 header + 20 padding-top)
+              return headerHeight + 86; // (54 header + 16 header padding-top + 16 content padding-top)
             }
             }
           }
           }
         });
         });

+ 1 - 0
resource/css/_page.scss

@@ -65,6 +65,7 @@
       h1 {
       h1 {
         font-size: 28px;
         font-size: 28px;
         margin-top: 0;
         margin-top: 0;
+        margin-bottom: 0;
 
 
         a:last-child {
         a:last-child {
           color: #D1E2E4;
           color: #D1E2E4;