/**
 * This file provides the styles for the fullscreen media manager
 * (?do=media).
 *
 * What most templates would probably need to change (depending on
 * their site width) are the 4 min-width's (search for @change).
 */


/*____________ structure ____________*/

#mediamanager__page h1 {
  margin-bottom: .5em;
}

#mediamanager__page {
  width: 100%;
  /* min-width must be summary of all 3 panels' min-widths */
  min-width: 50em; /* @change */
  text-align: left;
}

#mediamanager__page .panel {
  float: left;
}

#mediamanager__page .namespaces {
  width: 20%;
  min-width: 10em; /* @change */
}
#mediamanager__page .filelist {
  width: 50%;
  min-width: 25em; /* @change */
}
#mediamanager__page .file {
  width: 30%;
  min-width: 15em; /* @change */
}

#mediamanager__page .panelHeader {
  min-height: 20px;
  padding: 10px 10px 8px;
  margin: 0 10px 10px 0;
  overflow: hidden;
  text-align: left;
  background-color: __background_alt__;
}

#mediamanager__page .panelContent {
  position: relative;
  padding: 0;
  margin: 0 10px 10px 0;
  overflow-x: hidden;
  overflow-y: auto;
}
[dir=rtl] #mediamanager__page .panelContent {
  text-align: right;
}

#mediamanager__page .file .panelHeader,
#mediamanager__page .file .panelContent {
  margin-right: 0;
}

#mediamanager__page .ui-resizable-e {
  right: 2px;
  width: 6px;
  background: transparent url(images/resizecol.png) center center no-repeat;
  /*
    @deprecated, change since Adora Belle:
    background: transparent url(../../images/resizecol.png) center center no-repeat;
    */
}
#mediamanager__page .ui-resizable-e:hover {
  background-color: __background_alt__;
}


#mediamanager__page dd {
  margin: 0;
}

#mediamanager__page .panelHeader h3 {
  float: left;
  padding: 0;
  margin: 0 0 3px;
  font-size: 1em;
  font-weight: normal;
}


/*____________ namespaces panel ____________*/

[dir=rtl] #mediamanager__page .namespaces {
  text-align: right;
}

/* make it look like a tab (as in _tabs.css) */
#mediamanager__page .namespaces h2 {
  position: relative;
  bottom: -1px;
  z-index: 2;
  display: inline-block;
  padding: .3em .8em;
  margin: 0 0 0 .3em;
  font-size: 1em;
  font-weight: normal;
  line-height: 1.4em;
  color: __text__;
  background-color: __background_alt__;
  border: 1px solid __border__;
  border-bottom-color: __background_alt__;
  border-radius: .5em .5em 0 0;
}
* html #mediamanager__page .namespaces h2,
* + html #mediamanager__page .namespaces h2 {
  display: inline;
}
[dir=rtl] #mediamanager__page .namespaces h2 {
  position: relative;
  right: 10px;
  margin: 0 .3em 0 0;
}
#mediamanager__page .namespaces .panelHeader {
  z-index: 1;
  border-top: 1px solid __border__;
}

#mediamanager__page .namespaces ul {
  padding: 0;
  margin-bottom: 0;
  margin-left: .2em;
  list-style: none;
}
[dir=rtl] #mediamanager__page .namespaces ul {
  margin-right: .2em;
  margin-left: 0;
}
#mediamanager__page .namespaces ul ul {
  margin-left: 1em;
}
[dir=rtl] #mediamanager__page .namespaces ul ul {
  margin-right: 1em;
  margin-left: 0;
}
#mediamanager__page .namespaces ul ul li {
  margin: 0;
}

#mediamanager__page .namespaces ul .selected {
  font-weight: bold;
  background-color: __highlight__;
}


/*____________ file list panel ____________*/

/* file list header */

#mediamanager__page .panelHeader form.options {
  float: right;
  margin-top: -3px;
}

