/**
 * This file provides styles for the media manager popup
 * (mediamanager.php).
 */

/*____________ structure ____________*/

html.popup {
  overflow: auto;
}

#media__manager {
  height: 100%;
  overflow: hidden;
}

#mediamgr__aside {
  position: absolute;
  left: 0;
  width: 30%;
  height: 100%;
  overflow: auto;
  border-right: 1px solid __border__;
}
[dir=rtl] #mediamgr__aside {
  right: 0;
  left: auto;
  border-right-width: 0;
  border-left: 1px solid __border__;
}
#mediamgr__aside .pad {
  padding: .5em;
}

#mediamgr__content {
  position: absolute;
  right: 0;
  width: 69.7%;
  height: 100%;
  overflow: auto;
}
[dir=rtl] #mediamgr__content {
  right: auto;
  left: 0;
}
#mediamgr__content .pad {
  padding: .5em;
}

#media__manager h1,
#media__manager h2 {
  padding-bottom: .2em;
  margin-bottom: .5em;
  font-size: 1.5em;
  border-bottom: 1px solid __border__;
}

/* left side
********************************************************************/

/*____________ options ____________*/

#media__opts {
  margin-bottom: .5em;
}

#media__opts input {
  margin-right: .3em;
}
[dir=rtl] #media__opts input {
  margin-right: 0;
  margin-left: .3em;
}


/*____________ tree ____________*/

#media__tree ul {
  padding-left: .2em;
}
[dir=rtl] #media__tree ul {
  padding-right: .2em;
  padding-left: 0;
}
#media__tree ul li {
  margin-left: 0;
  clear: left;
  list-style-type: none;
  list-style-image: none;
}
[dir=rtl] #media__tree ul li {
  margin-right: 0;
  clear: right;
}
#media__tree ul li img {
  float: left;
  padding: .5em .3em 0 0;
}
[dir=rtl] #media__tree ul li img {
  float: right;
  padding: .5em 0 0 .3em;
}
#media__tree ul li div.li {
  display: inline;
}
#media__tree ul li li {
  margin-left: 1.5em;
}
[dir=rtl] #media__tree ul li li {
  margin-right: 1.5em;
  margin-left: 0;
}

/* right side
********************************************************************/

/*____________ upload form ____________*/

/* upload info */
#media__content div.upload {
  margin-bottom: .5em;
  font-size: .9em;
}

#mediamanager__uploader {
  margin-bottom: 1em;
}
#mediamanager__uploader p {
  margin-bottom: .5em;
}

/*____________ file list ____________*/

#media__content img.load {
  margin: 1em auto;
}

#media__content .odd,
#media__content .even {
  padding: .5em;
}
#media__content .odd {
  background-color: __background_alt__;
}

/* highlight newly uploaded or edited file */
#media__content #scroll__here {
  border: 1px dashed __border__;
}

/* link which inserts media file */
#media__content a.mediafile {
  margin-right: 1.5em;
  font-weight: bold;
}
[dir=rtl] #media__content a.mediafile {
  margin-right: 0;
  margin-left: 1.5em;
}

#media__content img.btn {
  vertical-align: text-bottom;
}

/* info how to insert media, if JS disabled */
#media__content div.example {
  margin-left: 1em;
  color: __text_neu__;
}

#media__content div.detail {
  padding: .2em 0;
}
#media__content div.detail div.thumb {
  float: left;
  margin: 0 .5em 0 18px;
}
[dir=rtl] #media__content div.detail div.thumb {
  float: right;
  margin: 0 18px 0 .5em;
}
#media__content div.detail div.thumb a {
  display: block;
  cursor: pointer;
}
#media__content div.detail p {
  margin-bottom: 0;
}


/*____________ media search ____________*/









/* meta edit form
********************************************************************/



#media__content form.meta div.metafield {
  margin-bottom: .5em;
  overflow: hidden;
  clear: left;
}
[dir=rtl] #media__content form.meta div.metafield {
  clear: right;
}

#media__content form.meta label {
  display: block;
  float: left;
  width: 25%;
  clear: left;
  font-weight: bold;
}
[dir=rtl] #media__content form.meta label {
  float: right;
  clear: right;
}
#media__content form.meta .edit {
  float: left;
  width: 70%;
  margin: 0;
}
[dir=rtl] #media__content form.meta .edit {
  float: right;
}
#media__content form.meta textarea.edit {
  min-width: 70%;
  /* needed because of IE8 hack in _edit.css for textarea.edit: */
  max-width: 70%;
}

#media__content form.meta div.buttons {
  margin: .2em 0 0 25%;
  clear: left;
}
[dir=rtl] #media__content form.meta div.buttons {
  margin: .2em 25% 0 0;
  clear: right;
}
