<?php
// p2 ースタイル設定
// for 書き込みプレビュー
// vim: set fileencoding=cp932 ai et ts=4 sw=0 sts=0 fdm=marker:
// mi: charset=Shift_JIS

if (!isset($STYLE['respop_bgcolor']))	{ $STYLE['respop_bgcolor'] = '#ffffcc'; }
if (!isset($STYLE['respop_background'])) { $STYLE['respop_background'] = ''; }
$dp_empty_background = "background:{$STYLE['respop_bgcolor']} {$STYLE['respop_background']};";

echo <<<EOSTYLE

#dpreview {
	display: none;
	margin: 0.5em;
	padding: 0.5em;
	line-height: 130%;
	font-size: {$STYLE['read_fontsize']};
	color: {$STYLE['read_color']};
}

#original_msg legend, #dpreview legend {
	padding: 0px;
	line-height: 100%;
	font-size: {$STYLE['fontsize']};
	color: {$STYLE['textcolor']};
}

.prvw_resnum {
	color: {$STYLE['read_newres_color']};
	text-decoration: none;
}

.prvw_name {
	color: {$STYLE['read_name_color']};
}

.prvw_mail {
	color: {$STYLE['read_mail_color']};
}

.prvw_msg {
	white-space: normal;
	line-height: 130%;
	font-family: "{$STYLE['fontfamily']}";
	font-size: {$STYLE['read_fontsize']};
}

.prvw_msg_pre {
	white-space: pre;
	line-height: 115%;
	font-family: "{$STYLE['fontfamily']}";
	font-size: {$STYLE['read_fontsize']};
}

.prvw_msg_mona {
	white-space: nowrap;
	line-height: 100%;
	font-family: "{$_conf['expack.am.fontfamily']}";
	font-size: {$_conf['expack.am.fontsize']};
}

.prvw_msg_pre_mona {
	white-space: pre;
	line-height: 100%;
	font-family: "{$_conf['expack.am.fontfamily']}";
	font-size: {$_conf['expack.am.fontsize']};
}

#orig_msg, #dp_msg {
	margin-left: 25px;
}

#dp_empty {
	display: none;
	margin-left: 25px;
	font-style: italic;
	{$dp_empty_background}
}

#dp_msg_deprecated {
	width: 97%;
	margin-left: 3%;
	overflow: auto; /* W3C */
	overflow-x: auto; /* IE */
	overflow-y: auto; /* IE */
}

EOSTYLE;

// スタイルの上書き
if (isset($MYSTYLE) && is_array($MYSTYLE)) {
	include_once (P2_STYLE_DIR . '/mystyle_css.php');
	$_mystylename = str_replace('_css.inc', '', basename(__FILE__));
	if (isset($MYSTYLE[$_mystylename])) {
		disp_mystyle($_mystylename);
	}
}

?>
