update template

This commit is contained in:
nccu 2014-11-07 19:52:31 +08:00
parent 9de2740b9f
commit 57a40a47ad
7 changed files with 106 additions and 13 deletions

View File

@ -22,7 +22,6 @@ body {
} }
h1, h2, h3, h4, h5, h6, label, legend { h1, h2, h3, h4, h5, h6, label, legend {
font-family: Helvetica, Arial, sans-serif;
} }
h3 { h3 {
font-size: 18px; font-size: 18px;
@ -3841,6 +3840,9 @@ img {
.text-right { .text-right {
clear: both; clear: both;
} }
#main-content { #main-content {
padding-right: 20px; padding-right: 20px;
border-right: 1px solid #cfcfcf; border-right: 1px solid #cfcfcf;

View File

@ -223,16 +223,57 @@ $table-th-bgcolor: $theme-color-main;
background-color: #e9e9e9; background-color: #e9e9e9;
} }
td { td {
font-size: $w-table-td-font-size;
border-bottom: 1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1;
padding: 0.3rem; padding: 0.3rem;
font-size: 1.2em; font-size: 15px;
font-family: Helvetica,Arial,sans-serif;
font-size: 0.9375rem;
} }
.i-announcement__status { .i-announcement__status {
margin-bottom: 0.3rem; margin-bottom: 0.3rem;
} }
} }
.i-tag-cloud {
margin: 0 0 20px;
min-height: 10px;
font-family: Helvetica,Arial,sans-serif;
line-height: 1.2;
.i-tag-cloud__widget-title {
border-bottom: 1px solid #7F7F7F;
font-size: 15px;
font: bold 0.9375rem/100% ,,sans-serif;
margin: 0 0 10px;
padding: 0 0 10px 10px;
}
.hot1{
font-size: 21px;
font-size: 1.3125rem;
}
.hot2{
font-size: 18px;
font-size: 1.125rem;
}
.hot3{
font-size: 15px;
font-size: 0.9375rem;
}
.hot4{
font-size: 12px;
font-size: 0.75rem;
}
a {
color: #08C;
}
a:hover {
color: #005580;
}
.active {
background-color: #005580;
color: #FFF;
}
}
// Announcement SHOW // Announcement SHOW
.show-announcement { .show-announcement {
.show-title { .show-title {

View File

@ -47,6 +47,8 @@
} }
.i-category { .i-category {
margin: 0 0 20px;
.i-category__widget-title { .i-category__widget-title {
border-bottom: 1px solid #7F7F7F; border-bottom: 1px solid #7F7F7F;
font: bold 1.25em/100% ,,sans-serif; font: bold 1.25em/100% ,,sans-serif;

View File

@ -32,6 +32,13 @@
</ul> </ul>
</div> </div>
<div class="i-tag-cloud">
<h3 class="i-tag-cloud__widget-title">{{tag-cloud-title}}</h3>
<div class="i-tag-cloud__list" data-level="0" data-list="tag-cloud">
<a href="{{tag-link}}" class="{{tag-class}}">{{tag-name}}</a>
</div>
</div>
<script type="text/javascript"> <script type="text/javascript">
function submitform() function submitform()
{ {

View File

@ -0,0 +1,34 @@
<!--
Announcement index-2
Fields: widget-title, date-head, title-head, postdate, title, pagination
-->
<div class="i-announcement annc-index-2 i-announcement--table">
<h3 class="i-announcement__widget-title">{{widget-title}}</h3>
<span class="search-result">搜尋標題有關 ' {{keyword}} ' 共搜尋到{{announcements_count}}筆資料</span>
<table class="i-announcement__table">
<tbody class="i-announcement__tbody" data-level="0" data-list="announcements">
<tr>
<td>
<a class="i-announcement__link i-announcement__td--link" href="{{link_to_show}}">{{title}}</a>
</td>
<td>
<span class="i-announcement__date i-announcement__td--postdate" date-format="%Y-%m-%d">{{postdate}}</span>
</td>
</tr>
</tbody>
</table>
</div>
{{pagination_goes_here}}
<div class="i-sidebar">
<script type="text/javascript">
function submitform()
{
document.forms["myform"].submit();
}
</script>
<form class="i-search" action="../announcement/" id="myform">
<input class="i-search__text-field" name="keywords" placeholder="搜尋公告" type="text" value="" />
<a class="i-search__submit" href="javascript: submitform()"><input type="submit" value="Search" /></a>
</form>
</div>

View File

@ -3,8 +3,16 @@
{ {
"filename" : "annc_index1", "filename" : "annc_index1",
"name" : { "name" : {
"zh_tw" : "1. 純文字無圖片 ( 模組標題, 日期, 標題 )", "zh_tw" : "1. 純文字無圖片 ( 模組標題, 日期, 標題, 類別 )",
"en" : "1. Text without image (widget-title, postdate, title)" "en" : "1. Text without image (widget-title, postdate, title, category)"
},
"thumbnail" : "thumbnail-block-list.png"
},
{
"filename" : "annc_index2",
"name" : {
"zh_tw" : "2. 純文字無圖片(招生公告專用) ( 模組標題, 日期, 標題 )",
"en" : "2. Text without image (widget-title, postdate, title)"
}, },
"thumbnail" : "thumbnail-block-list.png" "thumbnail" : "thumbnail-block-list.png"
} }

View File

@ -11,12 +11,6 @@
<i class="fa fa-male fa-fw"></i> <i class="fa fa-male fa-fw"></i>
<span class="author"><a href="{{dept_link}}">{{cache_dept}}</span></a> <span class="author"><a href="{{dept_link}}">{{cache_dept}}</span></a>
</li> </li>
<li class="metadata-tags">
<i class="fa fa-tags fa-fw"></i>
<span data-list="tags" data-level="0">
<a href="{{url}}"><span class="tag">{{tag}}</span></a>
</span>
</li>
</ul> </ul>
<section class="post-section"> <section class="post-section">
<p class="post-content">{{body}}</p> <p class="post-content">{{body}}</p>
@ -51,7 +45,12 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="i-tag-cloud">
<h3 class="i-tag-cloud__widget-title">{{tag-cloud-title}}</h3>
<div class="i-tag-cloud__list" data-level="0" data-list="tag-cloud">
<a href="{{tag-link}}" class="{{tag-class}}">{{tag-name}}</a>
</div>
</div>
<script type="text/javascript"> <script type="text/javascript">
function submitform() function submitform()
{ {