瀏覽代碼

Image Gallery

added title description area, positioning adjustment
tags/0.9.0
Alej 5 年之前
父節點
當前提交
f4bb50a7e5
共有 1 個檔案被更改,包括 11 行新增10 行删除
  1. 11
    10
      vue-theme/src/components/gallery.vue

+ 11
- 10
vue-theme/src/components/gallery.vue 查看文件

@@ -1,12 +1,12 @@
1 1
 <template lang="pug">
2 2
 .gallery.active.f-col.center
3
-    button(@click="hideGallery").hide hide gallery &#x2593
3
+    button(@click="hideGallery").hide hide gallery &#x25B2
4 4
     figure.f-col.center
5 5
         img(v-if="Object.values(images).length > 0" :src="Object.values(images)[selected]['large']")
6 6
         p active: {{ selected }}        
7 7
         .titledesc.t-left
8 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.
9
+            p Description goes here: London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
10 10
 
11 11
     .controls.f-row
12 12
         button(v-if="selected > 0" @click="prev") &#x25C0prev
@@ -72,14 +72,14 @@ export default {
72 72
 
73 73
 .gallery
74 74
     .wrap
75
-        width: 60vw
75
+        /* width: 60vw */
76 76
     &.active
77 77
         position: fixed
78 78
         top: 0
79 79
         left: 0
80 80
         width: 100%
81 81
         height: 100%
82
-        background-color: rgba(200, 0, 0, 0.6)
82
+        background-color: rgba(255, 0, 0, 0.8)
83 83
         z-index: 1001
84 84
 
85 85
         > * /* select for all direct children  */
@@ -90,20 +90,21 @@ export default {
90 90
         button.hide
91 91
             position: fixed
92 92
             top: 0
93
+            padding: 4px
93 94
             color: $cia_red
94 95
             z-index: 1100
95 96
         figure
96 97
             img
98
+                background-size: contain
97 99
                 max-width: 90vw
98
-                max-height: 82vh
100
+                max-height: 80vh
99 101
             .titledesc
100 102
                 position: fixed
101
-                max-width: 85vw
102
-                bottom: 10px
103
+                max-width: 80vw
104
+                bottom: 1vh
103 105
                 background-color: rgba(255, 255, 255, 0.6)
104
-                padding: 5px 
106
+                padding: 4px 
105 107
                 text-align: left 
106
-                /* column-width: auto */
107 108
                 h2, p
108 109
                     color: $cia_black
109 110
         .controls
@@ -112,5 +113,5 @@ export default {
112 113
             button
113 114
                 background-color: rgba(255, 255, 255, 0.1)
114 115
                 height: 100vh
115
-                padding: 1vh
116
+                padding: 4px
116 117
 </style>

Loading…
取消
儲存