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

:art: adding shadows back | making up for lost gap in places | fixing single page article margin

tags/0.9.0
J 4 лет назад
Родитель
Сommit
aae5b1b915

+ 3
- 2
vue-theme/src/components/card.vue Просмотреть файл

@@ -75,13 +75,14 @@ export default {
75 75
         -webkit-line-clamp: $card-line-clamp
76 76
         -webkit-box-orient: vertical
77 77
         overflow-y: clip
78
+        margin: $ms--2 0 0 0
78 79
     p
79 80
         &.datetime
80 81
             font-size: $ms--1
81 82
             margin: 0
82 83
         &.excerpt
83 84
             overflow: hidden
84
-            margin: 0
85
+            margin: $ms--2 0 0 0
85 86
             -webkit-line-clamp: $card-line-clamp
86 87
             -webkit-box-orient: vertical
87 88
             display: -webkit-box
@@ -104,5 +105,5 @@ export default {
104 105
             grid-gap: $ms--2
105 106
             /* Featured image link */
106 107
             > a
107
-                max-width: 50%
108
+                width: 100%
108 109
 </style>

+ 1
- 1
vue-theme/src/components/navigation/navigation.vue Просмотреть файл

@@ -111,7 +111,7 @@ nav.main
111 111
             font-weight: 400
112 112
             margin: 0
113 113
         img
114
-            margin: 0 0 calc(-1 * $ms--5) 0
114
+            margin: 0 $ms--2 calc(-1 * $ms--6) 0
115 115
         > ul
116 116
             padding: 0 0 0 $ms-0
117 117
             > li:nth-child(1)

+ 4
- 4
vue-theme/src/pages/index.vue Просмотреть файл

@@ -9,25 +9,25 @@
9 9
         section(v-if="allSticky && Object.keys(allSticky).length").stickies
10 10
             ul(:class="[`sticky-${Object.keys(allSticky).length}`, 'flipped']")
11 11
                 //- if sticky
12
-                li.post(v-for="sticky in allSticky")
12
+                li.post.shadow(v-for="sticky in allSticky")
13 13
                     card(:content="sticky" :type="`${sticky.type}`")
14 14
         
15 15
         //- firstRow: ['episodes', 'exhibitions', 'events', 'shorts', 'posts'], exceprt on episodes only.
16 16
         section
17 17
             ul
18
-                li.post(v-for="type in firstRow")
18
+                li.post.shadow(v-for="type in firstRow")
19 19
                     card(:content="firstPostOfType(type)" :type="type")
20 20
         
21 21
         //- secondRow: 'artists', // This is only ONE post, excerpt on artist
22 22
         section.max
23 23
             ul.w-max
24
-                li.post(v-for="post in randomPosts.filter(p => p.type == secondRow)")
24
+                li.post.shadow(v-for="post in randomPosts.filter(p => p.type == secondRow)")
25 25
                     card(v-if="post" :content="post" :type="`${post.type}`" :wide="true")
26 26
         
27 27
         //- (thirdRow) firstRow.flipped: ['guides', 'objects', 'techniques', 'talks', 'center'], exceprt on guides only
28 28
         section
29 29
             ul.flipped
30
-                li.post(v-for="type in thirdRow")
30
+                li.post.shadow(v-for="type in thirdRow")
31 31
                      .random--wrapper(v-for="post in randomPosts.filter(p => p.type == type)")
32 32
                         card(:content="post" :type="type")
33 33
 </template>

+ 2
- 2
vue-theme/src/pages/list.vue Просмотреть файл

@@ -15,7 +15,7 @@
15 15
             )
16 16
 
17 17
         ul.posts.f-col(v-if="posts && loaded" :class="{ 'is-grid': grid }")
18
-            li(v-for="(post, i) in posts" :key="post.slug").post
18
+            li(v-for="(post, i) in posts" :key="post.slug").post.shadow
19 19
                 card(:content="post" :type="type" :wide="isWide")
20 20
         
21 21
         //- Important: Do NOT remove this! Required for intersection observer
@@ -243,6 +243,7 @@ export default {
243 243
     /* posts not grid list */
244 244
     .posts
245 245
         list-style: none
246
+        grid-gap: $ms--2
246 247
         .post
247 248
             width: 100%
248 249
 
@@ -251,7 +252,6 @@ export default {
251 252
         width: 100%
252 253
         display: grid
253 254
         grid-template-columns: repeat(3, 1fr)
254
-        grid-gap: $ms--2
255 255
         align-items: start
256 256
         /* This is important for how the grid lines up to the page */
257 257
         justify-content: right 

+ 1
- 1
vue-theme/src/pages/single.vue Просмотреть файл

@@ -333,7 +333,7 @@ export default {
333 333
 @media (min-width: $medium)
334 334
     .page--single
335 335
         article
336
-            padding: 0 0.65em 0 0
336
+            margin: 0 0.65em 0 0
337 337
         &.f-col
338 338
             flex-direction: row
339 339
 </style>

Загрузка…
Отмена
Сохранить