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

made a class so that the scss will only be used in user page.

白石誠 5 лет назад
Родитель
Сommit
8372f7181b
2 измененных файлов с 8 добавлено и 6 удалено
  1. 7 5
      src/client/styles/scss/_user.scss
  2. 1 1
      src/server/views/layout-growi/user_page.html

+ 7 - 5
src/client/styles/scss/_user.scss

@@ -44,10 +44,12 @@ $easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
   }
 }
 
-.grw-page-list-m {
-  svg {
-    width: 35px;
-    height: 35px;
-    margin-bottom: 6px;
+.user-page-footer {
+  .grw-page-list-m {
+    svg {
+      width: 35px;
+      height: 35px;
+      margin-bottom: 6px;
+    }
   }
 }

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

@@ -12,7 +12,7 @@
   {% include 'widget/comments.html' %}
 
   {% if page %}
-    <div class="container-lg">
+    <div class="container-lg user-page-footer">
 
       <div class="grw-page-list-m mt-5 pb-5 d-edit-none">
         <h2 class="grw-user-page-header border-bottom pb-2 mb-3" id="bookmarks-list">