From 2a44707128d8a4dab17df2c6ffe017248e90f52f Mon Sep 17 00:00:00 2001 From: chris062689 Date: Mon, 5 Jun 2017 16:25:37 -0400 Subject: [PATCH] Tweaked games listing, disabled pagination. Made tables responsive. Added icon for rating in Compatibility section. --- site/themes/citra-bs-theme/layouts/game/list.html | 9 +++------ site/themes/citra-bs-theme/layouts/game/single.html | 8 ++++---- site/themes/citra-bs-theme/static/css/style.css | 9 +++------ 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/site/themes/citra-bs-theme/layouts/game/list.html b/site/themes/citra-bs-theme/layouts/game/list.html index 67aed47..f9adbd6 100644 --- a/site/themes/citra-bs-theme/layouts/game/list.html +++ b/site/themes/citra-bs-theme/layouts/game/list.html @@ -13,7 +13,7 @@ - +
@@ -23,11 +23,10 @@ - {{ $paginator := .Paginate .Data.Pages 50 }} - {{ range $paginator.Pages }} + {{ range .Data.Pages }} {{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }} - + @@ -35,6 +34,4 @@ {{ end }}
{{ .Params.title }}
{{ $rating.name }}
{{ dateFormat "January 2, 2006" .Params.tested_date }}
- - {{ partial "pagination" . }} {{ end }} diff --git a/site/themes/citra-bs-theme/layouts/game/single.html b/site/themes/citra-bs-theme/layouts/game/single.html index c14c524..c1e12a7 100644 --- a/site/themes/citra-bs-theme/layouts/game/single.html +++ b/site/themes/citra-bs-theme/layouts/game/single.html @@ -33,7 +33,7 @@
- +
@@ -71,7 +71,7 @@

Compatibility

-
Status
+
@@ -85,7 +85,7 @@ - +
Date{{ dateFormat "January 2, 2006" .Params.tested_date }} {{ .Params.tested_by }} {{ .Params.tested_version }}{{ $rating.name }}
{{ $rating.name }}
@@ -96,7 +96,7 @@

Savefiles

- +
diff --git a/site/themes/citra-bs-theme/static/css/style.css b/site/themes/citra-bs-theme/static/css/style.css index b1d73ae..fd80c59 100644 --- a/site/themes/citra-bs-theme/static/css/style.css +++ b/site/themes/citra-bs-theme/static/css/style.css @@ -320,9 +320,6 @@ a:hover, a:focus { /* Used for square boxes color coded */ .square-icon { float: left; margin-top: 2px; margin-right: 4px; width: 16px; height: 16px; background-color: black; } -.compat-0 { background-color: green; } -.compat-1 { } -.compat-2 { } -.compat-3 { } -.compat-4 { } -.compat-5 { } + +/* Games Module */ +.game-icon-list { }
Name