s4
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 diff
1.1 --- a/examples/common/default/default.css Sun Jul 17 11:25:55 2016 +0859 1.2 +++ b/examples/common/default/default.css Sun Jul 17 13:31:20 2016 +0859 1.3 @@ -82,6 +82,10 @@ 1.4 vertical-align: top; min-width: 30em; height: 3em; 1.5 max-width: 50em; 1.6 } 1.7 +.blog_replies iframe { 1.8 + width: 400px; height: 300px; max-width: 50em; max-height: 20em; 1.9 + padding: 0; border: 0; 1.10 +} 1.11 p.profimg {float: left; max-width: 400px; max-height: 400px; 1.12 overflow: hidden; margin-right: 1em; 1.13 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
2.1 --- a/s4-funcs.sh Sun Jul 17 11:25:55 2016 +0859 2.2 +++ b/s4-funcs.sh Sun Jul 17 13:31:20 2016 +0859 2.3 @@ -439,7 +439,7 @@ 2.4 hreflink() { 2.5 _hrefptn="[-A-Za-z0-9,.:;/~_%#&+?=]*" 2.6 sed -e "s|^href=\($_hrefptn\)|<a &>\1</a>|" \ 2.7 - -e "s|^iframe=\($_hrefptn\)|<iframe width=\"400px\" height=\"300px\" src=\"\1\"></iframe>|" 2.8 + -e "s|^iframe=\($_hrefptn\)|<iframe src=\"\1\"></iframe>|" 2.9 } 2.10 acclog() ( 2.11 # $1=table, $2=rowid