Add assets for stl_viewer
This commit is contained in:
parent
7ee6cc7375
commit
79c7535e59
2 changed files with 25 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
||||||
<!-- scripts -->
|
<!-- scripts -->
|
||||||
<script src="{{ "/assets/js/jquery.min.js" | relative_url }}"></script>
|
<script src="{{ "/assets/js/jquery.min.js" | relative_url }}"></script>
|
||||||
<script src="{{ "/assets/js/sidenotes.js" | relative_url }}"></script>
|
<script src="{{ "/assets/js/sidenotes.js" | relative_url }}"></script>
|
||||||
|
{% if page.include_stl_viewer_js -%}
|
||||||
|
<script src="{{ "/assets/js/stlv/stl_viewer.min.js" | relative_url }}"></script>
|
||||||
|
<script src="{{ "/assets/js/stlviewer-datatag.js" | relative_url }}"></script>
|
||||||
|
{% endif -%}
|
||||||
|
|
||||||
<!-- Favicon -->
|
<!-- Favicon -->
|
||||||
{% for file in site.static_files -%}
|
{% for file in site.static_files -%}
|
||||||
|
|
|
@ -12,3 +12,24 @@
|
||||||
@import 'tale/sidenote';
|
@import 'tale/sidenote';
|
||||||
@import 'tale/footnotes';
|
@import 'tale/footnotes';
|
||||||
@import 'tale/navigation';
|
@import 'tale/navigation';
|
||||||
|
|
||||||
|
.stl-viewer {
|
||||||
|
width: 100%;
|
||||||
|
padding-top: 56.25%;
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.svs-custom { padding-top: 0% !important; margin: 0 auto; }
|
||||||
|
.svs-4-3 { padding-top: 75% !important; }
|
||||||
|
.svs-16-9 { padding-top: 56.25% !important; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue