From 838c0c6ecfa68a01abeb4d0e67842656aec9ac60 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 5 Jul 2022 14:00:41 -0400 Subject: Remove dead code --- themes/lv2/static/css/main.css | 25 ------------------------ themes/lv2/static/css/slideshow.css | 38 ------------------------------------- themes/lv2/static/js/slideshow.js | 25 ------------------------ themes/lv2/templates/page.html | 1 - 4 files changed, 89 deletions(-) delete mode 100644 themes/lv2/static/css/slideshow.css delete mode 100644 themes/lv2/static/js/slideshow.js (limited to 'themes/lv2') diff --git a/themes/lv2/static/css/main.css b/themes/lv2/static/css/main.css index 29f867d..457917f 100644 --- a/themes/lv2/static/css/main.css +++ b/themes/lv2/static/css/main.css @@ -230,31 +230,6 @@ header a#page-title { border-radius: 6px; } -#mainlist { - text-align: center; - margin: 0; - padding: 0; -} - -#mainlist li { - background-color: #222; - color: #FFF; - font-weight: bold; - background: linear-gradient(to bottom, #444 0%, #000 100%); - border: solid 2px #444; - border-radius: 6px; - display: inline-block; - list-style-type: none; - margin: 0.25em; - padding: 0.5em; - white-space: nowrap; - vertical-align: middle; -} - -#mainlist li a, #mainlist li a:visited { - color: #FFF; -} - /* Pygments Style */ .hll { background-color: #222222 } diff --git a/themes/lv2/static/css/slideshow.css b/themes/lv2/static/css/slideshow.css deleted file mode 100644 index 6234fbb..0000000 --- a/themes/lv2/static/css/slideshow.css +++ /dev/null @@ -1,38 +0,0 @@ -#slideshow { - width: 16em; - height: 16em; - float: right; - margin: 0 0 2em 2em; - right: 0; - top: 0; - line-height: 16em; - transform-style: preserve-3d; - vertical-align: middle; -} - -#slideshow img { - border-radius: 6px; - height: auto; - left: 0; - margin: auto auto auto auto; - max-height: 100%; - max-width: 100%; - opacity: 0; - position: absolute; - right: 0; - text-align: center; - transition-duration: 1s; - transition-property: opacity; - vertical-align: middle; - width: auto; -} - -#slideshow .fadein { - opacity: 1.0; - transform-origin: bottom left; -} - -#slideshow .fadeout { - opacity: 0.0; - transform-origin: bottom left; -} diff --git a/themes/lv2/static/js/slideshow.js b/themes/lv2/static/js/slideshow.js deleted file mode 100644 index e50991c..0000000 --- a/themes/lv2/static/js/slideshow.js +++ /dev/null @@ -1,25 +0,0 @@ -function startSlideShow() { - var slideshow = document.getElementById("slideshow"), - imgs = slideshow.getElementsByTagName("img"), - n = imgs.length, - m = Math.floor((Math.random() * n)); - - // Start transition of initial image - imgs[m].className = "fadein"; - m = (m + 1) % n; - - function tick() { - // Fade out the previous image, and fade in the next - var prev = (m + n - 1) % n, - next = (m + 1) % n; - - imgs[prev].className = ""; - imgs[m].className = "fadeout"; - imgs[next].className = "fadein"; - - m = (m + 1) % n; - } - window.setInterval(tick, 4000); -} - -startSlideShow(); diff --git a/themes/lv2/templates/page.html b/themes/lv2/templates/page.html index 8a3b94d..b12f067 100644 --- a/themes/lv2/templates/page.html +++ b/themes/lv2/templates/page.html @@ -1,7 +1,6 @@ {% extends "base.html" %} {% block head %} {{ super() }} - {% endblock %} {% block title %} {% if page.title %} -- cgit v1.2.1