view examples/common/default/default.css @ 286:1c4f13f0813e

Add newer article flag representing by time string decoration.
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 15 Aug 2016 11:15:20 +0859
parents 1b9d45b823b8
children 422270e94adc
line wrap: on
line source

/*
 * Default CSS definitions
 */
body {background: #eff; margin: 2px; padding: 6px;}
h2, h3, hr {clear: both;}
*.warn {color: red;}
div.topmenu {
    margin: 0; padding: 0; width: 100%; height: 2em;
}
div.topmenu ul {width: 100%; position: fixed; margin: 0;
		margin: 0 auto;}
div.topmenu ul li {
    float: left; width: 18%;
    background: rgba(68,255,102,0.8); border: #3e5 2px groove; margin: 0;
    text-align: center; font-size: 80%; list-style: none;
    box-shadow: #242 2px 3px 5px;
    text-shadow: #fff 0px 0px 10px;
}
div.topmenu ul li:hover {background: #8fa;}
div.topmenu ul a {text-decoration: none;}

ldiv.topmenu + h1 {clear: both; margin-top: 3em;}

td {padding-left: 0.5ex; padding-right: 0.5ex;}
table.td2r td:nth-child(2) {text-align: right;}
table.td3r td:nth-child(3) {text-align: right;}

table.form, table.b, table.b tr, table.b td, table.b th {
  border: 1px solid black; border-collapse: collapse;
}
table.b, table.bloghead {
    border-radius: 1ex; box-shadow: rgb(250,222,222) 1px 2px 3px;
}
td.warn {background: #fcc;}
input[type="checkbox"][name="rm"]:checked ~ table {background: red;}
input[type="checkbox"][name="rm"] ~ span {display: none;}
input[type="checkbox"][name="rm"]:checked ~ span {display: inline;}

input[type="radio"][value="replace"] + input.replace[type="file"] {
    visibility: hidden;}
input[type="radio"][value="replace"]:checked +  input.replace[type="file"] {
    visibility: visible;
}
label.admin span {border-bottom: 1px solid blue;}
label.admin:after {content: "(ADMIN)"; color: red; text-decoration: none;}

/* keep/edit/rm action selector */
input.action ~ input:not(.action), input.action ~ textarea {
    display: none;
}
input.action[value="edit"]:checked ~ input {display: inline;}
input.action[value="edit"]:checked ~ textarea {display: block;}
input.action[value="edit"]:checked ~ span {display: none;}
input.action[value="rm"]:checked ~ span {background: red;}
label.confirm {display: none;}
input.action[value="rm"]:checked ~ label.confirm {
    display: inline;
}

form.replyblog {xxx-margin-bottom: 40%;}
div.blogcomment {
    position: fixed; bottom: 0; left: 0;
    z-index: 2; background-color: rgba(250,222,222,0.6);
}
/* div.blogcomment textarea:focus {background: yellow;
    position: fixed; top: 0; bottom: auto; } Need to consider narrow display */
div.blogcomment * {opacity: 1.0;}
table.bloghead, .bloghead tr, .bloghead td {
    border: 1px solid black; border-collapse: collapse;
    min-width: 30em;
}
table.bloghead tr:nth-child(2) {
    font-size: 150%; background: yellow; text-align: center;
}
table.bloghead {margin-bottom: 1em;}

table.blog_replies, .blog_replies tr, .blog_replies td {
    border: 1px solid black; border-collapse: collapse;
    white-space: pre-wrap;
}
table.blog_replies+p.update_link {margin-top: 0; margin-bottom: 14em;}
.blog_replies td:nth-child(2) {
    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;
}
.blog_replies span.new {	/* New Article from last visit */
    background: white; color: red;
}
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
	  }
p.profimg img {max-width: 400px;}
div.home+* {clear: both;}

div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
div.noborder {border: 0px; margin: 0;}
div.fold > div {
    xxdisplay: none; max-height: 80%; overflow: auto;
    height: 0px; opacity: 0; padding: 0 1ex;
}
div.fold input[type="checkbox"]:checked ~ div,
div.fold input[type="radio"]:checked ~ div {
    display: block; background: #fadede;
    height: auto; opacity: 1.0; transition: 1s;
}

/* fold2!! */
div.foldtabs {
    position: relative; max-height: 5em; margin-top: 1em;
    border-top: 1px solid black; padding-top: 1em;
}
div.foldtabs > div {
    position: absolute; top: 2.5em; opacity: 0.0; background: pink;
    margin: 2px;
}
div.foldtabs input[type="radio"] {display: none;}
div.foldtabs input[type="radio"]:checked + label + div {
    display: block; opacity: 1.0; transition: 0.2s; width: 100%;
    margin: 0; z-index: 2;
}
div.foldtabs > label {
    border: 1px outset #ddd; background: #ddd; xbackground: pink;
    border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;
    margin: 0;
    padding: 0.2ex 0.5em; height: 3em;
}
div.foldtabs > input:active + label {background: white;}
div.foldtabs input:checked + label {
    background: pink; border: pink 1px solid; border-bottom-width: 6px;
}
div.foldtabs input:checked + label:last-of-type {border-width: 1px;}
input[type="checkbox"] + label + input[type="submit"] {display: none;}
input[type="checkbox"]:checked + label + input[type="submit"] {
    display: inline;}

div.dumptable {max-height: 15em; overflow: auto;}
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),
table.dumpblogs td:nth-child(6) {
    max-width: 12em; overflow: hidden;}
table.dumpblogs td:nth-child(7) {
    min-width: 5em; overflow: hidden;}
*/

/********************* icon list *********************/
div.iconlist {
    text-align: center; float: left; margin: 1ex 1em;
    border: dotted #dfd 2px; padding: 1ex;
}
div.iconlist p {margin: 0; padding: 0;}
div.iconlist p.tag {background: #ffa; border-radius: 4em;}
div.iconlist p._temp	{background: cyan;}
div.iconlist p._lecture	{background: pink;}
div.iconlist p._admin	{background: yellow;}
div.iconlist p._friend	{background: fuchsia;}
div.iconlist p._fellows	{background: #9f9;} /* light green */
div.iconlist p._club	{background: #4bb;} /* light teal */
div.iconlist p._event	{background: maroon; color: white;}
div.iconlist p._misc	{background: purple; color: white;}
div.iconlist p._record	{background: red; color: white;}
div.iconlist p._info	{background: #eff;} /* light cyan */
div.iconlist p._support	{background: #ffe;} /* light yellow */
div.iconlist p._test	{background: #ffb6c1;} /* light pink */
div.xy120x120 {min-width: 120px; min-height: 140px;}
div.xy96x96 {min-width: 96px; min-height: 116px;}
div.xy50x50 {min-width: 50px; min-height: 70px;}
div.moderated {background: rgba(255, 215, 0, 0.3);}		/* gold */
body.moderated {background: #fffec4;} /* #faed8a */
body.ismember, div.ismember {border-top: 4px red solid; margin-top: 0;}
div.right, div.search {clear: both; float: right;}
*.clear {clear: both;}
div.search input[type="text"] {
    border: solid 1px #bbb; border-radius: 0.5ex; min-height: 20px;
    margin: 1em; padding: 0 0.5ex; padding-left: 18px;
    background: url("../../img/loupe.png") left center no-repeat
		   rgba(242,240,240,0.7);
}

/*
 * PR Web
 */
body.pr {font-size: 200%;}
body.pr h1 {
    text-align: center; width: 80%; padding: 3ex 0; margin: 0 auto;
    background: #ffefef; border: double 5px navy;
}

yatex.org