This commit is contained in:
yanxd 2014-05-14 17:12:04 +08:00
parent 4235ca8984
commit 829c77879a
6 changed files with 1080 additions and 972 deletions

View File

@ -55,7 +55,7 @@ module FilesHelper
result = true
end
if result
if contentType != l(:attachment_all) && contentType != attachment.suffix_type
if contentType != '0' && contentType != attachment.suffix_type
result = false
end
end

View File

@ -3,25 +3,26 @@
<% attachmenttypes = @project.attachmenttypes %>
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
<% edit_allowed = User.current.allowed_to?(:manage_files, @project) %>
<ul id="all_browse_ul">
<table class="list files" id="ver-zebra">
<colgroup>
<col class="vzebra-odd"/>
<col class="vzebra-even"/>
<col class="vzebra-odd"/>
<col class="vzebra-even"/>
<col class="vzebra-odd" />
<!-- <col class="vzebra-odd"/> -->
</colgroup>
<thead><tr>
<thead>
<tr>
<%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure") %>
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope =>"col" , :id => "vzebra-comedy")%>
<%#= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children") %>
<%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype") %>
<%= sort_header_tag('content_type', :caption => l(:attachment_sufix_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-contenttype") %>
<%= sort_header_tag('downloads', :caption => l(:field_downloads), :default_order => 'desc', :scope => "col", :id => "vzebra-action") %>
<%= sort_header_tag('operation', :caption => "", :scope => "col", :id => "vzebra-children") %>
<!-- <%= sort_header_tag('description', :caption => l(:field_description)) %> -->
</tr></thead>
</tr>
</thead>
<tbody>
<% @containers.each do |container| %>
<% next if container.attachments.empty? -%>
@ -34,16 +35,16 @@
<% end -%>
<% container.attachments.each do |file| %>
<tr class="file <%= cycle("odd", "odd") %>">
<td class="filename" style="font-size: 13px; width: 240px; "><%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %></td>
<td class="created_on"><%= format_time(file.created_on) %></td>
<td class="filename" style="font-size: 13px; "><%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %></td>
<!-- <td class="created_on"><%#= format_time(file.created_on) %></td> -->
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
<td class="attach_type">
<div id="attach_type_id_label<%= file.id %>" style="white-space:nowrap;"><%= file.attachmentstype.typeName %></div>
<span id="attach_type_id_label<%= file.id %>" style="white-space:nowrap;"><%= file.attachmentstype.typeName %></span>
&nbsp;
<div id="attach_type_id_edit<%= file.id %>" style="white-space:nowrap;">
<span id="attach_type_id_edit<%= file.id %>" style="white-space:nowrap;">
<%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes,
:attachment => file, :contentype => selContentType} %>
</div>
</span>
</td>
<td class="content_type"><%= file.show_suffix_type %></td>
<td class="downloads"><%= file.downloads %></td>
@ -54,9 +55,9 @@
</td>
</tr>
<tr>
<td class='description' colspan="5">
<td class='description' colspan="6">
<div class="tags_area">
<% @preTags = %w|预设A 预设B 预设C 预设D 预设E 预设Z | %>
<%# @preTags = %w|预设A 预设B 预设C 预设D 预设E 预设Z | %>
<%= render :partial => 'tags/tag', :locals => {:obj => file, :object_flag => "6"} %>
<div class="tags_gradint"></div>
</div>
@ -71,4 +72,3 @@
</tbody>
</table>
</ul>

View File

@ -3,20 +3,18 @@
<% attachmenttypes = @project.attachmenttypes %>
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
<% edit_allowed = User.current.allowed_to?(:manage_files, @project) %>
<div id="catarory_browse_div" class="catarory_browse_div">
<ul id="catarory_browse_ul">
<table class="list files" id="ver-zebra1">
<table class="list files" id="ver-zebra">
<colgroup>
<col class="vzebra-odd"/>
<col class="vzebra-even"/>
<col class="vzebra-odd"/>
<col class="vzebra-even"/>
<col class="vzebra-odd"/>
<!-- <col class="vzebra-odd"/> -->
</colgroup>
<thead>
<tr>
<%= sort_header_tag('filename', :caption => l(:field_filename), :scope => "col", :id => "vzebra-adventure") %>
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
<%#= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc', :scope => "col", :id => "vzebra-comedy") %>
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc', :scope => "col", :id => "vzebra-children") %>
<%= sort_header_tag('attach_type', :caption => l(:attachment_browse), :default_order => 'desc', :scope => "col", :id => "vzebra-attachmenttype") %>
<%= sort_header_tag('content_type', :caption => l(:attachment_sufix_browse), :default_order => 'desc', :scope =>"col", :id=> "vzebra-contenttype")%>
@ -31,16 +29,16 @@
<% container.attachments.each do |file| %>
<% if isTypeOk(file,selAttachType,selContentType) %>
<tr class="file <%= cycle("odd", "odd") %>">
<td class="filename" style="font-size: 13px; width: 240px; "><%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %></td>
<td class="created_on"><%= format_time(file.created_on) %></td>
<td class="filename" style="font-size: 13px; "><%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description.to_s, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %></td>
<!-- <td class="created_on"><%#= format_time(file.created_on) %></td> -->
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
<td class="attach_type">
<div id="attach_type_id_label<%= file.id %>" style="white-space:nowrap;"><%= file.attachmentstype.typeName %></div>
<span id="attach_type_id_label<%= file.id %>" style="white-space:nowrap;"><%= file.attachmentstype.typeName %></span>
&nbsp;
<div id="attach_type_id_edit<%= file.id %>" style="white-space:nowrap;">
<span id="attach_type_id_edit<%= file.id %>" style="white-space:nowrap;">
<%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes,
:attachment => file,:contentype=>selContentType} %>
</div>
</span>
</td>
<td class="content_type"><%= file.show_suffix_type %></td>
<td class="downloads"><%= file.downloads %></td>
@ -51,9 +49,9 @@
</td>
</tr>
<tr>
<td class='description' colspan="5">
<td class='description' colspan="6">
<div class="tags_area">
<% @preTags = %w|预设A 预设B 预设C 预设D 预设E 预设Z | %>
<%# @preTags = %w|预设A 预设B 预设C 预设D 预设E 预设Z | %>
<%= render :partial => 'tags/tag', :locals => {:obj => file, :object_flag => "6"} %>
<div class="tags_gradint"></div>
</div>
@ -70,6 +68,4 @@
</tbody>
</table>
</ul>
</div>

