소스 검색

extract .nav-list

axolotle 3 년 전
부모
커밋
38d3737ef6
3개의 변경된 파일12개의 추가작업 그리고 23개의 파일을 삭제
  1. 0 1
      src/assets/scss/app.scss
  2. 0 21
      src/assets/scss/classes/_nav-list.scss
  3. 12 1
      src/components/nodes/NodeViewChildList.vue

+ 0 - 1
src/assets/scss/app.scss

@@ -6,7 +6,6 @@
 
 @import 'base/bootstrap-overrides';
 @import 'classes/misc';
-@import 'classes/nav-list';
 
 @import 'fonts/noto-sans';
 @import 'fonts/redaction';

+ 0 - 21
src/assets/scss/classes/_nav-list.scss

@@ -1,21 +0,0 @@
-.nav-list {
-  font-family: $font-family-base;
-
-  ul {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    height: 26px;
-    padding: 0;
-    margin: 0;
-  }
-
-  li {
-    list-style: none;
-    line-height: 0;
-
-    &:not(:last-child) {
-      margin-right: 20px;
-    }
-  }
-}

+ 12 - 1
src/components/nodes/NodeViewChildList.vue

@@ -1,5 +1,5 @@
 <template>
-  <nav class="node-view-child-list nav-list" :class="{ 'smartphone': smartphone }">
+  <nav class="node-view-child-list" :class="{ 'smartphone': smartphone }">
     <ul>
       <li
         v-for="child in children" :key="child.id"
@@ -52,8 +52,19 @@ export default {
 
 <style lang="scss" scoped>
 .node-view-child-list {
+  ul {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    height: 26px;
+    padding: 0;
+    margin: 0;
+    list-style: none;
+  }
+
   &-item {
     margin-right: 20px;
+    line-height: 0;
   }
 
   &.smartphone {