Skip to content

Commit 731a181

Browse files
author
Dhruva Shaw
committed
new styles
1 parent d217fb4 commit 731a181

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

_projects/mcba.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,22 @@ bibliography: papers.bib
5454
toc: true
5555

5656
_styles: >
57-
object {
58-
width:100%;
59-
max-height:100%;
57+
.container {
58+
position: relative;
59+
overflow: hidden;
60+
width: 100%;
61+
padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
62+
}
63+
64+
/* Then style the iframe to fit in the container div with full height and width */
65+
.responsive-iframe {
66+
position: absolute;
67+
top: 0;
68+
left: 0;
69+
bottom: 0;
70+
right: 0;
71+
width: 100%;
72+
height: 100%;
6073
}
6174
---
6275

@@ -127,5 +140,7 @@ _Future Directions_:
127140

128141
## Protocols
129142
Here is the protocol(steps) to reproduce our work with ease.
130-
<iframe src="https://www.protocols.io/widgets/doi?uri=dx.doi.org/10.17504/protocols.io.n92ldr869g5b/v1" style="width: 520px; height: 300px; border: 1px solid transparent;"></iframe>
131-
<object data='{{ "/assets/pdf/protocol_mcba.pdf" | relative_url }}' type='application/pdf'/>
143+
<iframe src="https://www.protocols.io/widgets/doi?uri=dx.doi.org/10.17504/protocols.io.n92ldr869g5b/v1" style="width: 100%; height: 300px; border: 1px solid transparent;"></iframe>
144+
<div class="container">
145+
<object data='{{ "/assets/pdf/protocol_mcba.pdf" | relative_url }}' class="responsive-iframe" type='application/pdf'/>
146+
</div>

0 commit comments

Comments
 (0)