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
         router-link(v-else-if="!hideType" :to="`/${type}`")
6
         router-link(v-else-if="!hideType" :to="`/${type}`")
7
             p.t-up {{type}}
7
             p.t-up {{type}}
8
 
8
 
9
-    article.card--info(:class="{ 'wide': wide }")
9
+    article.card--info.f-col(:class="{ 'wide': wide }")
10
         router-link(:to="`/${type}/${content.slug}`")
10
         router-link(:to="`/${type}/${content.slug}`")
11
             //- set image to thumbnail setting
11
             //- set image to thumbnail setting
12
             featured-image(:post="content", thumbsize="'standard'")
12
             featured-image(:post="content", thumbsize="'standard'")
13
-        .f-col.w-max
13
+        .f-col.w-max(style="height: inherit")
14
             router-link(:to="`/${type}/${content.slug}`")
14
             router-link(:to="`/${type}/${content.slug}`")
15
                 h1.t-up.t-cntr.t-b {{ content.title }}
15
                 h1.t-up.t-cntr.t-b {{ content.title }}
16
             p(v-if="content.end && type == 'event'" class="datetime") {{ dateFrom(content.start, type=='event') }} – {{ dateFrom(content.end, type=='event').split(',')[1] }}
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
         section
107
         section
108
             ul
108
             ul
109
                 list-style: none
109
                 list-style: none
110
-                li
111
-                    margin: 0 0 $ms-0 0
110
+                li.post
111
+                    background-color: white
112
                     .featured-or-hero-image img
112
                     .featured-or-hero-image img
113
                         max-height: $max-card-img-height
113
                         max-height: $max-card-img-height
114
                     p.excerpt
114
                     p.excerpt
123
 /* min-width 768px */
123
 /* min-width 768px */
124
 @media (min-width: $medium)
124
 @media (min-width: $medium)
125
     .page--index > article > section
125
     .page--index > article > section
126
-        &.stickies
127
-            .post 
128
-                min-width: 24.25%
129
         ul
126
         ul
130
             display: grid
127
             display: grid
131
             grid-template-columns: 
128
             grid-template-columns: 
132
                 49.5% 24.25% 24.25%
129
                 49.5% 24.25% 24.25%
133
             grid-template-rows: 
130
             grid-template-rows: 
134
                 48% 48%
131
                 48% 48%
135
-            gap: 3% 1%
132
+            gap: 2% 1%
136
             li
133
             li
137
                 margin: 0
134
                 margin: 0
138
                 min-height: 10em
135
                 min-height: 10em
163
             li .featured-or-hero-image img
160
             li .featured-or-hero-image img
164
                 max-height: $max-card-img-height
161
                 max-height: $max-card-img-height
165
         &.stickies
162
         &.stickies
163
+            .post 
164
+                min-width: 24.25%
166
             ul
165
             ul
167
                 &.flipped
166
                 &.flipped
168
                     grid-template-columns: 
167
                     grid-template-columns: 

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

14
                 v-html="allPages[type].content"
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
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
19
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
20
         
20
         
21
         //- Important: Do NOT remove this! Required for intersection observer
21
         //- Important: Do NOT remove this! Required for intersection observer

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