Explorar el Código

styling adjust - cia theme styling changes

tags/0.9.0
Alej hace 4 años
padre
commit
49373375f9

+ 14
- 5
vue-theme/src/components/card.vue Ver fichero

@@ -5,10 +5,11 @@
5 5
             p.t-up {{type}}
6 6
     article.card--info(:class="{ 'wide': wide }")
7 7
         router-link(:to="`/${type}/${content.slug}`")
8
+            //- set image to thumbnail setting
8 9
             featured-image(:post="content")
9 10
         .f-col.w-max
10 11
             router-link(:to="`/${type}/${content.slug}`")
11
-                h1.t-up.t-cntr {{ content.title }}
12
+                h1.t-up.t-cntr.t-b {{ content.title }}
12 13
             p {{ content.excerpt }}
13 14
 </template>
14 15
 
@@ -24,22 +25,24 @@ export default {
24 25
 @import '../sss/variables.sss'
25 26
 @import '../sss/theme.sss'
26 27
 .card
27
-    padding: $ms--3 $ms--1
28
+    padding: $ms--3 $ms-0 $ms-0
28 29
     overflow: hidden
29 30
     text-overflow: clip
30 31
     &--info
31 32
         justify-content: center
32 33
     header
33 34
         a
34
-            text-decoration: none
35
+            /* text-decoration: none */
35 36
     img
36 37
         width: 100%
37 38
         height: auto
38 39
     h1, h2, h3, p
39
-        padding: 0
40
+        padding: $ms--7 0
40 41
         margin: 0
41 42
     h1
42 43
         font-size: $ms-1
44
+        color: $cia_black
45
+    
43 46
 
44 47
 @media (min-width: $medium)
45 48
     .card
@@ -48,5 +51,11 @@ export default {
48 51
             > a:first-of-type
49 52
                 width: 100%
50 53
         .wide
51
-            display: flex    
54
+            display: flex
55
+            /* specific condition for wide card, need to sort out paragraph fit*/
56
+            /* img */
57
+                /* width: 100% */
58
+                /* padding: 0 $ms-0 0 0 */
59
+            w-max
60
+            
52 61
 </style>

+ 9
- 5
vue-theme/src/components/sidebars/events.vue Ver fichero

@@ -1,19 +1,23 @@
1 1
 <template lang="pug">
2
-h3.t-up upcoming events
3
-ul
2
+//- most recent upcoming events list
3
+h4.t-up upcoming events
4
+ul.t-cap
4 5
     li
5
-        h1 event title
6
+        h3 event title
6 7
         p date
7 8
         p time from : time to
8 9
         p location
10
+        p 
9 11
     li
10
-        h1 event title
12
+        h3 event title
11 13
         p date
12 14
         p time from : time to
13 15
         p location
16
+        p 
14 17
     li
15
-        h1 event title
18
+        h3 event title
16 19
         p date
17 20
         p time from : time to
18 21
         p location
22
+        p 
19 23
 </template>

+ 9
- 5
vue-theme/src/components/sidebars/exhibitions.vue Ver fichero

@@ -1,16 +1,20 @@
1 1
 <template lang="pug">
2
-h3.t-up upcoming exhibitions
3
-ul
2
+//- most recent upcoming events list
3
+h4.t-up upcoming exhibitions
4
+ul.t-cap
4 5
     li
5
-        h1 exhibition title
6
+        h3 exhibition title
6 7
         p date from : date to
7 8
         p location
9
+        p 
8 10
     li
9
-        h1 exhibition title
11
+        h3 exhibition title
10 12
         p date from : date to
11 13
         p location
14
+        p 
12 15
     li
13
-        h1 exhibition title
16
+        h3 exhibition title
14 17
         p date from : date to
15 18
         p location
19
+        p 
16 20
 </template>

+ 5
- 3
vue-theme/src/components/sidebars/sidebar.vue Ver fichero

@@ -97,9 +97,8 @@ export default {
97 97
 @import '../../sss/theme.sss'
98 98
 aside.sidebar
99 99
     position: sticky
100
-    top: 65px
100
+    /* top: 65px */
101 101
     /* background-color: salmon */
102
-    background-color: white
103 102
     /* margin: 0 0 0 $ms-0 */
104 103
     width: 100%
105 104
     > section
@@ -107,10 +106,13 @@ aside.sidebar
107 106
             padding: $ms-0
108 107
             margin: 0 0 $ms-0 0
109 108
         > .post
110
-            background-color: blue
109
+            /* background-color: blue */
111 110
     ul
112 111
         list-style: none      
113 112
 
113
+    .shadow
114
+        background-color: white
115
+
114 116
 /* width larger than $medium  */
115 117
 @media (min-width: $medium)
116 118
     aside.sidebar

+ 20
- 2
vue-theme/src/pages/single.vue Ver fichero

@@ -26,9 +26,10 @@
26 26
                 p start: {{ dateFrom(post.start) }}
27 27
                 p end: {{ dateFrom(post.end) }}
28 28
 
29
+        //- WP main content
29 30
         section.content(v-html="post.content")
30 31
 
31
-        //- related artists section example layout
32
+        //- related artists section for episodes
32 33
         section(v-if="type === 'episodes' && post" :post="post")
33 34
             h2.t-up featured in this episode
34 35
             ul
@@ -216,12 +217,14 @@ export default {
216 217
 @import '../sss/variables.sss'
217 218
 @import '../sss/theme.sss'
218 219
 .page--single
220
+    /* background-color: $cia_white2 */
219 221
     article
222
+        background-color: white
220 223
         padding: $ms-1
221 224
         h1
222 225
             color: $cia_black
223 226
             /* font-weight: 800 */
224
-            padding: $ms--3 0
227
+            /* padding: $ms--3 0 */
225 228
         > ul
226 229
             /* grid-gap: $ms-0 */
227 230
             list-style: none
@@ -241,6 +244,21 @@ export default {
241 244
             left: 0px 
242 245
             width: 100% 
243 246
             height: 100%
247
+        
248
+        wp-block-embed is-type-video
249
+            position: relative
250
+            width: 100% 
251
+            padding-bottom: 56.25% 
252
+
253
+        * hr.wp-block-separator
254
+            border: 0.5px
255
+            margin: $ms-2
256
+
257
+        hr.is-style-default
258
+            height: 2px
259
+
260
+        hr.is-style-wide
261
+            height: 3px
244 262
 
245 263
         breadcrumb
246 264
             h5

Loading…
Cancelar
Guardar