update template

This commit is contained in:
nccu 2014-11-10 16:42:09 +08:00
parent 3eaf3914ca
commit 527648da0a
10 changed files with 82 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1,4 +1,4 @@
;(function($) { (function($) {
// Init functions // Init functions
function init() { function init() {
@ -7,6 +7,16 @@
} }
function heightCompare () {
var priHeight = $('.primary').height();
var secHeight = $('.secondary').height();
if( priHeight <= secHeight ) {
$('.primary')
.children('.inner')
.css('height', secHeight + 30);
}
}
function searchDetect () { function searchDetect () {
if( $('body').attr('data-module') == 'news' || $('body').attr('data-module') == 'announcement' ) { if( $('body').attr('data-module') == 'news' || $('body').attr('data-module') == 'announcement' ) {
if( window.location.search.length < 1 ) { if( window.location.search.length < 1 ) {
@ -115,6 +125,7 @@
bullsEye(); bullsEye();
moveElement(); moveElement();
searchDetect(); searchDetect();
heightCompare();
} }
} }

View File

@ -625,18 +625,17 @@ button, input, select, textarea {
float: left; float: left;
} }
.main_menu.expansion .page_menu.level_1 > li:last-child { html[lang="zh_tw"] .main_menu.expansion .page_menu.level_1 > li:last-child {
background-color: #ff9900; background-color: #ff9900;
} }
html[lang="zh_tw"] .main_menu.expansion .page_menu.level_1 > li:last-child:hover {
.main_menu.expansion .page_menu.level_1 > li:last-child:hover {
background-color: #ff9900; background-color: #ff9900;
-moz-box-shadow: inset 0 -4px 0 #FF7A00; -moz-box-shadow: inset 0 -4px 0 #FF7A00;
-webkit-box-shadow: inset 0 -4px 0 #FF7A00; -webkit-box-shadow: inset 0 -4px 0 #FF7A00;
box-shadow: inset 0 -4px 0 #FF7A00; box-shadow: inset 0 -4px 0 #FF7A00;
} }
.main_menu.expansion .page_menu.level_1 > li:last-child > a { html[lang="zh_tw"] .main_menu.expansion .page_menu.level_1 > li:last-child > a {
color: #FFF; color: #FFF;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
} }
@ -3205,7 +3204,7 @@ article.page_content .linkAndFile > div:last-child {
} }
.content .content-inner { .content .content-inner {
padding: 1em 1em; padding: 1em 1em 0 1em;
} }
.content .content-inner:before, .content .content-inner:after { .content .content-inner:before, .content .content-inner:after {
@ -3474,9 +3473,10 @@ article.page_content .linkAndFile > div:last-child {
.index_page .primary > .right .events .event_title a { .index_page .primary > .right .events .event_title a {
color: #888888; color: #888888;
font-size: 24px; font-size: 18px;
line-height: 36px; line-height: 36px;
font-weight: normal; font-weight: normal;
padding-left: 10px;
} }
.index_page .primary > .right .events .event_title a:active { .index_page .primary > .right .events .event_title a:active {
@ -3841,11 +3841,14 @@ img {
clear: both; clear: both;
} }
.inside_page .primary .inner{
@include clearfix();
border-right: 1px solid #cfcfcf;
padding: 0 20px 0 0;
margin: 2em 0 2em 2em;
}
#main-content { #main-content {
padding-right: 20px;
border-right: 1px solid #cfcfcf;
font-size: 13px; font-size: 13px;
font-size: 0.8125rem; font-size: 0.8125rem;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;

View File

@ -131,6 +131,7 @@
float: left; float: left;
width: 26%; width: 26%;
.wlink-heading { .wlink-heading {
font-weight: bold;
height: 2.3em; height: 2.3em;
margin: 0; margin: 0;
line-height: 1.6em; line-height: 1.6em;
@ -152,6 +153,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
& > a { & > a {
font-family: $sub-font;
color: #333; color: #333;
&:hover { &:hover {
color: #cc0033; color: #cc0033;

View File

@ -195,9 +195,33 @@ $table-th-bgcolor: $theme-color-main;
// Announcement widget 12 -- table // Announcement widget 12 -- table
.annc-widget-12 {} .annc-widget-12 {}
// Announcement widget 12 -- table // Announcement widget 13
.annc-widget-13 {} .annc-widget-13 {}
// Announcement widget 14 -- table
.annc-widget-14 {
.w-announcement__table {
border: 1px solid #ddd;
font-family: $sub-font;
}
.w-announcement__th {
padding: 3px;
color: #000;
background: none;
}
.w-announcement__link {
font-family: $sub-font;
background: url(/assets/disc.jpg) 3px center no-repeat;
padding-left: 17px;
}
th, td {
padding: 3px;
line-height: 18px;
text-align: left;
border: 1px solid #ddd;
}
}
// ****************** index ****************** // ****************** index ******************
// Announcement index 1 -- table // Announcement index 1 -- table

View File

@ -26,6 +26,7 @@
.i-news__content-wrap { .i-news__content-wrap {
display: inline-block; display: inline-block;
width: 58.79828326180258%; width: 58.79828326180258%;
vertical-align: top;
} }
.i-news__title { .i-news__title {
margin: 0 0 0.5em 0; margin: 0 0 0.5em 0;

View File

@ -0,0 +1,19 @@
<!--
Announcement widget-14
Fields: widget-title, title, postdate
-->
<div class="w-announcement annc-widget-14 w-announcement--table">
<h3 class="w-announcement__widget-title">{{widget-title}}</h3>
<table class="w-announcement__table">
<thead>
<th class="w-announcement__th">{{title-head}}</th>
<th class="w-announcement__th">{{date-head}}</th>
</thead>
<tbody class="w-announcement__list" data-level="0" data-list="announcements">
<tr>
<td><a class="w-announcement__link" href="{{link_to_show}}">{{title}}</a></td>
<td date-format="%Y-%m-%d">{{postdate}}</td>
</tr>
</tbody>
</table>
</div>

View File

@ -121,6 +121,14 @@
"en" : "13. List (widget-title, title)" "en" : "13. List (widget-title, title)"
}, },
"thumbnail" : "thumbnail-block.png" "thumbnail" : "thumbnail-block.png"
},
{
"filename" : "annc_widget14",
"name" : {
"zh_tw" : "14. 表格列表( 模組標題, 標題, 日期 )",
"en" : "14. Table (widget-title, title, postdate)"
},
"thumbnail" : "thumbnail-block.png"
} }
] ]
} }

View File

@ -2,7 +2,7 @@
News widget-1 News widget-1
--> -->
<div class="w-news news-widget-1"> <div class="w-news news-widget-1">
<a href="/zh_tw/news/"><h2 class="topic_title">{{widget-title}}</h2></a> <a href="/<%= I18n.locale.to_s %>/news/"><h2 class="topic_title">{{widget-title}}</h2></a>
<div class="btn-group topic_note"> <div class="btn-group topic_note">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
更多+ 更多+
@ -24,7 +24,7 @@
<div class="list_mask"> <div class="list_mask">
<ul id="topic_list" data-level="0" data-list="news"> <ul id="topic_list" data-level="0" data-list="news">
<li> <li>
<div class="news_img resizeing"> <div class="news_img bullseye">
<a href="{{link_to_show}}"> <a href="{{link_to_show}}">
<img src="{{img_src}}" alt="Announcement image"> <img src="{{img_src}}" alt="Announcement image">
</a> </a>

View File

@ -7,7 +7,7 @@
<div class="tab-body"> <div class="tab-body">
<div class="annc-content"> <div class="annc-content">
<h3 class="annc-heading"> <h3 class="annc-heading">
<a href="/zh_tw/announcement/" class="annc-more">{{heading-announcements}}</a> <a href="/<%= I18n.locale.to_s %>/announcement/" class="annc-more">{{heading-announcements}}</a>
</h3> </h3>
<div class="pagination" data-quant="1"> <div class="pagination" data-quant="1">
<a href="{{annc-prev}}" class="prev" rel="prev">{{Prev}}</a> <a href="{{annc-prev}}" class="prev" rel="prev">{{Prev}}</a>