#mediamanager__page .panelHeader ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
#mediamanager__page .panelHeader ul li {
  float: left;
  padding-left: 3px;
  line-height: 1;
  color: __text__;
}
[dir=rtl] #mediamanager__page .panelHeader ul li {
  margin-right: 0;
  margin-left: .5em;
}

#mediamanager__page .panelHeader ul li.listType {
  padding-left: 30px;
  margin: 0 0 0 5px;
  background: url('../../images/icon-list.png') 3px 1px no-repeat;
}
#mediamanager__page .panelHeader ul li.sortBy {
  padding-left: 30px;
  margin: 0 0 0 5px;
  background: url('../../images/icon-sort.png') 3px 1px no-repeat;
}

#mediamanager__page .panelHeader form.options .ui-buttonset label {
  margin-right: -.4em;
  font-size: 90%;
}
#mediamanager__page .panelHeader form.options .ui-buttonset .ui-button-text {
  padding: .3em .5em;
  line-height: 1;
}

/* file list content */

#mediamanager__page .filelist ul {
  padding: 0;
  margin: 0 10px 0 0;
}
[dir=rtl] #mediamanager__page .filelist ul {
  margin: 0 10px 0 0;
}

#mediamanager__page .filelist .panelContent ul li:hover {
  background-color: __background_alt__;
}

#mediamanager__page .filelist li dt a {
  display: table-cell;
  overflow: hidden;
  vertical-align: middle;
}
* html #mediamanager__page .filelist .thumbs li dt a,
* + html #mediamanager__page .filelist .thumbs li dt a {
  display: block;
}
* html #mediamanager__page .filelist .rows li dt a,
* + html #mediamanager__page .filelist .rows li dt a {
  display: inline;
}

/* file list as thumbs */

#mediamanager__page .filelist .thumbs li {
  position: relative;
  display: inline-block;
  display: -moz-inline-stack;
  width: 100px;
  min-height: 130px;
  padding: 5px;
  /* the right margin should visually be 10px, but because of its inline-block nature the whitespace inbetween is about 4px more */
  margin: 0 6px 10px 0;
  line-height: 1.2;
  color: __text__;
  text-align: center;
  vertical-align: top;
  background-color: __background_neu__;
}
[dir=rtl] #mediamanager__page .filelist .thumbs li {
  margin-right: 0;
  margin-left: 6px;
}
* html #mediamanager__page .filelist .thumbs li,
* + html #mediamanager__page .filelist .thumbs li {
  display: inline;
  zoom: 1;
}

#mediamanager__page .filelist .thumbs li dt a {
  width: 100px;
  height: 90px;
}

#mediamanager__page .filelist .thumbs li dt a img {
  max-width: 90px;
  max-height: 90px;
}

#mediamanager__page .filelist .thumbs li .name,
#mediamanager__page .filelist .thumbs li .size,
#mediamanager__page .filelist .thumbs li .filesize,
#mediamanager__page .filelist .thumbs li .date {
  display: block;
  width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#mediamanager__page .filelist .thumbs li .name {
  padding: 5px 0;
  font-weight: bold;
}
#mediamanager__page .filelist .thumbs li .date {
  font-style: italic;
  white-space: normal;
}

/* file list as rows */

#mediamanager__page .filelist .rows li {
  position: relative;
  display: block;
  max-height: 50px;
  margin: 0;
  margin-bottom: 3px;
  overflow: hidden;
  color: __text__;
  list-style: none;
  background-color: __background__;
}

#mediamanager__page .filelist .rows li:nth-child(2n+1) {
  background-color: __background_neu__;
}

#mediamanager__page .filelist .rows li dt {
  float: left;
  width: 10%;
  height: 40px;
  text-align: center;
}

#mediamanager__page .filelist .rows li dt a {
  width: 100px;
  height: 40px;
}

#mediamanager__page .filelist .rows li dt a img {
  max-width: 40px;
  max-height: 40px;
}

