]> _ Git - fluidbook-v3.git/commitdiff
wait #3693 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 9 Jun 2020 19:22:18 +0000 (19:22 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 9 Jun 2020 19:22:18 +0000 (19:22 +0000)
js/420-features-details.js [new file with mode: 0644]
less/420-features-details.less

diff --git a/js/420-features-details.js b/js/420-features-details.js
new file mode 100644 (file)
index 0000000..f5bb709
--- /dev/null
@@ -0,0 +1,14 @@
+registerLoader(load_features_details, true);\r
+\r
+function load_features_details() {\r
+    $(window).on('fluidbookresize', resizeFeatureDetails);\r
+    resizeFeatureDetails();\r
+}\r
+\r
+function resizeFeatureDetails() {\r
+    $('article iframe').each(function () {\r
+        $(this).css('height', null);\r
+        var r = parseInt($(this).attr('width')) / parseInt($(this).attr('height'));\r
+        $(this).css('height', $(this).outerWidth() / r);\r
+    });\r
+}
\ No newline at end of file
index 42edb4c187ed023296e84f5186df7d3e5e9e3127..8818516a8a485cb6849c19397f2178b066adfedf 100644 (file)
                        height: auto;\r
                        vertical-align: top;\r
                }\r
+               iframe{\r
+                       width: 50%;\r
+                       vertical-align: top;\r
+               }\r
 \r
                @media @m1280 {\r
                        &.ileft {\r