]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
picwall template
authorArthurHoaro <arthur@hoa.ro>
Sat, 15 Oct 2016 15:33:18 +0000 (17:33 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sat, 5 Nov 2016 13:29:53 +0000 (14:29 +0100)
tpl/default/css/shaarli.css
tpl/default/picwall.html [new file with mode: 0644]

index 85b8e7a190f7d829bf34ab53a57277753a8a5d4c..e73375d4e1b41915b4c41495a194a246ff5c0b1f 100644 (file)
@@ -1003,3 +1003,68 @@ pre {
     text-decoration: none;
 }
 
+/**
+ * Picture wall CSS
+ */
+#picwall_container {
+    color: #fff;
+    background-color: #000;
+    clear: both;
+}
+
+.picwall_pictureframe {
+    background-color: #000;
+    z-index: 5;
+    position: relative;
+    display: table-cell;
+    vertical-align: middle;
+    width: 90px;
+    height: 90px;
+    overflow: hidden;
+    text-align: center;
+    float: left;
+}
+
+.b-lazy {
+    -webkit-transition: opacity 500ms ease-in-out;
+    -moz-transition: opacity 500ms ease-in-out;
+    -o-transition: opacity 500ms ease-in-out;
+    transition: opacity 500ms ease-in-out;
+    opacity: 0;
+}
+.b-lazy.b-loaded {
+    opacity: 1;
+}
+
+.picwall_pictureframe img {
+    max-width: 100%;
+    height: auto;
+    color: transparent;
+} /* Adapt the width of the image */
+
+.picwall_pictureframe a {
+    text-decoration: none;
+}
+
+/* CSS to show title when hovering an image - no javascript required. */
+.picwall_pictureframe span.info {
+    display: none;
+}
+
+.picwall_pictureframe:hover span.info {
+    display: block;
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 90px;
+    font-weight: bold;
+    font-size: 8pt;
+    color: #fff;
+    text-align: left;
+    background-color: transparent;
+    background-color: rgba(0, 0, 0, 0.4);
+    /* FF3+, Saf3+, Opera 10.10+, Chrome, IE9 */
+    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#66000000, endColorstr=#66000000);
+    /* IE6\96IE9 */
+    text-shadow: 2px 2px 1px #000000;
+}
diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html
new file mode 100644 (file)
index 0000000..686f506
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+<head>
+  {include="includes"}
+  <script src="inc/blazy-1.3.1.min.js#"></script>
+</head>
+<body>
+{include="page.header"}
+
+<div class="pure-g">
+  <div class="pure-u-lg-1-6 pure-u-1-8"></div>
+  <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-visitor">
+    {$countPics=count($linksToDisplay)}
+    <h2>{'Picture Wall'|t} - {$countPics} {'pics'|t}</h2>
+
+    <div id="plugin_zone_start_picwall" class="plugin_zone">
+      {loop="$plugin_start_zone"}
+        {$value}
+      {/loop}
+    </div>
+
+    <div id="picwall_container">
+      {loop="$linksToDisplay"}
+        <div class="picwall_pictureframe">
+          {$value.thumbnail}<a href="{$value.real_url}"><span class="info">{$value.title}</span></a>
+          {loop="$value.picwall_plugin"}
+            {$value}
+          {/loop}
+        </div>
+      {/loop}
+    </div>
+
+    <div id="plugin_zone_end_picwall" class="plugin_zone">
+      {loop="$plugin_end_zone"}
+        {$value}
+      {/loop}
+    </div>
+  </div>
+</div>
+
+{include="page.footer"}
+<script>
+  window.onload = function() {
+    var bLazy = new Blazy();
+  }
+</script>
+</body>
+</html>
+