Procházet zdrojové kódy

:recycle: removing more grid spacing things

tags/0.9.0
J před 4 roky
rodič
revize
d6bf38c4f4

+ 2
- 2
vue-theme/src/components/card.vue Zobrazit soubor

@@ -6,11 +6,11 @@
6 6
         router-link(v-else-if="!hideType" :to="`/${type}`")
7 7
             p.t-up {{type}}
8 8
 
9
-    article.card--info(:class="{ 'wide': wide }")
9
+    article.card--info.f-col(:class="{ 'wide': wide }")
10 10
         router-link(:to="`/${type}/${content.slug}`")
11 11
             //- set image to thumbnail setting
12 12
             featured-image(:post="content", thumbsize="'standard'")
13
-        .f-col.w-max
13
+        .f-col.w-max(style="height: inherit")
14 14
             router-link(:to="`/${type}/${content.slug}`")
15 15
                 h1.t-up.t-cntr.t-b {{ content.title }}
16 16
             p(v-if="content.end && type == 'event'" class="datetime") {{ dateFrom(content.start, type=='event') }} – {{ dateFrom(content.end, type=='event').split(',')[1] }}

+ 5
- 6
vue-theme/src/pages/index.vue Zobrazit soubor

@@ -107,8 +107,8 @@ export default {
107 107
         section
108 108
             ul
109 109
                 list-style: none
110
-                li
111
-                    margin: 0 0 $ms-0 0
110
+                li.post
111
+                    background-color: white
112 112
                     .featured-or-hero-image img
113 113
                         max-height: $max-card-img-height
114 114
                     p.excerpt
@@ -123,16 +123,13 @@ export default {
123 123
 /* min-width 768px */
124 124
 @media (min-width: $medium)
125 125
     .page--index > article > section
126
-        &.stickies
127
-            .post 
128
-                min-width: 24.25%
129 126
         ul
130 127
             display: grid
131 128
             grid-template-columns: 
132 129
                 49.5% 24.25% 24.25%
133 130
             grid-template-rows: 
134 131
                 48% 48%
135
-            gap: 3% 1%
132
+            gap: 2% 1%
136 133
             li
137 134
                 margin: 0
138 135
                 min-height: 10em
@@ -163,6 +160,8 @@ export default {
163 160
             li .featured-or-hero-image img
164 161
                 max-height: $max-card-img-height
165 162
         &.stickies
163
+            .post 
164
+                min-width: 24.25%
166 165
             ul
167 166
                 &.flipped
168 167
                     grid-template-columns: 

+ 2
- 2
vue-theme/src/pages/list.vue Zobrazit soubor

@@ -14,8 +14,8 @@
14 14
                 v-html="allPages[type].content"
15 15
             )
16 16
 
17
-        .posts(v-if="posts && loaded" :class="{ 'is-grid': grid }")
18
-            section(v-for="(post, i) in posts" :key="post.slug").shadow.post
17
+        ul.posts(v-if="posts && loaded" :class="{ 'is-grid': grid }")
18
+            li(v-for="(post, i) in posts" :key="post.slug").post
19 19
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
20 20
         
21 21
         //- Important: Do NOT remove this! Required for intersection observer

Načítá se…
Zrušit
Uložit