Преглед изворни кода

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
 <template lang="pug">
1
 <template lang="pug">
2
 .gallery.active.f-col.center
2
 .gallery.active.f-col.center
3
-    button(@click="hideGallery").hide hide gallery &#x2593
3
+    button(@click="hideGallery").hide hide gallery &#x25B2
4
     figure.f-col.center
4
     figure.f-col.center
5
         img(v-if="Object.values(images).length > 0" :src="Object.values(images)[selected]['large']")
5
         img(v-if="Object.values(images).length > 0" :src="Object.values(images)[selected]['large']")
6
         p active: {{ selected }}        
6
         p active: {{ selected }}        
7
         .titledesc.t-left
7
         .titledesc.t-left
8
             h2 Title goes here: create responsive designs that fit different screen sizes
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
     .controls.f-row
11
     .controls.f-row
12
         button(v-if="selected > 0" @click="prev") &#x25C0prev
12
         button(v-if="selected > 0" @click="prev") &#x25C0prev
72
 
72
 
73
 .gallery
73
 .gallery
74
     .wrap
74
     .wrap
75
-        width: 60vw
75
+        /* width: 60vw */
76
     &.active
76
     &.active
77
         position: fixed
77
         position: fixed
78
         top: 0
78
         top: 0
79
         left: 0
79
         left: 0
80
         width: 100%
80
         width: 100%
81
         height: 100%
81
         height: 100%
82
-        background-color: rgba(200, 0, 0, 0.6)
82
+        background-color: rgba(255, 0, 0, 0.8)
83
         z-index: 1001
83
         z-index: 1001
84
 
84
 
85
         > * /* select for all direct children  */
85
         > * /* select for all direct children  */
90
         button.hide
90
         button.hide
91
             position: fixed
91
             position: fixed
92
             top: 0
92
             top: 0
93
+            padding: 4px
93
             color: $cia_red
94
             color: $cia_red
94
             z-index: 1100
95
             z-index: 1100
95
         figure
96
         figure
96
             img
97
             img
98
+                background-size: contain
97
                 max-width: 90vw
99
                 max-width: 90vw
98
-                max-height: 82vh
100
+                max-height: 80vh
99
             .titledesc
101
             .titledesc
100
                 position: fixed
102
                 position: fixed
101
-                max-width: 85vw
102
-                bottom: 10px
103
+                max-width: 80vw
104
+                bottom: 1vh
103
                 background-color: rgba(255, 255, 255, 0.6)
105
                 background-color: rgba(255, 255, 255, 0.6)
104
-                padding: 5px 
106
+                padding: 4px 
105
                 text-align: left 
107
                 text-align: left 
106
-                /* column-width: auto */
107
                 h2, p
108
                 h2, p
108
                     color: $cia_black
109
                     color: $cia_black
109
         .controls
110
         .controls
112
             button
113
             button
113
                 background-color: rgba(255, 255, 255, 0.1)
114
                 background-color: rgba(255, 255, 255, 0.1)
114
                 height: 100vh
115
                 height: 100vh
115
-                padding: 1vh
116
+                padding: 4px
116
 </style>
117
 </style>

Loading…
Откажи
Сачувај