#mediamanager__page .filelist .rows li .name,
#mediamanager__page .filelist .rows li .size,
#mediamanager__page .filelist .rows li .filesize,
#mediamanager__page .filelist .rows li .date {
  float: left;
  margin-left: 1%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mediamanager__page .filelist .rows li .name {
  width: 30%;
  font-weight: bold;
}
#mediamanager__page .filelist .rows li .size,
#mediamanager__page .filelist .rows li .filesize {
  width: 15%;
}
#mediamanager__page .filelist .rows li .date {
  width: 20%;
  font-style: italic;
  white-space: normal;
}

/* upload form */

#mediamanager__page div.upload {
  padding-bottom: .5em;
}

/*____________ file panel ____________*/

#mediamanager__page .file ul.actions {
  padding: 0;
  margin: 0 0 5px;
  text-align: center;
  list-style: none;
}
#mediamanager__page .file ul.actions li {
  display: inline;
  margin: 0;
}

#mediamanager__page .file div.image {
  margin-bottom: 5px;
  text-align: center;
}

#mediamanager__page .file div.image img {
  width: 100%;
}

#mediamanager__page .file dl {
  margin-bottom: 0;
}
#mediamanager__page .file dl dt {
  display: block;
  font-weight: bold;
  background-color: __background_alt__;
}
#mediamanager__page .file dl dd {
  display: block;
  background-color: __background_neu__;
}


/* file meta data edit form */

#mediamanager__page form.meta div.row {
  margin-bottom: 5px;
}

#mediamanager__page form.meta label span {
  display: block;
}

#mediamanager__page form.meta input {
  width: 50%;
}

#mediamanager__page form.meta input.button {
  width: auto;
}

#mediamanager__page form.meta textarea.edit {
  width: 95%;
  min-width: 95%;
  max-width: 95%;
  height: 6em;
}

/* file revisions form */

#mediamanager__page #page__revisions ul, /* old, until 2012-01-25 */
#mediamanager__page form.changes ul /* new */ {
  padding: 0;
  margin-left: 10px;
  list-style-type: none;
}

#mediamanager__page #page__revisions ul li div.li div, /* old, until 2012-01-25 */
#mediamanager__page form.changes ul li div.li div /* new */ {
  padding-left: 18px;
  font-size: 90%;
  color: __text_neu__;
}

#mediamanager__page #page__revisions ul li div.li input, /* old, until 2012-01-25 */
#mediamanager__page form.changes ul li div.li input /* new */ {
  position: relative;
  top: 1px;
}

/* file diff view */

#mediamanager__diff table {
  table-layout: fixed;
  border-width: 0;
}

#mediamanager__diff td,
#mediamanager__diff th {
  width: 48%;
  padding: 0;
  margin: 0 5px 10px 0;
  text-align: left;
  vertical-align: top;
  border-color: __background__;
}
[dir=rtl] #mediamanager__diff td,
[dir=rtl] #mediamanager__diff th {
  text-align: right;
}

#mediamanager__diff th {
  font-weight: normal;
  line-height: 1.2;
  background-color: __background__;
}
#mediamanager__diff th a {
  font-weight: bold;
}
#mediamanager__diff th span {
  font-size: 90%;
}

#mediamanager__diff dl dd strong {
  font-weight: normal;
  color: __text__;
  background-color: __highlight__;
}

/* image diff views */

#mediamanager__page .file form.diffView {
  display: block;
  margin-bottom: 10px;
}

#mediamanager__diff div.slider {
  width: 95%;
  margin: 10px;
}

#mediamanager__diff .imageDiff {
  position: relative;
}
#mediamanager__diff .imageDiff .image2 {
  position: absolute;
  top: 0;
  left: 0;
}

#mediamanager__diff .imageDiff.opacity .image2 {
         opacity: .5;

    -moz-opacity: .5;
  -khtml-opacity: .5;
}

#mediamanager__diff .imageDiff.portions .image2 {
  overflow: hidden;
  border-right: 1px solid red;
}

#mediamanager__diff .imageDiff.portions img {
  float: left;
}

#mediamanager__diff .imageDiff img {
  width: 100%;
  max-width: none;
}
