瀏覽代碼

:art: shrinking titles for small cards on index

tags/0.9.0
J 4 年之前
父節點
當前提交
0c926f37fd
共有 2 個檔案被更改,包括 8 行新增12 行删除
  1. 5
    8
      vue-theme/src/pages/index.vue
  2. 3
    4
      vue-theme/src/pages/single.vue

+ 5
- 8
vue-theme/src/pages/index.vue 查看文件

@@ -7,7 +7,7 @@
7 7
     article.w-max
8 8
         //- sticky section
9 9
         section(v-if="allSticky && Object.keys(allSticky).length").stickies
10
-            ul.flipped(:class="[`sticky-${Object.keys(allSticky).length}`]")
10
+            ul.flipped(:class="[`sticky-${Object.keys(allSticky).length}`, 'f-row']")
11 11
                 //- if sticky
12 12
                 li.post(v-for="sticky in allSticky")
13 13
                     card(:content="sticky" :type="`${sticky.type}`")
@@ -141,12 +141,16 @@ export default {
141 141
                 &:nth-of-type(2), &:nth-of-type(3)
142 142
                     grid-column-start: 2
143 143
                     grid-row-start: 1
144
+                    .card article.card--info > h1
145
+                        font-size: $ms-0
144 146
                 &:nth-of-type(3)
145 147
                     grid-column-start: 3
146 148
                 /* n4 artists, n5 posts */
147 149
                 &:nth-of-type(4), &:nth-of-type(5)
148 150
                     grid-column-start: 2
149 151
                     grid-row-start: 2
152
+                    .card article.card--info > h1
153
+                        font-size: $ms-0
150 154
                 &:nth-of-type(5)
151 155
                     grid-column-start: 3
152 156
 
@@ -165,17 +169,10 @@ export default {
165 169
                             grid-row-start: 1
166 170
                             grid-row-end: 3
167 171
                 &.sticky-1
168
-                    display: flex
169 172
                     > li .card--info 
170 173
                         display: flex
171 174
                         > a:first-of-type
172 175
                             width: 100%
173
-                &.sticky-2
174
-                    display: flex
175
-                &.sticky-3
176
-                    display: flex
177
-                &.sticky-4
178
-                    display: flex
179 176
                 &.sticky-5
180 177
                     grid-template-columns: 
181 178
                         24.25% 24.25% 49.5%

+ 3
- 4
vue-theme/src/pages/single.vue 查看文件

@@ -272,16 +272,15 @@ export default {
272 272
                 color: aqua
273 273
                 backdrop-filter: brightness(0.5)
274 274
 
275
-        /* iframe container 16:9 */
276
-        .iframe-container 
275
+        [class^="iframe-container"]
277 276
             position: relative
278 277
             width: 100% 
278
+        /* iframe container 16:9 */
279
+        .iframe-container 
279 280
             padding-bottom: 56.25% 
280 281
 
281 282
         /* iframe container portrait */
282 283
         .iframe-container-v
283
-            position: relative
284
-            width: 100%
285 284
             height: 100%
286 285
             padding-bottom: 125%
287 286
             

Loading…
取消
儲存