Skip to content

Commit

Permalink
set height of the iframe from outside the iframe by moving the 'viewe…
Browse files Browse the repository at this point in the history
…rs' import to application.scss
  • Loading branch information
aeschylus committed Oct 2, 2017
1 parent c13447b commit b3c3f36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
@import "blacklight_heatmaps/default";
@import "spotlight";
@import "sul_theme";
@import "viewers";
3 changes: 1 addition & 2 deletions app/assets/stylesheets/mirador_bundle.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "font-awesome";
@import "material_icons";
@import "mirador-combined";
@import "viewers";
@import "mirador-combined";
3 changes: 3 additions & 0 deletions app/assets/stylesheets/viewers.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
iframe.mirador-embed-wrapper {
height: 80vh;
}
2 changes: 1 addition & 1 deletion app/views/viewers/_mirador.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
src="<%= mirador_index_path(
manifest_url: document['iiif_manifest_url_ssi']
) %>"
class="mirador-embed-wrapper"
frameborder="0"
marginwidth="0"
marginheight="0"
scrolling="no"
height="900vh"
width="100%"
></iframe>

0 comments on commit b3c3f36

Please sign in to comment.