/* $Id: itweak_upload.css,v 1.2.2.4 2009/07/23 03:02:45 iva2k Exp $ */

/**
 * @file
 * itweak_upload CSS file.
 */

#upload-attachments {
  margin: 10px 0 0;
}

#edit-upload-wrapper {
  background: transparent url('images/attachment.png') no-repeat left center;
  padding-left: 30px;
}

#upload-attachments {
  background: transparent;
  /* The following only provides separation between rows */
  border-collapse: separate !important;
  border-spacing: 0 6px;
  border: none;
}

#upload-attachments tr,
#upload-attachments th,
#upload-attachments td {
  background: transparent;
  border: none;
}

#attach-wrapper tbody {
  border: none;
}

#attach-wrapper .list {
  white-space: nowrap;
}

#attach-wrapper .file a {
  cursor: pointer;
  font-size: 85%;
  margin-left: 1em;
}

#attach-wrapper .file a.remove:hover {
  color: red;
}

#attach-wrapper .file .details {
  color: #777;
  display: block;
  font-size: 85%;
}

#attach-wrapper .file {
  width: 100%;
  padding-left: 1em;
}

/* CSS Sprites */
#attach-wrapper .mime {
  background: transparent url('images/mime-32.png') no-repeat center 0;
  font-size: 14px;
  padding: 0;
  width: 32px;
  min-width: 32px;
}

/* Mime types */
/* Note: Firefox 3 does not support background-position-y since it is not W3C standard */
#attach-wrapper .mime-txt .mime {
  background-position: center -64px;
}

#attach-wrapper .mime-odt .mime,
#attach-wrapper .mime-docx .mime,
#attach-wrapper .mime-doc .mime {
  background-position: center -128px;
}

#attach-wrapper .mime-eps .mime {
  background-position: center -192px;
}

#attach-wrapper .mime-gif .mime {
  background-position: center -384px;
}

#attach-wrapper .mime-gz .mime {
  background-position: center -256px;
}

#attach-wrapper .mime-id .mime {
  background-position: center -320px;
}

#attach-wrapper .mime-jpg .mime,
#attach-wrapper .mime-jpeg .mime {
  background-position: center -384px;
}

#attach-wrapper .mime-pdf .mime {
  background-position: center -448px;
}

#attach-wrapper .mime-png .mime {
  background-position: center -512px;
}

#attach-wrapper .mime-ppt .mime,
#attach-wrapper .mime-pps .mime,
#attach-wrapper .mime-otp .mime,
#attach-wrapper .mime-pptx .mime {
  background-position: center -576px;
}

#attach-wrapper .mime-ps .mime {
  background-position: center -640px;
}

#attach-wrapper .mime-psd .mime {
  background-position: center -704px;
}

#attach-wrapper .mime-mp4 .mime,
#attach-wrapper .mime-avi .mime,
#attach-wrapper .mime-mov .mime {
  background-position: center -768px;
}

#attach-wrapper .mime-rar .mime {
  background-position: center -832px;
}

#attach-wrapper .mime-svg .mime {
  background-position: center -896px;
}

#attach-wrapper .mime-swf .mime {
  background-position: center -960px;
}

#attach-wrapper .mime-tar .mime {
  background-position: center -1024px;
}

#attach-wrapper .mime-xls .mime,
#attach-wrapper .mime-ods .mime,
#attach-wrapper .mime-xlsx .mime {
  background-position: center -1088px;
}

#attach-wrapper .mime-zip .mime {
  background-position: center -1152px;
}

/* On view */
table.itu-attachment-list tr,
table.itu-attachment-list td {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  width: 0;
  height: 0;
}
/* Wrapper to fix table.itu-attachment-list width inside advanced forum frame */
.itu-attachments {
  width: auto;
  padding: 0;
}
table.itu-attachment-list {
  margin: 0;
  border: 1px solid #DDD !important;
  /* The following only provides separation between rows */
  border-collapse: separate !important;
  border-spacing: 0 6px;
}
table.itu-attachment-list thead {
  display: none;
}
table.itu-attachment-list tbody {
  background: none;
}
table.itu-attachment-list tr {
  height: auto;
  background: none !important;
}
table.itu-attachment-list tr:hover {
  background: #DDD !important;
}

