Просмотр исходного кода

Change the name of the variable.
Changed the variable designation part of the icon.

oshikishintaro 5 лет назад
Родитель
Сommit
59685cc6af

+ 0 - 1
src/client/js/components/Icons/AttachmentIcon.jsx

@@ -4,7 +4,6 @@ const Attachment = () => (
   <svg
   <svg
     xmlns="http://www.w3.org/2000/svg"
     xmlns="http://www.w3.org/2000/svg"
     viewBox="0 0 14 14"
     viewBox="0 0 14 14"
-    className="table-top-icon"
 
 
   >
   >
     <rect width="14" height="14" fillOpacity="0" />
     <rect width="14" height="14" fillOpacity="0" />

+ 0 - 1
src/client/js/components/Icons/PageListIcon.jsx

@@ -4,7 +4,6 @@ const PageList = () => (
   <svg
   <svg
     xmlns="http://www.w3.org/2000/svg"
     xmlns="http://www.w3.org/2000/svg"
     viewBox="0 0 14 14"
     viewBox="0 0 14 14"
-    className="table-top-icon"
 
 
   >
   >
     <rect width="14" height="14" fillOpacity="0" />
     <rect width="14" height="14" fillOpacity="0" />

+ 0 - 1
src/client/js/components/Icons/RecentChangesIcon.jsx

@@ -4,7 +4,6 @@ const RecentChanges = () => (
   <svg
   <svg
     xmlns="http://www.w3.org/2000/svg"
     xmlns="http://www.w3.org/2000/svg"
     viewBox="0 0 14 14"
     viewBox="0 0 14 14"
-    className="table-top-icon"
 
 
   >
   >
     <rect width="14" height="14" fillOpacity="0" />
     <rect width="14" height="14" fillOpacity="0" />

+ 0 - 1
src/client/js/components/Icons/TimeLineIcon.jsx

@@ -4,7 +4,6 @@ const TimeLine = () => (
   <svg
   <svg
     xmlns="http://www.w3.org/2000/svg"
     xmlns="http://www.w3.org/2000/svg"
     viewBox="0 0 14 14"
     viewBox="0 0 14 14"
-    className="table-top-icon"
 
 
   >
   >
     <rect width="14" height="14" fillOpacity="0" />
     <rect width="14" height="14" fillOpacity="0" />

+ 3 - 3
src/client/js/components/TopOfTableContents.jsx

@@ -58,15 +58,15 @@ const TopOfTableContents = (props) => {
             <PageListIcon />
             <PageListIcon />
           </button>
           </button>
 
 
-          <button type="button" className="bg-transparent border-0" onClick={() => openPageAccessoriesModal('timeLine')}>
+          <button type="button" className="grw-table-top-icons bg-transparent border-0" onClick={() => openPageAccessoriesModal('timeLine')}>
             <TimeLineIcon />
             <TimeLineIcon />
           </button>
           </button>
 
 
-          <button type="button" className="bg-transparent border-0" onClick={() => openPageAccessoriesModal('recentChanges')}>
+          <button type="button" className="grw-table-top-icons bg-transparent border-0" onClick={() => openPageAccessoriesModal('recentChanges')}>
             <RecentChangesIcon />
             <RecentChangesIcon />
           </button>
           </button>
 
 
-          <button type="button" className="bg-transparent border-0 " onClick={() => openPageAccessoriesModal('attachment')}>
+          <button type="button" className="grw-table-top-icons bg-transparent border-0 " onClick={() => openPageAccessoriesModal('attachment')}>
             <AttachmentIcon />
             <AttachmentIcon />
           </button>
           </button>
 
 

+ 6 - 4
src/client/styles/scss/_layout.scss

@@ -20,9 +20,11 @@ body {
 }
 }
 
 
 .grw-page-accessories-modal {
 .grw-page-accessories-modal {
-  .table-top-icon {
-    width: 20px;
-    height: 20px;
+  .grw-table-top-icons {
+    .svg.g {
+      width: 20px;
+      height: 20px;
+    }
   }
   }
 }
 }
 
 
@@ -152,7 +154,7 @@ body {
 .top-of-table-contents {
 .top-of-table-contents {
   flex-wrap: wrap;
   flex-wrap: wrap;
 
 
-  .table-top-icon {
+  .grw-table-top-icons {
     width: 16px;
     width: 16px;
     height: 16px;
     height: 16px;
   }
   }

+ 1 - 1
src/client/styles/scss/_layout_growi.scss

@@ -24,7 +24,7 @@
   }
   }
 
 
   .grw-page-accessories-modal {
   .grw-page-accessories-modal {
-    .table-top-icon {
+    .grw-table-top-icons {
       margin-right: 5px;
       margin-right: 5px;
     }
     }
   }
   }

+ 2 - 2
src/client/styles/scss/theme/_apply-colors.scss

@@ -251,7 +251,7 @@ pre:not(.hljs):not(.CodeMirror-line) {
   .icon-button-box {
   .icon-button-box {
     border-color: $bordercolor-nav-tabs;
     border-color: $bordercolor-nav-tabs;
   }
   }
-  .table-top-icon {
+  .grw-table-top-icons {
     fill: $color-link;
     fill: $color-link;
   }
   }
   .btn.btn-seen-user-list {
   .btn.btn-seen-user-list {
@@ -273,7 +273,7 @@ pre:not(.hljs):not(.CodeMirror-line) {
   .nav-title {
   .nav-title {
     color: $color-link;
     color: $color-link;
   }
   }
-  .table-top-icon {
+  .grw-table-top-icons {
     fill: $color-link;
     fill: $color-link;
   }
   }
   .active {
   .active {