aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static
diff options
context:
space:
mode:
authorMatt Burke <burkemw3@gmail.com>2018-10-13 14:30:34 -0400
committerMatt Burke <burkemw3@gmail.com>2018-10-15 23:59:39 -0400
commitcefbe6a87fee244840e088955aa787a7ad3abb3e (patch)
treeb1d04f886afcf6914a89866ffb4c1ecf5493d834 /app/Resources/static
parentba69c04c2708cd91f58da74e27184479ac0fe616 (diff)
downloadwallabag-cefbe6a87fee244840e088955aa787a7ad3abb3e.tar.gz
wallabag-cefbe6a87fee244840e088955aa787a7ad3abb3e.tar.zst
wallabag-cefbe6a87fee244840e088955aa787a7ad3abb3e.zip
Add placeholder image to card-based gallery entries page for #3651
I referenced https://css-tricks.com/using-svg/ for using the SVG icon. The icon has a black foreground and white background, which doesn't look very good as a placeholder. So, using the background-image style to show the svg and the inversion filter to make it white on gray. With the image always present, there isn't much difference between the with and without image preview templates, so I merged them. Tested on Chrome, Firefox, and Safari on OSX.
Diffstat (limited to 'app/Resources/static')
-rw-r--r--app/Resources/static/themes/material/css/cards.scss6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/css/cards.scss b/app/Resources/static/themes/material/css/cards.scss
index 8f7f8f7b..9dcbb8bb 100644
--- a/app/Resources/static/themes/material/css/cards.scss
+++ b/app/Resources/static/themes/material/css/cards.scss
@@ -123,6 +123,12 @@ main {
123 display: block; 123 display: block;
124 } 124 }
125 125
126 .card-image .placeholder {
127 background-color: #111;
128 filter: invert(100%);
129 -webkit-filter: invert(100%);
130 }
131
126 &.sw { 132 &.sw {
127 max-width: 370px; 133 max-width: 370px;
128 margin-left: auto; 134 margin-left: auto;