소스 검색

styling edits - padding adjustments

tags/0.9.0
Alej 4 년 전
부모
커밋
8c1ab524ab
1개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 9
    6
      vue-theme/src/components/card.vue

+ 9
- 6
vue-theme/src/components/card.vue 파일 보기

3
     header
3
     header
4
         router-link(v-if="!hideType" :to="`/${type}`")
4
         router-link(v-if="!hideType" :to="`/${type}`")
5
             p.t-up {{type}}
5
             p.t-up {{type}}
6
-    article.card--info(:class="{ 'wide': wide }")
6
+    section.card--info(:class="{ 'wide': wide }")
7
         router-link(:to="`/${type}/${content.slug}`")
7
         router-link(:to="`/${type}/${content.slug}`")
8
             //- set image to thumbnail setting
8
             //- set image to thumbnail setting
9
             featured-image(:post="content")
9
             featured-image(:post="content")
25
 @import '../sss/variables.sss'
25
 @import '../sss/variables.sss'
26
 @import '../sss/theme.sss'
26
 @import '../sss/theme.sss'
27
 .card
27
 .card
28
-    /* padding: $ms--3 */
28
+    padding: $ms-0
29
     overflow: hidden
29
     overflow: hidden
30
     text-overflow: clip
30
     text-overflow: clip
31
     &--info
31
     &--info
32
-        padding: $ms--3
32
+        /* padding: $ms--3 */
33
         justify-content: center
33
         justify-content: center
34
     header
34
     header
35
         a
35
         a
37
     img
37
     img
38
         width: 100%
38
         width: 100%
39
         height: auto
39
         height: auto
40
-    h1, h2, h3, p
40
+        /* padding: $ms-0 */
41
+    h1, h2, h3
41
         padding: $ms--3
42
         padding: $ms--3
42
         margin: 0
43
         margin: 0
43
     h1
44
     h1
44
         font-size: $ms-1
45
         font-size: $ms-1
45
         color: $cia_black
46
         color: $cia_black
47
+
46
     
48
     
47
 /* for widths larger than 768px */
49
 /* for widths larger than 768px */
48
 @media (min-width: $medium)
50
 @media (min-width: $medium)
53
                 width: 100%
55
                 width: 100%
54
         .wide
56
         .wide
55
             display: flex
57
             display: flex
56
-            /* specific condition for wide card, need to sort out paragraph fit*/
58
+            /* padding: $ms-0 0 */
59
+            grid-gap: $ms-0
57
             /* img */
60
             /* img */
58
                 /* width: 100% */
61
                 /* width: 100% */
59
                 /* padding: 0 $ms-0 0 0 */
62
                 /* padding: 0 $ms-0 0 0 */
60
-            /* padding: $ms-0 0 */
63
+            /* specific condition for wide card, need to sort out paragraph fit*/
61
             w-max
64
             w-max
62
             
65
             
63
 </style>
66
 </style>

Loading…
취소
저장