Alej 4 år sedan
förälder
incheckning
df587afab3
2 ändrade filer med 10 tillägg och 5 borttagningar
  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 Visa fil

13
         .f-col.w-max
13
         .f-col.w-max
14
             router-link(:to="`/${type}/${content.slug}`")
14
             router-link(:to="`/${type}/${content.slug}`")
15
                 h1.t-up.t-cntr.t-b {{ content.title }}
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
             p {{ content.excerpt }}
18
             p {{ content.excerpt }}
19
 </template>
19
 </template>
20
 
20
 
44
         justify-content: center
44
         justify-content: center
45
     header
45
     header
46
         a
46
         a
47
-            font-size: $ms--1
47
+            font-size: $ms--2
48
             text-decoration: none
48
             text-decoration: none
49
+            margin: 0
49
     img
50
     img
50
         width: 100%
51
         width: 100%
51
         height: auto
52
         height: auto
55
         margin: 0
56
         margin: 0
56
     h1
57
     h1
57
         font-size: $ms-1
58
         font-size: $ms-1
59
+        padding: $ms--3 0
58
         /* color: $cia_black */
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
 /* for widths larger than 768px */
67
 /* for widths larger than 768px */

+ 1
- 1
vue-theme/src/sss/_typography.sss Visa fil

38
     margin-right: 0
38
     margin-right: 0
39
 p 
39
 p 
40
     font-size: $ms-0
40
     font-size: $ms-0
41
-    line-height: 1.4
41
+    line-height: 1.3
42
     /* margin-top: $ms-0 */
42
     /* margin-top: $ms-0 */
43
     margin-bottom: $ms-0
43
     margin-bottom: $ms-0
44
 
44
 

Laddar…
Avbryt
Spara