Alej hace 4 años
padre
commit
df587afab3
Se han modificado 2 ficheros con 10 adiciones y 5 borrados
  1. 9
    4
      vue-theme/src/components/card.vue
  2. 1
    1
      vue-theme/src/sss/_typography.sss

+ 9
- 4
vue-theme/src/components/card.vue Ver fichero

@@ -13,8 +13,8 @@
13 13
         .f-col.w-max
14 14
             router-link(:to="`/${type}/${content.slug}`")
15 15
                 h1.t-up.t-cntr.t-b {{ content.title }}
16
-            p(v-if="content.end && type == 'event'") {{ dateFrom(content.start, type=='event') }} – {{ dateFrom(content.end, type=='event').split(',')[1] }}
17
-            p(v-else-if="content.end") {{ dateFrom(content.start, type=='event') }} – {{ dateFrom(content.end, type=='event') }}
16
+            p(v-if="content.end && type == 'event'" class="datetime") {{ dateFrom(content.start, type=='event') }} – {{ dateFrom(content.end, type=='event').split(',')[1] }}
17
+            p(v-else-if="content.end" class="datetime") {{ dateFrom(content.start, type=='event') }} – {{ dateFrom(content.end, type=='event') }}
18 18
             p {{ content.excerpt }}
19 19
 </template>
20 20
 
@@ -44,8 +44,9 @@ export default {
44 44
         justify-content: center
45 45
     header
46 46
         a
47
-            font-size: $ms--1
47
+            font-size: $ms--2
48 48
             text-decoration: none
49
+            margin: 0
49 50
     img
50 51
         width: 100%
51 52
         height: auto
@@ -55,8 +56,12 @@ export default {
55 56
         margin: 0
56 57
     h1
57 58
         font-size: $ms-1
59
+        padding: $ms--3 0
58 60
         /* color: $cia_black */
59
-    
61
+    p.datetime
62
+        font-size: $ms--1
63
+        margin: 0 0 calc($ms-0/2) 0
64
+        line-height: calc($ms-0/2)
60 65
 
61 66
     
62 67
 /* for widths larger than 768px */

+ 1
- 1
vue-theme/src/sss/_typography.sss Ver fichero

@@ -38,7 +38,7 @@ h1, h2, h3, h4, h5, h6 /* common */
38 38
     margin-right: 0
39 39
 p 
40 40
     font-size: $ms-0
41
-    line-height: 1.4
41
+    line-height: 1.3
42 42
     /* margin-top: $ms-0 */
43 43
     margin-bottom: $ms-0
44 44
 

Loading…
Cancelar
Guardar