table.itu-attachment-list .file {
  width: auto;
}

table.itu-attachment-list .size {
  padding-right: 1em;
  width: auto;
  text-align: right;
}

/* CSS Sprites */
table.itu-attachment-list .mime {
  background: transparent url('images/mime-16.png') no-repeat center 0;
  padding: 0 7px;
  margin: 0;
  width: 16px;
  min-width: 16px;
  height: 22px;
  min-height: 22px;
}

/* Mime types */
.itu-attachment-list .mime-txt {
  background-position: center -32px !important;
}

.itu-attachment-list .mime-odt,
.itu-attachment-list .mime-docx,
.itu-attachment-list .mime-doc {
  background-position: center -64px !important;
}

.itu-attachment-list .mime-eps {
  background-position: center -96px !important;
}

.itu-attachment-list .mime-gif {
  background-position: center -192px !important;
}

.itu-attachment-list .mime-gz {
  background-position: center -128px !important;
}

.itu-attachment-list .mime-id {
  background-position: center -160px !important;
}

.itu-attachment-list .mime-jpg,
.itu-attachment-list .mime-jpeg {
  background-position: center -192px !important;
}

.itu-attachment-list .mime-pdf {
  background-position: center -224px !important;
}

.itu-attachment-list .mime-png {
  background-position: center -256px !important;
}

.itu-attachment-list .mime-odp,
.itu-attachment-list .mime-pps,
.itu-attachment-list .mime-ppt,
.itu-attachment-list .mime-pptx {
  background-position: center -288px !important;
}

.itu-attachment-list .mime-ps {
  background-position: center -320px !important;
}

.itu-attachment-list .mime-psd {
  background-position: center -352px !important;
}

.itu-attachment-list .mime-mp4,
.itu-attachment-list .mime-avi,
.itu-attachment-list .mime-mov {
  background-position: center -384px !important;
}

.itu-attachment-list .mime-rar {
  background-position: center -416px !important;
}

.itu-attachment-list .mime-svg {
  background-position: center -448px !important;
}

.itu-attachment-list .mime-swf {
  background-position: center -480px !important;
}

.itu-attachment-list .mime-tar {
  background-position: center -512px !important;
}

.itu-attachment-list .mime-xls,
.itu-attachment-list .mime-ods,
.itu-attachment-list .mime-xlsx {
  background-position: center -544px !important;
}

.itu-attachment-list .mime-zip {
  background-position: center -576px !important;
}

/* Styles for Image Attachments slider */
.itu-attachment-images * {
  margin: 0;
  padding: 0;
}

.itu-attachment-images {
  clear: both;
  border: 1px solid #DDD;
  margin: 1em 0;
  padding: 5px 0 5px 5px;
  overflow-x: auto;
}

/* Special margin fixes for advanced forum wrapper */
.forum-post-wrapper .itu-attachment-images {
  margin-right: 1em;
}
.forum-post-wrapper .itu-attachments {
  padding-right: 1em;
}

.itu-attachment-images .item-list {
  margin: 0 !important;
  padding: 0 !important;
}

.itu-attachment-images ul {
  white-space:nowrap;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.itu-attachment-images ul li {
  display: inline;
  list-style: none;
  /* Force clean list styling */
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.itu-attachment-images ul li.last {
  padding-right: 5px !important;
}

/* Thumbnails styling in all views */
.itu-attachment-thumb {
  padding: 0;
  margin: 0;
  display: inline;
  text-align: center;
  vertical-align: baseline;
}
.itu-attachment-thumb a {
  padding: 0;
  margin: 0;
  text-decoration: none;
  display: block;
  height: auto;
  vertical-align: baseline;
}
.itu-attachment-thumb a img {
  padding: 0;
  margin: 0;
  border: 2px solid #DDD;
  vertical-align: middle;
}
.itu-attachment-thumb a:hover img {
  border: 2px solid #000;
}

/* Revert block to inline for gallery */
.itu-attachment-images .itu-attachment-thumb a {
  display: inline;
}
