Yuki Takei 5 лет назад
Родитель
Сommit
2b5ab59863
2 измененных файлов с 14 добавлено и 5 удалено
  1. 2 2
      src/client/js/components/Sidebar/SidebarNav.jsx
  2. 12 3
      src/client/styles/scss/_sidebar.scss

+ 2 - 2
src/client/js/components/Sidebar/SidebarNav.jsx

@@ -30,7 +30,7 @@ class SidebarNav extends React.Component {
     return (
     return (
       <button
       <button
         type="button"
         type="button"
-        className={`d-block btn btn-primary btn-lg ${isSelected ? 'active' : ''}`}
+        className={`d-block btn btn-primary ${isSelected ? 'active' : ''}`}
         onClick={() => this.itemSelectedHandler(id)}
         onClick={() => this.itemSelectedHandler(id)}
       >
       >
         <i className="material-icons">{iconName}</i>
         <i className="material-icons">{iconName}</i>
@@ -59,7 +59,7 @@ class SidebarNav extends React.Component {
     const { PrimaryItem, SecondaryItem } = this;
     const { PrimaryItem, SecondaryItem } = this;
 
 
     return (
     return (
-      <div className="grw-sidebar-nav d-flex flex-column justify-content-between">
+      <div className="grw-sidebar-nav d-flex flex-column justify-content-between pb-4">
         <div className="grw-sidebar-nav-primary-container">
         <div className="grw-sidebar-nav-primary-container">
           <PrimaryItem id="custom" label="Custom Sidebar" iconName="code" />
           <PrimaryItem id="custom" label="Custom Sidebar" iconName="code" />
           <PrimaryItem id="recent" label="Recent Changes" iconName="update" />
           <PrimaryItem id="recent" label="Recent Changes" iconName="update" />

+ 12 - 3
src/client/styles/scss/_sidebar.scss

@@ -75,6 +75,7 @@
 
 
     .btn {
     .btn {
       width: $grw-sidebar-nav-width;
       width: $grw-sidebar-nav-width;
+      line-height: 1em;
       border-radius: 0;
       border-radius: 0;
 
 
       // icon opacity
       // icon opacity
@@ -93,10 +94,9 @@
 
 
     .grw-sidebar-nav-primary-container {
     .grw-sidebar-nav-primary-container {
       .btn {
       .btn {
-        padding: 0.8rem 1rem;
-        line-height: 1em;
+        padding: 1em;
         i {
         i {
-          font-size: 1.7em;
+          font-size: 2.3em;
         }
         }
 
 
         &.active {
         &.active {
@@ -104,6 +104,15 @@
         }
         }
       }
       }
     }
     }
+
+    .grw-sidebar-nav-secondary-container {
+      .btn {
+        padding: 0.9em;
+        i {
+          font-size: 1.5em;
+        }
+      }
+    }
   }
   }
 }
 }