View File

@ -1,4 +1,4 @@
<% if @attachtype==0 && @contenttype==l(:attachment_all)%>
<% if @attachtype==0 && @contenttype=='0' %>
$("#all_browse_div").html('<%= j(render partial: "show_all_attachment")%>');
<%else%>
$("#all_browse_div").html('<%= j(render partial: "sort_by_attachtypel")%>');

View File

@ -1,177 +1,6 @@
<!-- <h3> --><!-- %=l(:label_attachment_plural)%></h3 -->
<% attachmenttypes = @project.attachmenttypes %>
<% sufixtypes = @project.contenttypes %>
<style>
#ver-zebra, .file_table_des
{
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 12px;
margin: 5px 10px;
width: 98%;
text-align: left;
border-collapse: collapse;
line-height: 20px;
font-size: 14px;
}
#ver-zebra th
{
font-size: 14px;
font-weight: normal;
padding: 12px 15px;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #039;
text-align: left;
}
#ver-zebra td
{
padding: 8px 15px;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #669;
}
#ver-zebra td.description {
background-color: white;
padding: 0px;
margin: 0px auto;
}
#ver-zebra1, .file_table_des
{
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 12px;
margin: 5px 10px;
width: 98%;
text-align: left;
border-collapse: collapse;
line-height: 20px;
font-size: 14px;
}
#ver-zebra1 th
{
font-size: 14px;
font-weight: normal;
padding: 12px 15px;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #039;
text-align: left;
}
#ver-zebra1 td
{
padding: 8px 15px;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #669;
}
#ver-zebra1 td.description {
background-color: white;
padding: 0px;
margin: 0px auto;
}
div.tags_area {
padding: 2px 10px 10px 10px;
margin: 0px;
margin-bottom: 10px;
/*border-bottom: 1px dashed #CCCCCC;*/
overflow: hidden;
position: relative;
}
.tags_gradint {
}
.read-more{
padding: 5px;
border-top: 4px double #ddd;
background: #fff;
color: #333;
}
.read-more a{
padding-right: 22px;
background: no-repeat 100% 50%;
font-weight: bold;
text-decoration: none;
}
.read-more a:hover{
color: #000;
}
.vzebra-odd
{
background: #eff2ff;
}
.vzebra-even
{
background: #e8edff;
}
#ver-zebra #vzebra-adventure, #ver-zebra #vzebra-children
{
background: #ffffff;
border-bottom: 1px solid #c8d4fd;
}
#ver-zebra #vzebra-comedy, #ver-zebra #vzebra-action
{
background: #ffffff;
border-bottom: 1px solid #d6dfff;
}
#ver-zebra1 #vzebra-adventure, #ver-zebra #vzebra-children
{
background: #ffffff;
border-bottom: 1px solid #c8d4fd;
}
#ver-zebra1 #vzebra-comedy, #ver-zebra #vzebra-action
{
background: #ffffff;
border-bottom: 1px solid #d6dfff;
}
.filename{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
div.pagination{
margin: 10px 0px;
height: 1.5em;
text-align: left;
font-size: 13px;
}
.m5p5{
display: inline-block;
height: auto;
color: white !important;
margin: 8px;
padding: 3px 7px;
}
.m5p5:hover {
text-decoration: none;
/*padding-bottom: 3px;*/
/*border-bottom: 1px solid #666666;*/
border-radius: 4px;
border: 1px solid #15bccf;
box-shadow: 3px 3px 3px #666666;
}
.relation_file_div{
margin: 0px 25px;
}
.relation_file_div fieldset{
margin: 0px 0px;
padding: 10px;
border-radius: 5px;
transition: all 2s linear 1s;
}
.relation_file_div input#attach_search:focus{
border: 1px solid #1B95C6;
box-shadow: 0px 0px 4px #1B95C6;
width: 200px;
}
.relation_file_div input#attach_search{
width: 150px;
outline: none;
border-radius: 5px;
-webkit-transition: 1s width;
-moz-transition : 1s width;
-o-transition : 1s width;
transition : 1s width;
}
</style>
<span class="borad-title"><%= (@project.project_type == 1) ? t(:label_user_course) : t(:label_project) %>资源共享区</span>
@ -186,13 +15,13 @@
<% if attachmenttypes.any? %>
&nbsp; &nbsp; &nbsp;
<label for="attachment_browse_label"><%= l(:attachment_browse) %></label>
<%= select_tag "attachment_browse", content_tag('option',l(:attachment_all)) +options_from_collection_for_select(attachmenttypes, "id", "typeName"),
<%= select_tag "attachment_browse", content_tag(:option, l(:attachment_all), :value => '0') +options_from_collection_for_select(attachmenttypes, "id", "typeName"),
:onchange => "attachmenttypes_searchex(this.value)" %>
<% end %>
<% if sufixtypes.any? %>
&nbsp;
<label for="attach_sufix_browse_label"><%= l(:attachment_sufix_browse) %></label>
<%= select_tag "attach_sufix_browse", content_tag('option', l(:attachment_all)) +options_for_select(sufixtypes),
<%= select_tag "attach_sufix_browse", content_tag(:option, l(:attachment_all), :value => '0') +options_for_select(sufixtypes),
:onchange => "attachment_contenttypes_searchex(this.value)" %>
<% end %>
@ -253,7 +82,7 @@
var $tags = $td_tags_area.find('#tags')
var $icona = $td_tags_area.find('.tags_icona')
var slideHeight = 20; //px
var slideHeight = 5; //px
var defHeight = $tags.height();
var curHeight = $tags_area.height();
@ -271,7 +100,8 @@
$read_more_a.html('更多');
$icona.html('<%=image_tag "/images/sidebar/add.png"%>')
$tags_gradint.fadeIn();
};
}
;
}
$(function () {
@ -279,75 +109,76 @@
var defHeight = $('.tags_area').height();
if (defHeight >= slideHeight) {
$('.tags_area').css('height', slideHeight + 'px');
};
}
;
});
</script>
<script type="text/javascript">
function attachmenttypes_searchex(value) {
$.ajax({
url: '<%=getattachtype_project_files_path(project_id: @project)%>' + '?type='
+ encodeURIComponent(value) + "&contentType=" + $('#attach_sufix_browse').val(),
type: "POST"
}).complete(function (xhr, textStatus) {
function eval_ajax (xhr, textStatus) {
if (textStatus == 'success') {
eval(xhr.responseText);
} else if (textStatus == 'error') {
alert('error');
}
});
}
function attachmenttypes_searchex(value) {
$.ajax({
url: '<%=getattachtype_project_files_path(project_id: @project)%>',
type: "POST",
data: {
type: encodeURIComponent(value),
contentType:$('#attach_sufix_browse').val()
}
}).complete(eval_ajax);
}
function attachment_contenttypes_searchex(value) {
$.ajax({
url: '<%=getattachtype_project_files_path(project_id: @project)%>' + '?type='
+ $('#attachment_browse').val() + "&contentType=" + encodeURIComponent(value),
type: "POST"
}).complete(function (xhr, textStatus) {
if (textStatus == 'success') {
eval(xhr.responseText);
} else if (textStatus == 'error') {
alert('error');
url: '<%=getattachtype_project_files_path(project_id: @project)%>',
type: "POST",
data: {
type: $('#attachment_browse').val(),
contentType: encodeURIComponent(value)
}
}).complete(eval_ajax);
}
;
});
}
</script>
<script type='text/javascript'>
function attachtype_edit(value) {
$.ajax({
url: '<%=getattachtype_project_files_path(project_id: @project)%>' + '?type='
+ $('#attachment_browse').val() + "&contentType=" + encodeURIComponent(value),
type: "POST"
}).complete(function (xhr, textStatus) {
if (textStatus == 'success') {
eval(xhr.responseText);
} else if (textStatus == 'error') {
alert('error');
url: '<%=getattachtype_project_files_path(project_id: @project)%>',
type: "POST",
data: {
type: $('#attachment_browse').val(),
contentType: encodeURIComponent(value)
}
;
});
}).complete(eval_ajax);
}
function attachmenttypes_change(id, type) {
$.ajax({
url: '<%=updateType_attachments_path%>' + '?attachmentid=' +encodeURIComponent(id) + "&newtype="+encodeURIComponent(type) ,
type: "POST"
url: '<%=updateType_attachments_path%>',
type: "POST",
data: {
attachmentid: encodeURIComponent(id),
newtype: encodeURIComponent(type)
}
}).complete(function (xhr, textStatus) {
if (textStatus == 'success') {
$.ajax({
url: '<%=getattachtype_project_files_path(project_id: @project)%>' + '?type='
+ $('#attachment_browse').val() + "&contentType=" +$('#attach_sufix_browse').val(),
type: "POST"
url: '<%=getattachtype_project_files_path(project_id: @project)%>',
type: "POST",
data: {
type: $('#attachment_browse').val(),
contentType: $('#attach_sufix_browse').val()
}
}).error(function () {
alert('error');
});
} else if (textStatus == 'error') {
alert('error');

View File

@ -5,9 +5,11 @@
-moz-box-sizing: border-box;
-box-sizing: border-box;
}
.div_inline {
display: inline-block;
}
/*文字不换行*/
.text_nowrap {
word-break: keep-all;
@ -15,27 +17,35 @@
overflow: hidden;
text-overflow: ellipsis;
}
/*字体 斜体*/
.font_italic {
font-style: italic;
}
/*字体加粗*/
.font_bolder {
font-weight: bolder;
}
.text_center {
text-align: center;
}
.ph10_5{ /*padding horizontal 10% 5%*/
.ph10_5 {
/*padding horizontal 10% 5%*/
padding: 0px 5% 0px 10%;
}
.clear_both {
clear: both;
}
.memo-content pre {
white-space: normal;
word-wrap: break-word;
}
.highlight {
background-color: #fff34d;
-moz-border-radius: 3px;
@ -52,15 +62,18 @@
-webkit-opacity: 0.7;
opacity: 0.7;
}
.clearfix {
width: 100%;
height: 0px;
clear: both;
display: block;
}
.hidden {
display: none;
}
.font_color_orange {
color: #E8770D;
}
@ -68,13 +81,13 @@
* {
font-family: Helvetica, Tahoma, Arial, "Microsoft YaHei", "微软雅黑", SimSun, "宋体", STXihei, "华文细黑", Heiti, "黑体", sans-serif;
}
/* 模态窗口
*******************************************************************************/
/** jRating CSS **/
/**Div containing the color of the stars */
.jRatingAverage {
background-color: #f62929;
position: relative;
@ -83,6 +96,7 @@
z-index: 2;
height: 100%;
}
.jRatingColor {
background-color: #FFD400; /* bgcolor of the stars*/
position: relative;
@ -112,10 +126,12 @@ p.jRatingInfos {
text-align: center;
padding-top: 5px;
}
p.jRatingInfos span.maxRate {
color: #c9c9c9;
font-size: 14px;
}
/* 模态窗口
*******************************************************************************/
@ -144,6 +160,7 @@ p.jRatingInfos span.maxRate {
position: fixed;
top: 200px;
}
#OpenWindow-header {
background: url("/images/showmodal/hd-bg.png") repeat scroll 0 0 transparent;
border-bottom: 1px solid #CCCCCC;
@ -151,6 +168,7 @@ p.jRatingInfos span.maxRate {
border-top-right-radius: 5px;
padding: 18px 18px 14px;
}
#OpenWindow-content {
-webkit-transition: all 0.2s linear 1s;
-o-transition: all 0.2s linear 1s;
@ -171,9 +189,11 @@ p.jRatingInfos span.maxRate {
width: 14px;
z-index: 2;
}
body {
/*font-size: 13px;*/
}
#OpenWindow .txt-fld {
border-bottom: 1px solid #EEEEEE;
padding: 14px 20px;
@ -181,6 +201,7 @@ body {
text-align: right;
width: 364px;
}
#OpenWindow .txt-fld input {
background: none repeat scroll 0 0 #F7F7F7;
border-color: #CCCCCC #E7E6E6 #E7E6E6 #CCCCCC;
@ -194,14 +215,17 @@ body {
padding: 8px;
width: 244px;
}
#OpenWindow .txt-fld input.good_input {
background: url("/images/showmodal/good.png") no-repeat scroll 236px center #DEF5E1;
}
#OpenWindow .btn-fld {
overflow: hidden;
padding: 12px 20px 12px 130px;
width: 254px;
}
#OpenWindow button {
background: none repeat scroll 0 0 #3F9D4A;
border: medium none;
@ -216,6 +240,7 @@ body {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
width: auto;
}
/*********************************************************************************************************************
* Wen的OpenWindow
*********************************************************************************************************************/
@ -234,11 +259,13 @@ body {
position: fixed;
top: 200px;
}
#WOpenWindow .school_list {
width: 900px;
line-height: 20px;
}
#WOpenWindow-header {
background: url("/images/showmodal/hd-bg.png") repeat scroll 0 0 transparent;
border-bottom: 1px solid #CCCCCC;
@ -246,6 +273,7 @@ body {
border-top-right-radius: 5px;
padding: 18px 18px 14px;
}
#WOpenWindow-content {
-webkit-transition: all 0.2s linear 1s;
-o-transition: all 0.2s linear 1s;
@ -255,6 +283,7 @@ body {
border-top-right-radius: 5px;
padding: 18px 18px 14px;
}
#WOpenWindow .content {
width: 1000px;
height: 220px;
@ -265,7 +294,6 @@ body {
}
#WOpenWindow .txt-fld {
border-bottom: 1px solid #EEEEEE;
padding: 14px 20px;
@ -273,6 +301,7 @@ body {
text-align: right;
width: 364px;
}
#WOpenWindow .txt-fld input {
background: none repeat scroll 0 0 #F7F7F7;
border-color: #CCCCCC #E7E6E6 #E7E6E6 #CCCCCC;
@ -286,14 +315,17 @@ body {
padding: 8px;
width: 244px;
}
#WOpenWindow .txt-fld input.good_input {
background: url("/images/showmodal/good.png") no-repeat scroll 236px center #DEF5E1;
}
#WOpenWindow .btn-fld {
overflow: hidden;
padding: 12px 20px 12px 130px;
width: 254px;
}
#WOpenWindow button {
background: none repeat scroll 0 0 #3F9D4A;
border: medium none;
@ -309,10 +341,8 @@ body {
width: auto;
}
/*********************************************************************************************************************/
/* 按钮
*******************************************************************************/
.orangeButton {
@ -336,6 +366,7 @@ body {
text-decoration: none;
text-shadow: 0px 1px 0px #754529;
}
.orangeButton:hover {
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #db6825), color-stop(1, #e87832));
background: -moz-linear-gradient(top, #db6825 5%, #e87832 100%);
@ -346,10 +377,12 @@ body {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#db6825', endColorstr = '#e87832', GradientType = 0);
background-color: #db6825;
}
.orangeButton:active {
position: relative;
top: 1px;
}
input[class~='whiteButton'], .whiteButton {
-moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow: inset 0px 1px 0px 0px #ffffff;
@ -377,6 +410,7 @@ input[class~='whiteButton'], .whiteButton {
text-decoration: none;
text-shadow: 0px 1px 0px #ffffff;
}
input[class~='whiteButton']:hover, .whiteButton:hover {
color: #c61a1a;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff));
@ -389,20 +423,24 @@ input[class~='whiteButton']:hover, .whiteButton:hover {
text-decoration: none;
background-color: #f6f6f6;
}
input[class~='whiteButton']:active, .whiteButton:active {
position: relative;
top: 1px;
text-decoration: none;
}
input[class~='m3p10'], .m3p10 {
margin: 0;
padding: 3px 10px;
height: 20px;
display: inline-block;
}
input[class~='h30'], .h30 {
height: 30px;
}
/* minimal
*******************************************************************************/
input[class='nyan-minimal'], .nyan-minimal {
@ -423,6 +461,7 @@ input[class='nyan-minimal'], .nyan-minimal {
padding-left: 10px;
padding-right: 10px;
}
input[class='nyan-minimal'], .nyan-minimal:hover {
background: #d9d9d9;
-webkit-box-shadow: inset 0 0 1px 1px #eaeaea;
@ -431,6 +470,7 @@ input[class='nyan-minimal'], .nyan-minimal:hover {
color: #222;
cursor: pointer;
}
input[class='nyan-minimal'], .nyan-minimal:active {
background: #d0d0d0;
-webkit-box-shadow: inset 0 0 1px 1px #e3e3e3;
@ -463,6 +503,7 @@ input[class='nyan-clean-gray'], .nyan-clean-gray {
padding-left: 10px;
padding-right: 10px;
}
input[class='nyan-clean-gray']:hover, .nyan-clean-gray:hover {
background-color: #dddddd;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dddddd), color-stop(100%, #bbbbbb));
@ -476,6 +517,7 @@ input[class='nyan-clean-gray']:hover, .nyan-clean-gray:hover {
cursor: pointer;
text-shadow: 0 1px 0 #ddd;
}
input[class='nyan-clean-gray']:active, .nyan-clean-gray:active {
border: 1px solid #aaa;
border-bottom: 1px solid #888;
@ -484,7 +526,6 @@ input[class='nyan-clean-gray']:active, .nyan-clean-gray:active {
box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
}
#share_label {
line-height: 1.4em
}
@ -497,12 +538,14 @@ input[class='nyan-clean-gray']:active, .nyan-clean-gray:active {
width: 100px;
padding: 3px 5px 0px 5px;
}
.tools a:visited {
color: #116699;
text-decoration: none;
padding: 3px 5px 0px 5px;
width: 100px;
}
.tools a:hover {
color: white;
padding: 3px 3px 0px 20px;
@ -510,6 +553,7 @@ input[class='nyan-clean-gray']:active, .nyan-clean-gray:active {
text-decoration: none;
background-color: #539D26;
}
.tools a:active {
color: white;
padding: 3px 3px 0px 20px;
@ -523,6 +567,7 @@ input[class='nyan-clean-gray']:active, .nyan-clean-gray:active {
margin: 0px 0px 0px 10%;
padding: 0;
}
.tools li {
background: url("/images/sidebar/tool_tag_alpha.png") 10px 30% no-repeat transparent;
color: #3e3e3e;
@ -533,9 +578,11 @@ input[class='nyan-clean-gray']:active, .nyan-clean-gray:active {
font-size: 1.0em;
/*border-bottom: 1px solid #CCC;*/
}
.tools li:last-child {
border: none;
}
/* 贴吧 forum memo
*******************************************************************************/
@ -547,6 +594,7 @@ div.actions input[type="text"]{
-box-sizing: border-box;
}
.lz {
position: relative;
min-height: 200px;
@ -555,17 +603,20 @@ div.actions input[type="text"]{
box-shadow: 1px 1px 6px #97EBF4;
border: 1px solid #F1F1F1;
}
.lz-left {
float: left;
margin: 2%;
padding: 0;
}
.memo-section {
width: auto;
margin-left: 15%;
padding-top: 1%;
border-left: 2px dotted #EEE;
}
.memo-title {
margin: 1em 0;
padding-left: 1%;
@ -573,6 +624,7 @@ div.actions input[type="text"]{
font-weight: bold;
border-bottom: 1px dashed rgb(204, 204, 204);
}
.memo-content {
padding: 1%;
margin: 1%;
@ -580,18 +632,21 @@ div.actions input[type="text"]{
background-color: #F8F8F8;
border-radius: 3px;
}
.memo-timestamp {
position: absolute;
bottom: 0px;
right: 0;
margin: 20px;
}
.replies {
overflow: hidden;
max-width: 100%;
float: right;
/*max-width: 90%;*/
}
.reply-box {
float: right;
width: 640px;
@ -600,6 +655,7 @@ div.actions input[type="text"]{
border-top: 2px double #C6F3F9;
/*border-radius: 10px;*/
}
.memo-content img, .comments img {
overflow: hidden;
/*width: 100%;*/
@ -607,33 +663,39 @@ div.actions input[type="text"]{
height: auto !important;
width: expression(this.width > 500 ? "500px" : this.width+"px");
}
table.content-text-list tbody tr td.sticky, div.memo-section .sticky {
background: url(../images/zding.gif) no-repeat 0 1px; padding-left: 35px;
background: url(../images/zding.gif) no-repeat 0 1px;
padding-left: 35px;
/*background: url(../images/2uparrow.png) no-repeat 0 1px; padding-left: 20px;*/
font-weight: bold;
margin-left: 5px;
}
table.content-text-list tbody tr td.locked, div.memo-section .locked {
background: url(../images/locked.png) no-repeat 0 1px;
padding-left: 20px;
margin-left: 5px;
}
/* 问题列表
*******************************************************************************/
.query_form {
}
.content-title-top {
padding-bottom: 10px;
}
.custom_query {
max-width: 95%;
margin: 3px auto;
border-bottom : solid 1px #;
-o-box-shadow: inset 0px 1px 1px 0px #FAFAFA;
-moz-box-shadow: inset 0px 1px 1px 0px #FAFAFA;
-webkit-box-shadow: inset 0px 1px 1px 0px #FAFAFA;
box-shadow: inset 0px 1px 1px 0px #FAFAFA;
}
.custom_query>span {
display: block;
max-width: 100%;
@ -643,6 +705,7 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
border-radius: 3px;
background-color: #DBEBEE;
}
.custom_query > .hide-when-print {
max-width: 97%;
padding: 1px 3px 6px;
@ -651,6 +714,7 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
/* 项目新闻栏
*******************************************************************************/
.add_frame {
@ -661,6 +725,7 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
/*box-shadow: 1px 1px 6px rgb(241,241,241);*/
/*border: 1px solid #F1F1F1;*/
}
.add_frame_header {
background: linear-gradient(#fbfbfb, #f8f8f8) repeat scroll 0% 0% transparent;
border-bottom: 1px solid rgb(226, 226, 226);
@ -673,22 +738,29 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
font-size: 1.5em;
padding-left: 4%;
}
/* xx动态框
*******************************************************************************/
.project_acts *{border:1px solid #000000;}
.project_acts * {
border: 1px solid #000000;
}
.project_acts {
height: 250px;
}
.project_acts .project_acts_left {
float: left;
height: 100%;
width: 61%;
}
.project_acts .project_acts_right {
height: 100%;
margin-left: 61%;
}
/* stores 资源库
*******************************************************************************/
.line_block {
@ -701,9 +773,11 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
-moz-box-sizing: border-box;
-box-sizing: border-box;
}
.resource_sum {
height: auto;
}
.line_block p {
margin: 20px -2px 0px 0px;
/*background: linear-gradient(#ffffff, #e5e5e5) repeat scroll 0% 0% transparent;*/
@ -719,15 +793,18 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
padding-left: 4%;
border-bottom: 1px solid rgb(21, 165, 200);
}
.resource_sum, .line_blo {
border: 1px solid #eeeeee;
}
.filename {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 247px;
max-width: 230px;
}
.line_block .table1 {
display: table;
width: 100%;
@ -735,11 +812,13 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
border-right: 1px solid #eeeeee;
border-bottom: 1px solid #eeeeee;
}
.line_block .table_row1 {
height: 38px;
display: table-row;
width: 100%;
}
.line_block .table_cell1 {
display: table-cell;
padding: 2px;
@ -751,10 +830,12 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
width: 62%;
padding-left: 8px;
}
.line_block .filedown1 {
width: 19%;
text-align: center;
}
.line_block .downicon1 {
width: 19%;
text-align: center;
@ -763,13 +844,16 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
.blue-color, .blue-color a {
color: rgb(109, 153, 178);
}
.gray-color, .gray-color a {
color: rgb(153, 153, 153);
}
#top_field {
max-width: 100%;
margin: 20px auto;
}
.blueinputbar {
-o-transform-origin: 138px 46.5px;
-o-transition: background 0.2s cubic-bezier(0, 0, 1, 1);
@ -807,6 +891,7 @@ table.content-text-list tbody tr td.locked, div.memo-section .locked{
vertical-align: top;
word-wrap: break-word;
}
input.blueinputbar:focus {
box-shadow: rgba(0, 0, 0, 0.047) 0px 1px 3px 0px inset, rgba(82, 168, 236, 0.600) 0px 0px 5px 0px;
border-bottom: 1px solid #56B4EF;
@ -815,6 +900,7 @@ input.blueinputbar:focus {
border-right: 1px solid #56B4EF;
border-top: 1px solid #56B4EF;
}
.r1 {
font-size: 13px;
line-height: 1.7em;
@ -823,15 +909,18 @@ input.blueinputbar:focus {
/*padding-left: 20px;*/
/*width: 50em;*/
}
.r1 .cb {
font-size: 16px;
color: #3333cc;
}
/* course 用户 课程 历史
*******************************************************************************/
.courses_history {
opacity: 0.7;
}
.courses_history a {
color: #666;
}
@ -849,4 +938,196 @@ div.issue{
box-shadow: 3px 3px 10px rgba(100,150,205,0.1);*/
}
/* project 文件列表 资源库
*******************************************************************************/
.tags_area {
height: 5px;
}
#ver-zebra, .file_table_des {
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 12px;
margin: 5px 10px;
width: 98%;
text-align: left;
border-collapse: collapse;
font-size: 14px;
}
#ver-zebra th {
font-size: 14px;
font-weight: normal;
padding: 12px 15px;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #039;
text-align: left;
}
#ver-zebra td {
padding: 8px 15px;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #669;
}
#ver-zebra td.description {
background-color: white;
padding: 0px;
margin: 0px auto;
}
#ver-zebra1, .file_table_des {
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 12px;
margin: 5px 10px;
width: 98%;
text-align: left;
border-collapse: collapse;
line-height: 20px;
font-size: 14px;
}
#ver-zebra1 th {
font-size: 14px;
font-weight: normal;
padding: 12px 15px;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #039;
text-align: left;
}
#ver-zebra1 td {
padding: 8px ;
border-right: 1px solid #fff;
border-left: 1px solid #fff;
color: #669;
}
#ver-zebra1 td.description {
background-color: white;
padding: 0px;
margin: 0px auto;
}
div.tags_area {
padding: 2px 10px 10px 10px;
margin: 0px;
margin-bottom: 10px;
/*border-bottom: 1px dashed #CCCCCC;*/
overflow: hidden;
position: relative;
}
.tags_gradint {
}
.read-more {
padding: 5px;
border-top: 4px double #ddd;
background: #fff;
color: #333;
}
.read-more a {
padding-right: 22px;
background: no-repeat 100% 50%;
font-weight: bold;
text-decoration: none;
}
.read-more a:hover {
color: #000;
}
.vzebra-odd {
background: #eff2ff;
}
.vzebra-even {
background: #e8edff;
}
#ver-zebra #vzebra-adventure, #ver-zebra #vzebra-children {
background: #ffffff;
border-bottom: 1px solid #c8d4fd;
}
#ver-zebra #vzebra-comedy, #ver-zebra #vzebra-action {
background: #ffffff;
border-bottom: 1px solid #d6dfff;
}
#ver-zebra1 #vzebra-adventure, #ver-zebra #vzebra-children {
background: #ffffff;
border-bottom: 1px solid #c8d4fd;
}
#ver-zebra1 #vzebra-comedy, #ver-zebra #vzebra-action {
background: #ffffff;
border-bottom: 1px solid #d6dfff;
}
.filename {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
div.pagination {
margin: 10px 0px;
height: 1.5em;
text-align: left;
font-size: 13px;
}
.m5p5 {
display: inline-block;
height: auto;
color: white !important;
margin: 8px;
padding: 3px 7px;
}
.m5p5:hover {
text-decoration: none;
/*padding-bottom: 3px;*/
/*border-bottom: 1px solid #666666;*/
border-radius: 4px;
border: 1px solid #15bccf;
box-shadow: 3px 3px 3px #666666;
}
.relation_file_div {
margin: 0px 25px;
}
.relation_file_div fieldset {
margin: 0px 0px;
padding: 10px;
border-radius: 5px;
transition: all 2s linear 1s;
}
.relation_file_div input#attach_search:focus {
border: 1px solid #1B95C6;
box-shadow: 0px 0px 4px #1B95C6;
width: 200px;
}
.relation_file_div input#attach_search {
width: 150px;
outline: none;
border-radius: 5px;
-webkit-transition: 1s width;
-moz-transition: 1s width;
-o-transition: 1s width;
transition: 1s width;
}
.all_browse_div table .description{
border-bottom: 1px solid #efffff;
}
.all_browse_div table td{
vertical-align: middle;
}