Procházet zdrojové kódy

:art: tweaking gaps | making img clip larger for big card layout

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

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

@@ -90,10 +90,11 @@ export default {
90 90
     
91 91
 /* for widths larger than 768px */
92 92
 @media (min-width: $medium)
93
-    .card
93
+    .is-grid .card
94 94
         &--info 
95 95
             .featured-or-hero-image img
96 96
                 max-height: $max-card-img-height
97
+    .card
97 98
         .wide
98 99
             padding: 0
99 100
             flex-direction: row

+ 2
- 1
vue-theme/src/pages/index.vue Zobrazit soubor

@@ -114,7 +114,6 @@ export default {
114 114
                     p.excerpt
115 115
                         -webkit-line-clamp: calc($card-line-clamp * 2)
116 116
             &.max 
117
-                margin: 0
118 117
                 > ul
119 118
                     grid-template-columns: 
120 119
                         auto
@@ -157,6 +156,8 @@ export default {
157 156
                 &:nth-of-type(5)
158 157
                     grid-column-start: 3
159 158
         &.max
159
+            /* Need some extra gap on wide pages */
160
+            padding: $ms--2 0
160 161
             li .featured-or-hero-image img
161 162
                 max-height: $max-card-img-height
162 163
         &.stickies

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

@@ -250,7 +250,7 @@ export default {
250 250
     .posts.is-grid
251 251
         width: 100%
252 252
         display: grid
253
-        grid-template-columns: auto auto auto
253
+        grid-template-columns: auto 33.33% auto
254 254
         grid-gap: $ms--2
255 255
         align-items: start
256 256
         /* This is important for how the grid lines up to the page */

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