사용자: 전체검색결과 스타일 수정

This commit is contained in:
whitedot
2013-01-18 12:59:45 +09:00
parent 7fc072e1d6
commit 22ef43f513
3 changed files with 7 additions and 7 deletions

View File

@ -294,10 +294,10 @@ a {color:#000;text-decoration:none}
#sch_result_bo .cnt_cmt {color:#000} #sch_result_bo .cnt_cmt {color:#000}
#sch_result_atc dt a {display:inline-block;margin-bottom:15px;font-size:1.2em;font-weight:bold} #sch_result_atc dt a {display:inline-block;margin-bottom:15px;font-size:1.2em;font-weight:bold}
#sch_result_atc dd {margin:0 0 30px;border-bottom:1px solid #ddd} #sch_result_atc dd {margin:0 0 30px;border-bottom:1px solid #ddd}
#sch_result_atc li {padding:10px 0} #sch_result_atc li {padding:13px 0;border-bottom:1px solid #f0f0f0}
#sch_result_atc p {margin-top:10px} #sch_result_atc p {padding:5px 0}
#sch_result_atc b {display:inline-block;margin:0 10px 0 0} #sch_result_atc a {display:inline-block;margin:0 10px 0 0}
#sch_result_atc b span {display:inline-block;margin:0 10px 0 0} #sch_result_atc .cmt_def {display:inline-block;margin:0 10px 0 0}
.sch_more {padding:10px 0 15px;text-align:right} .sch_more {padding:10px 0 15px;text-align:right}
.sch_more a {color:#818385} .sch_more a {color:#818385}
.sch_sideview {display:inline-block} .sch_sideview {display:inline-block}

View File

@ -453,7 +453,7 @@ function search_font($stx, $str)
} }
// 지정된 검색 폰트의 색상, 배경색상으로 대체 // 지정된 검색 폰트의 색상, 배경색상으로 대체
$replace = "<span style='background-color:{$config['cf_search_bgcolor']}; color:{$config['cf_search_color']};'>\\1</span>"; $replace = "<b style='background-color:{$config['cf_search_bgcolor']}; color:{$config['cf_search_color']};'>\\1</b>";
return preg_replace("/($pattern)/i", $replace, $str); return preg_replace("/($pattern)/i", $replace, $str);
} }

View File

@ -109,12 +109,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) { for ($i=0; $i<count($list[$idx]) && $k<$rows; $i++, $k++) {
if ($list[$idx][$i][wr_is_comment]) if ($list[$idx][$i][wr_is_comment])
{ {
$comment_def = "<span>댓글</span>"; $comment_def = "<span class=\"cmt_def\">댓글</span>";
$comment_href = "#c_".$list[$idx][$i][wr_id]; $comment_href = "#c_".$list[$idx][$i][wr_id];
} }
?> ?>
<li> <li>
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>"><b><?=$comment_def?><?=$list[$idx][$i][subject]?></b></a> <a href="<?=$list[$idx][$i][href]?><?=$comment_href?>"><?=$comment_def?><?=$list[$idx][$i][subject]?></a>
<span class="sch_datetime"><?=$list[$idx][$i][wr_datetime]?></span> <span class="sch_datetime"><?=$list[$idx][$i][wr_datetime]?></span>
<a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" target="_blank">새창</a> <a href="<?=$list[$idx][$i][href]?><?=$comment_href?>" target="_blank">새창</a>
<p><?=$list[$idx][$i][content]?></p> <p><?=$list[$idx][$i][content]?></p>