From 48083b09ebec60b81503f4aade310ab6c2aae9a7 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Aug 2018 10:51:26 +0000 Subject: [PATCH] years --- camp/static/css/main.css | 64 +++++++++++++++++++++++++++++++++- content/templates/results.html | 4 +-- 2 files changed, 64 insertions(+), 4 deletions(-) diff --git a/camp/static/css/main.css b/camp/static/css/main.css index b6fcaba..9384da4 100644 --- a/camp/static/css/main.css +++ b/camp/static/css/main.css @@ -145,7 +145,69 @@ ul.clearing-thumbs li { .pagination button:hover, .pagination span.current { - background: #1779ba !important; } + background: #1779ba !important; +} + +.years { + text-align: center; + margin-left: 16px; + margin-right: 16px; + padding-bottom: 20px; +} +.years::before, .years::after { + display: table; + content: ' '; +} +.years::after { + clear: both; +} +.years li { + margin-right: 0.0625rem; + border-radius: 0; + font-size: 0.875rem; + display: inline-block; +} +.years a, +.years button { + display: block; + padding: 0.1875rem 0.625rem; + border-radius: 0; + color: #0a0a0a; } + +.years a:hover, +.years button:hover { + background: #e6e6e6; } + +.years .current { + padding: 0.1875rem 0.625rem; + background: #1779ba; + color: #fefefe; + cursor: default; } +.years .disabled { + padding: 0.1875rem 0.625rem; + color: #cacaca; + cursor: not-allowed; } +.years .disabled:hover { + background: transparent; } +.years .ellipsis::after { + padding: 0.1875rem 0.625rem; + content: '\2026'; + color: #0a0a0a; +} + +.years { +} + +.years a, .years button { + color: #ffffff !important; +} + +.years a:hover, +.years button:hover, +.years span.current +{ + background: #1779ba !important; +} .admin-menu { position: absolute; diff --git a/content/templates/results.html b/content/templates/results.html index 545f478..a8f9eeb 100644 --- a/content/templates/results.html +++ b/content/templates/results.html @@ -47,8 +47,7 @@
{% if years %}
-
-
    +
      {% for y in years %} {% if year == y %}
    • {{y}}
    • @@ -57,7 +56,6 @@ {% endif %} {% endfor %}
    -
{% endif %} {% if content.has_other_pages %}