From 2c358b3c772ba3b57471bd4177fb304439908894 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Thu, 18 Sep 2014 11:29:19 +0200 Subject: [PATCH] Changed pagers to use own spinners; improved looks --- public_html/css/core.css | 25 +++- public_html/css/pager.css | 19 +-- public_html/index.html | 18 +-- public_html/js/PresenterManager.js | 16 ++- .../js/Presenters/PagedCollectionPresenter.js | 136 ++++++++++++------ .../js/Presenters/PostListPresenter.js | 46 +++--- .../js/Presenters/UserListPresenter.js | 38 ++--- public_html/templates/pager.tpl | 20 ++- public_html/templates/post-list.tpl | 2 +- public_html/templates/user-list.tpl | 2 +- 10 files changed, 190 insertions(+), 132 deletions(-) diff --git a/public_html/css/core.css b/public_html/css/core.css index 05681fcd..3ad95931 100644 --- a/public_html/css/core.css +++ b/public_html/css/core.css @@ -6,6 +6,7 @@ body { color: #555; font-family: 'Droid Sans', sans-serif; font-size: 17px; + overflow-y: scroll; } h2 { @@ -15,6 +16,7 @@ h2 { #middle { padding: 0 2em; + position: relative; } #content { @@ -55,19 +57,36 @@ hr { #wait-cover { display: flex; - position: fixed; + position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; - background: rgba(255, 255, 255, 0.9); + min-height: 25em; + background: rgba(255, 255, 255, 0.7); z-index: 100; } #wait .spinner { margin: auto; + padding: 1em 2em; + box-shadow: 0 0 1em 1em rgba(255, 255, 255, 0.5); + background: rgba(255, 255, 255, 0.5); + color: #888; } #wait .spinner .fa { - font-size: 40px; + font-size: 42px; +} +#wait p { + font-size: 15px; +} + +.pagination-target .spinner { + display: none; + color: #888; + text-align: center; +} +.pagination-target .spinner .fa { + font-size: 28px; } diff --git a/public_html/css/pager.css b/public_html/css/pager.css index 687e97b0..e96705aa 100644 --- a/public_html/css/pager.css +++ b/public_html/css/pager.css @@ -1,27 +1,16 @@ -.pager { +.page-list { text-align: center; - margin-top: 1em; -} - -.pager ul { list-style-type: none; padding: 0; - margin: 0 auto; + margin: 1em auto 0 auto; display: inline-block; } -.pager li { +.page-list li { display: inline-block; } -.pager li a { +.page-list li a { display: inline-block; padding: 0.4em 1.2em; } - -.pager li:hover a { - background: #efa; -} -.pager li.active a { - background: #f7fbfc; -} diff --git a/public_html/index.html b/public_html/index.html index ba49e6e4..dfec08cc 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -37,20 +37,20 @@
+
+
+
+ +

Loading…

+
+
+
+
-
-
-
- -

Loading

-
-
-
-