瀏覽代碼

:art: tweaking more img sizes | cropping hero sizes | adjusting breadcrumb

tags/0.9.0
J 4 年之前
父節點
當前提交
4ccbf9fe0c

+ 2
- 2
vue-theme/src/components/breadcrumb.vue 查看文件

@@ -1,11 +1,11 @@
1 1
 <template lang="pug">
2 2
 //- breadcrumb links at top of page, needs link routing
3
-.breadcrumb.f-row.start.t-up
3
+nav.breadcrumb.f-row.start.t-up
4 4
     router-link(v-if="['event','exhibition'].includes(type)" :to="`/${type}/by-current-and-upcoming`")
5 5
         h5.t-up {{ type }}
6 6
     router-link(v-else :to="`/${type}`")
7 7
         h5.t-up {{ type }}
8
-    h5 &#62;
8
+    h5 
9 9
     router-link(:to="`/${type}/${post.slug}`")
10 10
         h5 {{ post.title }}
11 11
 </template>

+ 1
- 1
vue-theme/src/components/card.vue 查看文件

@@ -51,7 +51,7 @@ export default {
51 51
             .featured-or-hero-image img
52 52
                 object-fit: cover
53 53
                 object-position: 0% 30%
54
-                max-height: 160px
54
+                max-height: calc($max-card-img-height / 2)
55 55
                 overflow-y: clip
56 56
     header a
57 57
         font-size: $ms--2

+ 2
- 0
vue-theme/src/components/credits.vue 查看文件

@@ -14,4 +14,6 @@ export default {
14 14
 
15 15
 <style lang="postcss">
16 16
 .credits
17
+    p
18
+        font-size: 0.7em
17 19
 </style>

+ 5
- 3
vue-theme/src/components/hero.vue 查看文件

@@ -112,7 +112,6 @@ export default {
112 112
             min-width: 100vw
113 113
             height: auto
114 114
             z-index: -1
115
-            top: -30%
116 115
         &--overlay
117 116
             position: absolute
118 117
             height: 100%
@@ -121,8 +120,7 @@ export default {
121 120
             left: 0
122 121
             overflow: clip
123 122
             h2
124
-                /* need better responsive solution for heading size  */
125
-                font-size: 3vw
123
+                font-size: $ms-1
126 124
                 color: $cia_white
127 125
                 text-shadow: 1px 1px $cia_black
128 126
                 max-width: 70vw
@@ -174,4 +172,8 @@ export default {
174 172
         /* min-height: 50vh */
175 173
         .embedded
176 174
             min-height: 50vh
175
+        &--image
176
+            &--overlay
177
+                h2
178
+                    font-size: 4vw
177 179
 </style>

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

@@ -109,6 +109,8 @@ export default {
109 109
                 list-style: none
110 110
                 li
111 111
                     margin: 0 0 $ms-0 0
112
+                    .featured-or-hero-image img
113
+                        max-height: $max-card-img-height
112 114
             &.max 
113 115
                 margin: 0
114 116
                 > ul
@@ -132,11 +134,9 @@ export default {
132 134
             li
133 135
                 margin: 0
134 136
                 min-height: 10em
135
-                /* Big boxes */
136
-                &:nth-of-type(1), &:nth-of-type(3)
137
-                    /* Force crop images */
137
+                &:nth-of-type(2), &:nth-of-type(3), &:nth-of-type(4), &:nth-of-type(5)
138 138
                     .featured-or-hero-image img
139
-                        max-height: 300px
139
+                        max-height: calc($max-card-img-height / 2)
140 140
                 /* n1 episode */
141 141
                 &:nth-of-type(1)
142 142
                     grid-column-start: 1

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

@@ -311,7 +311,7 @@ export default {
311 311
 
312 312
         .related-artists
313 313
             ul li
314
-                margin: 0
314
+                margin: 0 0 $ms-0 0
315 315
                 .card
316 316
                     padding: 0
317 317
 

+ 2
- 0
vue-theme/src/sss/variables.sss 查看文件

@@ -12,6 +12,8 @@ $path: 4px
12 12
 /* Proportion */
13 13
 $base: 0.95em
14 14
 
15
+$max-card-img-height: 260px
16
+
15 17
 $ratio: $minor-third
16 18
 /* $ratio = 1.2 from _ratios.sss */
17 19
 

Loading…
取消
儲存