/**
 * uofc FILES Module css
 *
 * UofC Drupal Media and Files Services
 *
 * PHP version 5.2, for Drupal 7.x
 *
 * @file        files_uofc.css
 * @author      Manraj Singh Hallan (mhallan)
 * @author      Dan Fitzsimmons (dpfitzsi)
 *
 * @copyright   2012,2015 University of Calgary
 * @version     SVN: $Id:$
 */
 
/* Alter size of image description field */
#media-browser-page .form-item-alt #edit-alt {
	width: 330px;
}

/* Style the image crop/size area */
#media-browser-page img.crop-aspect-ratio-lock { 
	display: none !important;
} 

#media-browser-page fieldset#edit-crop-dimensions-container,
#media-browser-page fieldset#edit-scale-image-container,
#media-browser-page fieldset#edit-rotate-image-container { 
	padding: 0 0 0 8px;
	width: 165px;
}

#media-browser-page fieldset#edit-scale-image-container {
	border-left: 1px dotted #999;
}

#media-browser-page fieldset#edit-rotate-image-container {
	float: none;
	clear: left;
	width: 100%;
}

#media-browser-page .format-and-crop-container-bottom .rotate-image-container .fieldset-wrapper .rotate-right-button, .format-and-crop-container-bottom .rotate-image-container .fieldset-wrapper .rotate-left-button {
	float: left;
	margin: 0 20px 0 0;
}

#media-browser-page .format-and-crop-container-bottom .crop-dimensions-container .fieldset-legend,
#media-browser-page .format-and-crop-container-bottom .scale-image-container .fieldset-legend,
#media-browser-page .format-and-crop-container-bottom .rotate-image-container .fieldset-legend {
	float: none;
}

/* make crop fields appear read-only */
#media-browser-page fieldset#edit-crop-dimensions-container input.form-text {
	background: none repeat scroll 0 0 #C0D9D9;
}

/* Style to ensure image aligns
 * Note: The same code resides in static.ucalgary.ca editor-scss.css for the wsyiwyg module
*/
.attr__media_crop_float__left{
	float: left;
	margin-right: 18px;
}

.attr__media_crop_float__right{
	float: right;
	margin-left: 18px;
}

.attr__media_crop_float__center{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Media admin form */
form#media-admin th.select-all, form#media-admin table td:first-child {
  display: none;
}

/* Attached files view table alignment */
body.page-admin-content-file-attachments #uc-content .primary .view table, body.page-media #uc-content .primary .view table {
  width: 100%;
}

body.page-admin-content-file-attachments #uc-content .primary .view table caption, body.page-media #uc-content .primary .view table caption {
  font-size: 1.167em;
  padding: 1em 0;
}

body.page-media #uc-content .primary .view .views-exposed-form {
  display: none;
}

body.page-media #uc-content .primary .view .view-content {
  padding-bottom: 1em;
}

.view-file-attachments-files-uofc td ul {
  margin: 0;
  padding: 0 0 0.25em 1em;
}

.view-file-attachments-files-uofc td {
  word-wrap: break-word;
  word-break: break-all;
}

.view-file-attachments-files-uofc td.views-field-title {
  width: 35%;
}

.view-file-attachments-files-uofc td.views-field-upload, .view-file-attachments-files-uofc td.views-field-upload-1 {
  width: 30%;
}

.view-file-attachments-files-uofc td.views-field-upload-2 {
  width: 5%;
}

.view-file-attachments-files-uofc input.form-submit {
  margin: 1.333em 0 25px !important;
}

a.fdelete {
  background-image: url("../images/x.png");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
  width: 12px;
  height: 21px;
  display: block;
}

/* Alter media iframe height to include submit buttons */
iframe#mediaBrowser {
  min-height: 550px !important;
}

