Преглед изворни кода

:art: fixing wrong css rules on index again

tags/0.9.0
J пре 4 година
родитељ
комит
da1bdc8838
1 измењених фајлова са 51 додато и 51 уклоњено
  1. 51
    51
      vue-theme/src/pages/index.vue

+ 51
- 51
vue-theme/src/pages/index.vue Прегледај датотеку

@@ -158,56 +158,56 @@ export default {
158 158
                             grid-row-start: 2
159 159
                         &:nth-of-type(5)
160 160
                             grid-column-start: 3
161
-            &.max
162
-                /* Need some extra gap on wide pages */
163
-                padding: $ms--2 0
164
-                li .featured-or-hero-image img
165
-                    max-height: $max-card-img-height
166
-            &.stickies
167
-                .post 
168
-                    min-width: 24.25%
169
-                ul
170
-                    &.flipped
171
-                        grid-template-columns: 
172
-                            24.25% 24.25% 49.5% 
173
-                        li
174
-                            &:nth-of-type(1)
175
-                                grid-row-end: 2
176
-                            &:nth-of-type(3)
177
-                                grid-column-start: 1
178
-                                grid-row-start: 2
179
-                            &:nth-of-type(5)
180
-                                grid-row-start: 1
181
-                                grid-row-end: 3
182
-                    &[class^="sticky-"]
183
-                        display: flex
184
-                    &.sticky-1
185
-                        > li .card--info 
161
+                &.max
162
+                    /* Need some extra gap on wide pages */
163
+                    padding: $ms--2 0
164
+                    li .featured-or-hero-image img
165
+                        max-height: $max-card-img-height
166
+                &.stickies
167
+                    .post 
168
+                        min-width: 24.25%
169
+                    ul
170
+                        &.flipped
171
+                            grid-template-columns: 
172
+                                24.25% 24.25% 49.5% 
173
+                            li
174
+                                &:nth-of-type(1)
175
+                                    grid-row-end: 2
176
+                                &:nth-of-type(3)
177
+                                    grid-column-start: 1
178
+                                    grid-row-start: 2
179
+                                &:nth-of-type(5)
180
+                                    grid-row-start: 1
181
+                                    grid-row-end: 3
182
+                        &[class^="sticky-"]
186 183
                             display: flex
187
-                            > a:first-of-type
188
-                                width: 100%
189
-                    &.sticky-5
190
-                        grid-template-columns: 
191
-                            24.25% 24.25% 49.5%
192
-                        grid-template-rows: 
193
-                            repeat(2, 1fr)
194
-                        gap: 3% 1%
195
-                        > li
196
-                            &:nth-of-type(1)
197
-                                grid-row-end: 2
198
-                            &:nth-of-type(2)
199
-                                grid-column-start: 2
200
-                                grid-row-start: 1
201
-                                grid-row-end: 2
202
-                            &:nth-of-type(3)
203
-                                grid-column-start: 1
204
-                                grid-row-start: 2
205
-                                margin: 0 0 8% 0
206
-                            &:nth-of-type(4)
207
-                                grid-column-start: 2
208
-                                grid-row-start: 2
209
-                                margin: 0 0 8% 0
210
-                            &:nth-of-type(5)
211
-                                grid-column-start: 3
212
-                                margin: 0 0 4% 0
184
+                        &.sticky-1
185
+                            > li .card--info 
186
+                                display: flex
187
+                                > a:first-of-type
188
+                                    width: 100%
189
+                        &.sticky-5
190
+                            grid-template-columns: 
191
+                                24.25% 24.25% 49.5%
192
+                            grid-template-rows: 
193
+                                repeat(2, 1fr)
194
+                            gap: 3% 1%
195
+                            > li
196
+                                &:nth-of-type(1)
197
+                                    grid-row-end: 2
198
+                                &:nth-of-type(2)
199
+                                    grid-column-start: 2
200
+                                    grid-row-start: 1
201
+                                    grid-row-end: 2
202
+                                &:nth-of-type(3)
203
+                                    grid-column-start: 1
204
+                                    grid-row-start: 2
205
+                                    margin: 0 0 8% 0
206
+                                &:nth-of-type(4)
207
+                                    grid-column-start: 2
208
+                                    grid-row-start: 2
209
+                                    margin: 0 0 8% 0
210
+                                &:nth-of-type(5)
211
+                                    grid-column-start: 3
212
+                                    margin: 0 0 4% 0
213 213
 </style>

Loading…
Откажи
Сачувај