CSS 上传附件表的Drupal自定义样式

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS 上传附件表的Drupal自定义样式相关的知识,希望对你有一定的参考价值。

/* @group Attachments table */
table.attachments caption {
  display: none;
}
table.attachments {
  border-color: #CCC;
  border-width: 1px;
  border-style: solid none none solid;
  width: auto;
}
table.attachments thead { border: 1px solid #CCC }
table.attachments td {
  line-height: 24px; padding: 0;
  border-right: 1px solid #CCC;
  border-bottom: 1px solid #CCC;
}
table.attachments tr {
  border-right: 1px solid #CCC;
}
table.attachments td a {
	line-height: 24px;
	padding: 0 26px;
	background-position: 5px;
	background-repeat: no-repeat;
}
table.attachments th {
  background-color: #F2F2F2;
  font-weight: normal;
  font-family: Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
  font-size: 77%;
}
table.attachments td.size {
  padding: 0 5px;
  font-family: Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
  font-size: 77%;
  color: #404040;
  font-style: normal;
}
/* @end */
/* @group Mime-type icons */
.pdf a, .application-pdf a {
  background-image: url(images/icon-pdf.gif); }
.jpeg a, .jpg a, .png a, .gif a {
  background-image: url(images/icon-image.png); }
.eps a, .application-postscript a {
  background-image: url(images/icon-postscript.png); }
.html a, .text-html a {
  background-image: url(images/icon-html.gif); }
.qt a, .video-quicktime a {
  background-image: url(images/icon-quicktime.gif); }
.ical a, .text-calendar a {
  background-image: url(images/icon-ical.gif); }
.dl a {
  background-image: url(images/icon-download.gif); }
.dmg a, .application-x-diskcopy a {
  background-image: url(images/icon-dmg.gif); }
.zip a, .application-zip a {
  background-image: url(images/icon-zip.gif); }
.audio a, .audio-mpeg a {
  background-image: url(images/icon-audio.gif); }
.website a {
  background: url(images/icon-website.gif) left center no-repeat;
  margin: 0; padding: 2px 0 2px 25px; line-height: 25px; }
.doc a, .msword a {
  background-image: url(images/icon-doc.png); }
.txt a  {
  background-image: url(images/icon-txt.gif); }
/* @end */

以上是关于CSS 上传附件表的Drupal自定义样式的主要内容,如果未能解决你的问题,请参考以下文章

CSS自定义文件上传按钮样式,兼容主流浏览器

设置Drupal附件表的主题

自定义input文件上传 file的提示文字及样式

如何在 Drupal 8 中自定义/样式/主题自定义内容类型的输出?

Drupal创建自定义表单,上传文件代码

jquery-file-upload附件上传