From f1c75add80a87ed4682aadb77e6b572d2bf7da41 Mon Sep 17 00:00:00 2001 From: Michael Heppler Date: Tue, 15 Jan 2019 12:03:27 -0500 Subject: [PATCH] Cleaned up responsive layout of dynamic custom hmpg [ref #5445] --- .../branding/custom-homepage-dynamic.html | 83 ++++++++++++++++--- 1 file changed, 70 insertions(+), 13 deletions(-) diff --git a/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/custom-homepage-dynamic.html b/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/custom-homepage-dynamic.html index b457fb31dfe..5a1521f5241 100644 --- a/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/custom-homepage-dynamic.html +++ b/doc/sphinx-guides/source/_static/installation/files/var/www/dataverse/branding/custom-homepage-dynamic.html @@ -22,19 +22,21 @@ div.search-widget {padding-bottom: 2em;} @media (min-width: 768px) { - #dataversesBySubject {-webkit-column-count: 3; -moz-column-count: 3; column-count: 3;} + #dataversesBySubject {-webkit-column-count: 3; -moz-column-count: 3; column-count: 3; overflow: hidden; -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; break-inside: avoid-column;} - #journals {-webkit-column-count: 1; -moz-column-count: 1; column-count: 1;} - #researchers {-webkit-column-count: 2; -moz-column-count: 2; column-count: 2;} + #journals {-webkit-column-count: 1; -moz-column-count: 1; column-count: 1; overflow: hidden; -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; break-inside: avoid-column;} + #researchers {-webkit-column-count: 2; -moz-column-count: 2; column-count: 2; overflow: hidden; -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; break-inside: avoid-column;} } #browseBySubject p.browse-subjects {display:inline-block; width:100%; padding:0 2px;} #browseBySubject p.browse-subjects a {color: #C55B28;} #browseBySubject p.browse-subjects a:focus, #browseBySubject p.browse-subjects a:hover {color: #9F3502;} - div.hmpg-recent-col div.col-xs-2.hmpg-recent-thumb {width: 48px !important;padding: 0 !important;} + div.hmpg-recent-col div.col-xs-2.hmpg-recent-thumb {width: 48px !important;height:48px;padding: 0 !important;} div.hmpg-recent-col div.hmpg-recent-thumb img {max-height:48px;max-width:48px;} div.hmpg-recent-col div.hmpg-recent-thumb span {font-size:38px;} + div.hmpg-recent-col div.no-class {border-bottom:1px solid #DDD;margin-bottom:12px;} + div.hmpg-activity-block .row .lite-header {/* margin-left:1em; */} @@ -49,7 +51,7 @@
Organize datasets and gather metrics in your own virtual archive.
-

A dataverse is a virtual archive. A dataverse can contain dataverses, datasets, files and metadata.

+

A dataverse is a virtual archive, consisting of dataverses, datasets, files and metadata.

Create my own dataverse @@ -97,7 +99,7 @@
-
Datasets from Journal dataverses
+
Datasets from journal dataverses

@@ -134,19 +136,73 @@
Activity
-
+ + +
+ + +
+ +
+
Datasets
+
All Activity
+
Past 30 Days
+
+
+
All
+
5,640,188
+
66,177
+
+
+
Deposited
+
5,000,000
+
60,177
+
+
+
Harvested
+
640,188
+
6,177
+
+ +
+ + + +
+ +
+
Files
+
All Activity
+
Past 30 Days
+
+
+
All
+
5,640,188
+
66,177
+
+
+
Deposited
+
5,000,000
+
60,177
+
+
+
Harvested
+
640,188
+
6,177
+
+ +
+ +
@@ -183,11 +239,12 @@ jData.data.items.forEach(function(item){ var options = { year: 'numeric', month: 'short', day: 'numeric' }; var date = new Date(item.published_at).toLocaleString('en-US', options); - resultHtml += "
"; + resultHtml += ""; + resultHtml += "
"; + //
}); document.getElementById(elm).innerHTML = resultHtml; });