changeset 251:9e8e43ed3c11

Set geometry of iframe inside of blog_replies by property instead of attr.
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 17 Jul 2016 13:31:20 +0859
parents b60ed19405c2
children 75dfaceac01f
files examples/common/default/default.css s4-funcs.sh
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/examples/common/default/default.css	Sun Jul 17 11:25:55 2016 +0859
+++ b/examples/common/default/default.css	Sun Jul 17 13:31:20 2016 +0859
@@ -82,6 +82,10 @@
     vertical-align: top; min-width: 30em; height: 3em;
     max-width: 50em;
 }
+.blog_replies iframe {
+    width: 400px; height: 300px; max-width: 50em; max-height: 20em;
+    padding: 0; border: 0;
+}
 p.profimg {float: left; max-width: 400px; max-height: 400px;
 	   overflow: hidden; margin-right: 1em;
 	   padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
--- a/s4-funcs.sh	Sun Jul 17 11:25:55 2016 +0859
+++ b/s4-funcs.sh	Sun Jul 17 13:31:20 2016 +0859
@@ -439,7 +439,7 @@
 hreflink() {
   _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=]*"
   sed -e "s|^href=\($_hrefptn\)|<a &>\1</a>|" \
-      -e "s|^iframe=\($_hrefptn\)|<iframe width=\"400px\" height=\"300px\" src=\"\1\"></iframe>|"
+      -e "s|^iframe=\($_hrefptn\)|<iframe src=\"\1\"></iframe>|"
 }
 acclog() (
   # $1=table, $2=rowid

yatex.org