Skip to content

Commit

Permalink
Improve responsive widths of dataset pg btns for sm, xs layouts [ref #…
Browse files Browse the repository at this point in the history
  • Loading branch information
mheppler committed Mar 16, 2020
1 parent b1d7f7a commit 139e040
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/dataset-citation.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<div class="row">
<!-- TO-DO, REVIEW USE OF vcenter CLASS IN CITATION VS THUMBNAIL -->
<!-- TO-DO, REVIEW INCLUSION OF THUMBNAIL IN WIDGET VIEW -->
<div class="col-xs-2 col-sm-3 col-md-2 vcenter title-preview-icon-block">
<img src="#{DatasetPage.thumbnailString}" style="height:114px;" jsf:rendered="#{!empty DatasetPage.thumbnailString}" alt="#{DatasetPage.datasetVersionUI.title.value}"/>
<div class="col-xs-2 col-sm-3 col-md-2 center-block preview-icon-block">
<img src="#{DatasetPage.thumbnailString}" class="img-responsive" style="min-height:114px;/*TO-DO, FIX SM THUMBNAIL HACK*/" jsf:rendered="#{!empty DatasetPage.thumbnailString}" alt="#{DatasetPage.datasetVersionUI.title.value}"/>
<span class="icon-dataset" jsf:rendered="#{empty DatasetPage.thumbnailString}"/>
</div>
<div class="col-xs-10 col-sm-9 col-md-10 citation">
Expand Down
26 changes: 13 additions & 13 deletions src/main/webapp/dataset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<!-- START: NEW RESPONSIVE ABOVE FOLD BLOCK -->
<div class="row">

<div class="col-xs-12 col-sm-9">
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-9">
<!-- CITATION BLOCK -->
<ui:fragment rendered="#{!empty DatasetPage.displayCitation}">
<ui:include src="dataset-citation.xhtml">
Expand All @@ -121,7 +121,7 @@
<!-- END: CITATION BLOCK -->
</div>

<div class="col-xs-12 col-sm-3 pull-right">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-3 pull-right">
<!-- ActionButtonBlock -->
<div id="actionButtonBlock" jsf:rendered="#{!widgetWrapper.widgetView}">

Expand Down Expand Up @@ -429,7 +429,7 @@
<!-- END: ActionButtonBlock -->
</div>

<div class="col-xs-12 col-sm-3 pull-right" jsf:rendered="#{true}">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-3 pull-right" jsf:rendered="#{true}">
<!-- Metrics -->
<div id="metrics-block" style="border:0;" jsf:rendered="#{!(settingsWrapper.rsyncDownload or DatasetPage.workingVersion.deaccessioned)}">
<div id="metrics-headingXXX">
Expand Down Expand Up @@ -484,23 +484,23 @@
</div>

<!-- RESPONSIVE ORDER HACK BOOTSTRAP 3 https://stackoverflow.com/a/24834574 -->
<div id="dataset-colorder-block" class="hidden-xs col-sm-9"><!--Hack--></div>
<div id="dataset-colorder-block" class="visible-md-block visible-lg-block col-md-8 col-lg-9"><!--Hack--></div>
<!-- END: RESPONSIVE ORDER HACK BOOTSTRAP 3 -->

<!-- DEACCESSION REASON -->
<div class="col-xs-12 col-sm-9 margin-bottom" jsf:rendered="#{DatasetPage.workingVersion.deaccessioned}">
<div id="deaccession-reason-block" class="col-xs-12 bg-danger">
<h5 class="margin-top-half">#{bundle['dataset.deaccession.reason']}</h5>
<p>#{DatasetPage.workingVersion.versionNote}</p>
<ui:fragment rendered="#{!empty DatasetPage.workingVersion.archiveNote}">
<p>#{bundle['dataset.beAccessedAt']} <a href="#{DatasetPage.workingVersion.archiveNote}" target="_blank">#{DatasetPage.workingVersion.archiveNote}</a></p>
</ui:fragment>
</div>
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-9 margin-bottom" jsf:rendered="#{DatasetPage.workingVersion.deaccessioned}">
<div id="deaccession-reason-block" class="col-xs-12 bg-danger">
<h5 class="margin-top-half">#{bundle['dataset.deaccession.reason']}</h5>
<p>#{DatasetPage.workingVersion.versionNote}</p>
<ui:fragment rendered="#{!empty DatasetPage.workingVersion.archiveNote}">
<p>#{bundle['dataset.beAccessedAt']} <a href="#{DatasetPage.workingVersion.archiveNote}" target="_blank">#{DatasetPage.workingVersion.archiveNote}</a></p>
</ui:fragment>
</div>
</div>
<!-- END: DEACCESSION REASON -->

<!-- BEGIN: DATASET SUMMARY -->
<div id="dataset-summary-metadata" class="col-xs-12 col-sm-9 metadata-container margin-bottom"
<div id="dataset-summary-metadata" class="col-xs-12 col-sm-12 col-md-8 col-lg-9 metadata-container margin-bottom"
jsf:rendered="#{!widgetWrapper.widgetView and !DatasetPage.workingVersion.deaccessioned and
(!empty DatasetPage.datasetVersionUI.descriptionDisplay
or !empty DatasetPage.datasetVersionUI.keywordDisplay
Expand Down
18 changes: 9 additions & 9 deletions src/main/webapp/resources/css/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,6 @@ span.search-term-match {font-weight: bold;}
[id$='resultsTable'] div.card-preview-icon-block span[class^='icon'],
[id$='resultsTable'] div.card-preview-icon-block span[class^='glyphicon'] {font-size:2.8em;}


/*MOVED*/
/*TO-DO, REVIEW USE OF vcenter CLASS IN CITATION VS THUMBNAIL*/
div.citation-block div.vcenter.title-preview-icon-block {/*display:inline-block; vertical-align:middle; float:none; padding:0;*/}
div.citation-block div.title-preview-icon-block {/*width:48px;*/ font-size:275%; line-height:1.1; color:#428BCA;}
div.citation-block div.title-preview-icon-block img {margin:6px 0;}
div.citation-block div.title-preview-icon-block span[class^='icon'] {font-size:2.8em;}

form[id$='facetType'] > div.clearfix {margin-bottom:4px;}
form[id$='facetType'] > div.clearfix:last-child {margin-bottom:0;}
form[id$='facetType'] > div.clearfix .facetTypeChBox {display:block; float:left;}
Expand Down Expand Up @@ -624,7 +616,7 @@ div[id$='roleDisplay'] span.label, div[id$='roleDetails'] span.label {display:in

/* RESPONSIVE ORDER HACK BOOTSTRAP 3 https://stackoverflow.com/a/24834574 */
#dataset-colorder-block {height: 50px;}
@media(min-width:768px){
@media(min-width:992px){
#dataset-summary-metadata, #deaccession-reason-block {margin-top: -50px;}
}

Expand All @@ -638,6 +630,14 @@ div.alert-info.bg-citation, div.alert-danger.bg-danger {/*padding-top:4px; paddi
.citation-select {/*-- display:inline-block; --*/}
.citation, .citation-download, .citation-standards {/*padding:.5em;*/}
.citation span.glyphicon-question-sign {margin-left:.5em; margin-bottom:2px; vertical-align: middle;}

/*MOVED*/
/*TO-DO, REVIEW USE OF vcenter CLASS IN CITATION VS THUMBNAIL*/
/*div.citation-block div.vcenter.title-preview-icon-block {display:inline-block; vertical-align:middle; float:none; padding:0;}*/
div.citation-block div.preview-icon-block {/*width:48px;*/}
div.citation-block div.preview-icon-block img {/*margin:6px 0;*/}
div.citation-block div.preview-icon-block span[class^='icon'] {font-size:7.5em; line-height:1.1; color:#428BCA;}

/*COMMENTED OUT FOR THUMBNAILS*/
/*TO-DO, REVIEW USE OF vcenter CLASS IN CITATION VS THUMBNAIL*/
.citation-block .vcenter {/*display: inline-block; vertical-align: middle; float: none;*/}
Expand Down

0 comments on commit 139e040

Please sign in to comment.