Yuki Takei 6 лет назад
Родитель
Сommit
5367879d50

+ 49 - 55
src/client/styles/scss/_layout.scss

@@ -19,48 +19,72 @@ h6 {
   font-weight: 500;
 }
 
-.navbar-top-links {
-  height: 30px;
-  border-radius: 40px;
-  .confidential {
-    a {
-      font-weight: bold;
-      cursor: default;
+.logo {
+  .logo-mark {
+    svg {
+      width: $grw-navbar-height;
+      height: $grw-navbar-height;
+      padding: 12px;
+    }
+  }
+  .logo-text {
+    svg {
+      width: 156px;
+      height: $grw-navbar-height;
     }
   }
 }
 
+.confidential {
+  font-weight: bold;
+}
+
 /*
   * header
   */
-header {
-  line-height: 1em;
+.grw-subnav {
+  overflow: unset;
 
-  h1 {
-    @include variable-font-size(28px);
-    line-height: 1.1em;
+  .grw-title-bar {
+    background: $grw-floral-white;
   }
+}
 
-  // affix
-  &.affix {
-    top: 0;
-    left: 0;
-    z-index: 15; // over the .sidebar
-    width: 100%;
-    padding: 2px 20px;
-    box-shadow: 0 0px 2px #999;
+.grw-modal-head {
+  font-size: 1em;
+  border-bottom: 1px solid $grw-line-gray;
+}
+
+.header-wrap {
+  padding-top: 0.5rem;
+  padding-bottom: 0.5rem;
+
+  header {
+    line-height: 1em;
 
     h1 {
-      @include variable-font-size(20px);
+      @include variable-font-size(28px);
+      line-height: 1.1em;
+    }
+
+    // affix
+    &.affix {
+      top: 0;
+      left: 0;
+      z-index: 15; // over the .sidebar
+      width: 100%;
+      padding: 2px 20px;
+      box-shadow: 0 0px 2px #999;
+
+      h1 {
+        @include variable-font-size(20px);
+      }
     }
   }
 }
 
 .main {
-  .header-wrap {
-    min-height: 70px;
-    padding: 15px 15px 0 15px;
-  }
+  margin-top: 1rem;
 }
 
 .layout-control {
@@ -159,33 +183,3 @@ header {
     margin-left: 0.5em;
   }
 }
-
-.logo {
-  .logo-mark {
-    svg {
-      width: $grw-navbar-height;
-      height: $grw-navbar-height;
-      padding: 12px;
-    }
-  }
-  .logo-text {
-    svg {
-      width: 156px;
-      height: $grw-navbar-height;
-    }
-  }
-}
-
-.grw-subnav {
-  overflow: unset;
-
-  .grw-title-bar {
-    background: $grw-floral-white;
-  }
-}
-
-//@each $
-.grw-modal-head {
-  font-size: 1em;
-  border-bottom: 1px solid $grw-line-gray;
-}

+ 1 - 1
src/server/views/layout-crowi/base/layout.html

@@ -37,7 +37,7 @@
   </div><!-- /.grw-subnav -->
 
   <div class="row">
-    <div id="main" class="main mt-4 col-md-9 {% if page %}{{ css.grant(page) }}{% endif %} {% block main_css_class %}{% endblock %}">
+    <div id="main" class="main col-md-9 {% if page %}{{ css.grant(page) }}{% endif %} {% block main_css_class %}{% endblock %}">
       {% block content_main_before %}
       {% endblock %}
 

+ 1 - 1
src/server/views/layout-growi/base/layout.html

@@ -16,7 +16,7 @@
   </div><!-- /.row -->
 
   <div class="row">
-    <div id="main" class="main mt-4 col-md-12 {% if page %}{{ css.grant(page) }}{% endif %} {% block main_css_class %}{% endblock %}">
+    <div id="main" class="main col-md-12 {% if page %}{{ css.grant(page) }}{% endif %} {% block main_css_class %}{% endblock %}">
       {% block content_main_before %}
       {% endblock %}
 

+ 1 - 1
src/server/views/layout-growi/widget/header.html

@@ -37,7 +37,7 @@
             </div>
           </div>
         </li>
-        <li class="mt-2">
+        <li class="mt-1">
           <div class="d-flex align-items-center not-affix">
             <a class="mr-2" href="{{ userPageRoot(author) }}" data-toggle="tooltip" data-placement="bottom" title="{{ author.name }}">
               <img src="{{ author|picture }}" class="picture rounded-circle">