Просмотр исходного кода

gallery styling

title description box and img position adjustment
tags/0.9.0
Alej 5 лет назад
Родитель
Сommit
1ebde34dec
1 измененных файлов: 27 добавлений и 9 удалений
  1. 27
    9
      vue-theme/src/components/gallery.vue

+ 27
- 9
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 &#x2593
4
-
5
     figure.f-col.center
4
     figure.f-col.center
6
         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']")
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
     .controls.f-row
11
     .controls.f-row
10
         button(v-if="selected > 0" @click="prev") &#x25C0prev
12
         button(v-if="selected > 0" @click="prev") &#x25C0prev
77
         left: 0
79
         left: 0
78
         width: 100%
80
         width: 100%
79
         height: 100%
81
         height: 100%
80
-        background-color: rgba(34, 12, 64, 0.8)
82
+        background-color: rgba(200, 0, 0, 0.6)
81
         z-index: 1001
83
         z-index: 1001
82
-        p
83
-            color: #fff
84
-        > *
84
+
85
+        > * /* select for all direct children  */
85
             opacity: 100%
86
             opacity: 100%
86
             position: relative
87
             position: relative
88
+            max-height: 95vh
87
             z-index: 1011
89
             z-index: 1011
88
         button.hide
90
         button.hide
91
+            position: fixed
92
+            top: 0
89
             color: $cia_red
93
             color: $cia_red
90
             z-index: 1100
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
         .controls
109
         .controls
93
             position: absolute
110
             position: absolute
94
             width: 100vw
111
             width: 100vw
95
             button
112
             button
96
-                height: 10vw
97
-                padding: 1vw
113
+                background-color: rgba(255, 255, 255, 0.1)
114
+                height: 100vh
115
+                padding: 1vh
98
 </style>
116
 </style>

Загрузка…
Отмена
Сохранить