diff options
author | Zero~Informatique | 2020-04-27 15:41:51 +0200 |
---|---|---|
committer | Zero~Informatique | 2020-04-28 03:47:50 +0200 |
commit | 53bbb2b65e405aa93f1689faabce9cfa019e6d8f (patch) | |
tree | 1d4813f0bdf2faa8af6695b649dde7f925ea1f1f /viewer/src | |
parent | 490668d2b3444b51804804c1ea1bb8fd571f525b (diff) | |
download | ldgallery-53bbb2b65e405aa93f1689faabce9cfa019e6d8f.tar.gz |
viewer: moved the global thumbnail CSS class to its component
Diffstat (limited to 'viewer/src')
-rw-r--r-- | viewer/src/assets/scss/global.scss | 12 | ||||
-rw-r--r-- | viewer/src/components/LdGallery.vue | 13 |
2 files changed, 11 insertions, 14 deletions
diff --git a/viewer/src/assets/scss/global.scss b/viewer/src/assets/scss/global.scss index f7f092f..9444548 100644 --- a/viewer/src/assets/scss/global.scss +++ b/viewer/src/assets/scss/global.scss | |||
@@ -96,18 +96,6 @@ button svg + span { | |||
96 | background-color: $scrollbar-color; | 96 | background-color: $scrollbar-color; |
97 | } | 97 | } |
98 | 98 | ||
99 | // === Thumbnail tiles alignment | ||
100 | |||
101 | .thumbnail-tiles { | ||
102 | display: flex; | ||
103 | flex-wrap: wrap; | ||
104 | align-items: center; | ||
105 | justify-content: space-evenly; | ||
106 | & > a { | ||
107 | margin: 2px; | ||
108 | } | ||
109 | } | ||
110 | |||
111 | // === Effect to apply on lazy-image loading | 99 | // === Effect to apply on lazy-image loading |
112 | 100 | ||
113 | img { | 101 | img { |
diff --git a/viewer/src/components/LdGallery.vue b/viewer/src/components/LdGallery.vue index cd4bc28..29c18b9 100644 --- a/viewer/src/components/LdGallery.vue +++ b/viewer/src/components/LdGallery.vue | |||
@@ -42,7 +42,16 @@ export default class LdPicture extends Vue { | |||
42 | </script> | 42 | </script> |
43 | 43 | ||
44 | <style lang="scss"> | 44 | <style lang="scss"> |
45 | .thumbnail-tiles .noresult { | 45 | .thumbnail-tiles { |
46 | margin-top: 40px; | 46 | display: flex; |
47 | flex-wrap: wrap; | ||
48 | align-items: center; | ||
49 | justify-content: space-evenly; | ||
50 | & > a { | ||
51 | margin: 2px; | ||
52 | } | ||
53 | & .noresult { | ||
54 | margin-top: 40px; | ||
55 | } | ||
47 | } | 56 | } |
48 | </style> | 57 | </style> |