changeset 258:a967788f7ad8

More controls by CSS selector
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 18 Jul 2016 23:16:53 +0859
parents 5d0dbbf9310c
children 85a001a9c7c5
files examples/common/default/default.css s4-funcs.sh
diffstat 2 files changed, 16 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/examples/common/default/default.css	Mon Jul 18 19:52:41 2016 +0859
+++ b/examples/common/default/default.css	Mon Jul 18 23:16:53 2016 +0859
@@ -106,9 +106,19 @@
     height: auto; opacity: 1.0; transition: 1s;
 }
 div.dumptable {max-height: 15em; overflow: auto;}
-table.td4fw td:nth-child(4) {max-width: 8em; white-space: nowrap; overflow: hidden;}
-table.td67fw {max-width: 9%;}
-table.dumpblogs td {white-space: nowrap;}
+table.dumpblogs td,
+div.lcto td {	/* LINK + CTIME + TITLE + OWNER + something... */
+    white-space: nowrap; overflow: hidden;}
+table.dumpblogs td:nth-child(4),
+div.lcto td:nth-child(2) {max-width: 8em;}
+table.dumpblogs td:nth-child(5), /* team */
+table.dumpblogs td:nth-child(6), /* title */
+div.lcto td:nth-child(3),	 /* title */
+div.lcto td:nth-child(4)	 /* owner */
+	 {max-width: 14em;}
+
+
+/*
 table.dumpblogs td:nth-child(4) {
     max-width: 7.6em; overflow: hidden;}
 table.dumpblogs td:nth-child(5),
@@ -116,6 +126,7 @@
     max-width: 12em; overflow: hidden;}
 table.dumpblogs td:nth-child(7) {
     min-width: 5em; overflow: hidden;}
+*/
 
 /********************* icon list *********************/
 div.iconlist {
--- a/s4-funcs.sh	Mon Jul 18 19:52:41 2016 +0859
+++ b/s4-funcs.sh	Mon Jul 18 23:16:53 2016 +0859
@@ -1530,7 +1530,7 @@
 EOF
 
     cat<<-EOF
-	<div class="fold">
+	<div class="fold lcto">
 	`cgi_checkbox mrd yes id="mre"`<label
 	 for="mre">最近書き込んだ場所一覧</label>
 	`DT_VIEW=replyblog dumptable html blog`
@@ -1559,7 +1559,7 @@
       echo "全体の新着記事${cont}傑" | html h2
       echo "$new10"
       cat<<-EOF | html form 'action="?home"'
-	<div class="fold noborder">
+	<div class="fold noborder lcto">
 	`cgi_checkbox readchk yes 'id="read"'`<label
 	 for="read">新着ふくめて全部読んだことにする</label>
 	 <div>`cgi_submit '確定'`</div>

yatex.org