Sfoglia il codice sorgente

gallery styling

title description box and img position adjustment
tags/0.9.0
Alej 5 anni fa
parent
commit
1ebde34dec
1 ha cambiato i file con 27 aggiunte e 9 eliminazioni
  1. 27
    9
      vue-theme/src/components/gallery.vue

+ 27
- 9
vue-theme/src/components/gallery.vue Vedi File

@@ -1,10 +1,12 @@
1 1
 <template lang="pug">
2 2
 .gallery.active.f-col.center
3 3
     button(@click="hideGallery").hide hide gallery &#x2593
4
-
5 4
     figure.f-col.center
6 5
         img(v-if="Object.values(images).length > 0" :src="Object.values(images)[selected]['large']")
7
-        p Title/Description goes here,&nbsp active: {{ selected }}
6
+        p active: {{ selected }}        
7
+        .titledesc.t-left
8
+            h2 Title goes here: create responsive designs that fit different screen sizes
9
+            p Description goes here: London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. Create responsive designs that fit different screen size. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
8 10
 
9 11
     .controls.f-row
10 12
         button(v-if="selected > 0" @click="prev") &#x25C0prev
@@ -77,22 +79,38 @@ export default {
77 79
         left: 0
78 80
         width: 100%
79 81
         height: 100%
80
-        background-color: rgba(34, 12, 64, 0.8)
82
+        background-color: rgba(200, 0, 0, 0.6)
81 83
         z-index: 1001
82
-        p
83
-            color: #fff
84
-        > *
84
+
85
+        > * /* select for all direct children  */
85 86
             opacity: 100%
86 87
             position: relative
88
+            max-height: 95vh
87 89
             z-index: 1011
88 90
         button.hide
91
+            position: fixed
92
+            top: 0
89 93
             color: $cia_red
90 94
             z-index: 1100
91
-
95
+        figure
96
+            img
97
+                max-width: 90vw
98
+                max-height: 82vh
99
+            .titledesc
100
+                position: fixed
101
+                max-width: 85vw
102
+                bottom: 10px
103
+                background-color: rgba(255, 255, 255, 0.6)
104
+                padding: 5px 
105
+                text-align: left 
106
+                /* column-width: auto */
107
+                h2, p
108
+                    color: $cia_black
92 109
         .controls
93 110
             position: absolute
94 111
             width: 100vw
95 112
             button
96
-                height: 10vw
97
-                padding: 1vw
113
+                background-color: rgba(255, 255, 255, 0.1)
114
+                height: 100vh
115
+                padding: 1vh
98 116
 </style>

Loading…
Annulla
Salva