/*  Copyright (C) 2011-2015 Peter Upfold.

    This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/


/* Plugin 32x32 icon */

#icon-total-slides {
	background:transparent url(../img/total-slider-icon-32.png?ver=20120229) no-repeat;
}


/* Slide sorter */

#slidesort {
	margin: 0;
	padding: 0;
	width: 10000px;
	height: 95px;
}

#slidesort-container {
	width: auto;
	overflow-x: scroll;
	overflow-y: hidden;
	margin: 0;
	padding: 0;
}


/* Slides in the slide sorter */

ul#slidesort li {
	border: 3px solid transparent;
	display: block;
	float: left;
	margin: 0 12px 10px 0;
	padding: 0;
	cursor: pointer;
	overflow-x: none;
	position: relative;
	width: 162px;
	height: 82px;
}

ul#slidesort li.slidesort-selected {
	border: 3px solid #8CC1E9;
}

.slidesort_slidebox {
	border: 1px solid #464646;
	width: 160px;
	height: 80px;
	background-color: #FFF;
	background-size:100% 100% !important;
	background-repeat:no-repeat !important;
}

.slidesort_text {
	padding: 4px 5px 5px;
	color: #FFF;
	text-shadow: 0 1px 1px #000;
	background: url(../img/slider-desc-bg.png);
	background: rgba(0, 0, 0, 0.65);
}

.slidesort-icon {
	position: absolute;
	display: none;
	width: 14px;
	height: 14px;
	text-indent: -1000in;
	overflow: hidden;
	background-image: url(../img/icons.png);
}

.slidesort-draft > div.slidesort_slidebox > div.slidesort_text {
	background-color: rgba(0, 0, 0, 0.30);
}
.slidesort-draft > div.slidesort_slidebox > div.slidesort_text:before {
	content: "Draft ";
	font-size: 80%;
	font-style: italic;
}

.slidesort-draft > div.slidesort_slidebox > div.slidesort_text.total-slider_fr_FR:before {
	content: "Brouillon ";
}

.slidesort-draft.slidesort-unsaved > div.slidesort_slidebox > div.slidesort_text {
	background-color: rgba( 255, 0, 0, 0.20 );
}
.slidesort-publish.slidesort-unsaved > div.slidesort_slidebox > div.slidesort_text {
	background-color: rgba( 255, 0, 0, 0.65 );
}


ul#slidesort li:hover .slidesort-icon {
	display: block;
}


/* Slidesort slide buttons */

.slide-delete-button {
	bottom: 3px;
	right: 3px;
	background-position: center right;
}

.slide-move-button {
	bottom: 3px;
	left: 4px;
	background-position: center left;
	cursor: move;
}


/* Yay for vendor prefices */

input#edit-slide-link:-webkit-input-placeholder {
    color:rgba(178,178,178,0.82);
}
input#edit-slide-link:-moz-placeholder {
    color:rgba(178,178,178,0.82);
}
input#edit-slide-link:-ms-input-placeholder {
    color:rgba(178,178,178,0.82);
}

select#template-slug {
	min-width:170px;	
}


/* Slide preview canvas */

#edit-area {
	display: block;
	background: url(../img/slider-workspace-bg.png);
	padding: 30px;
	border: 1px solid #BBB;
	min-height:250px;
}

.total-slider-template-draggable {
	cursor: move !important;
}

.preview-var-placeholder {
	display: none;	
}

.template-render-error {
	text-align:center;
	font-size:14pt;
	background-color:#fffcd3;
	border:1px solid #d4d400;
	padding:20px;
	height:auto;
	width:auto;
}
/* Edit area */

#edit-controls {
	opacity: 0;
}

#edit-controls .form-table th {
	width: 125px !important;
}

.edit-controls-inputs {
	float: left;
}

#edit-slide-image-upload {
	max-width: 250px;
}

#slide-link-internal-display {
	font-style: italic;
	font-size: 12px;
}

#slide-link-external-settings {
	display: none;
}

#slide-link-internal-settings {
	display: none;
}

#edit-controls .submit {
	float: none !important;
	padding: 5px 12px 10px !important;
}

#slide-publish-status-container > th:before {
	content: '\f173'; /* link icon */
}

#slide-title-container > th:before {
	content: '\f109'; /* pushpin */
}

#slide-description-container > th:before {
	content: '\f119'; /* description */
}

#slide-image-container > th:before {
	content: '\f128'; /* image */
}

#slide-link-container > th:before {
	content: '\f103'; /* link */
}

#edit-controls .form-table th:before {
	color: #888;
	display: inline-block;
	font: normal 20px/1 'dashicons';
	speak: none;
	left: -1px;
	padding: 0 5px 0 0;
	position: relative;
	top: 0;
	text-decoration: none !important;
	vertical-align: top;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#edit-controls-publish, #edit-controls-save-draft, #edit-controls-cancel {
	cursor: pointer;
}

#edit-controls-save-draft {
	margin-right: 45px;
}

#edit-controls-cancel {
	float: right;
}

.delete-container {
	text-align: right;
	margin-top: 20px;
}

.delete-container a {
	color: #a00;
}
.delete-container a:hover {
	color: #fff;
	background-color: #a00;
}

/* Spinner & Saving... text */

#edit-controls-saving {
	display: none;
	margin-left: 0;
	color: #666;
	float: right;
	position: relative;
	top: -31px;
	left: -10px;
}

#edit-controls-spinner {
	vertical-align: middle;
	margin-right: 2px;
}

#edit-controls-saving span {
	position: relative;
	top: 1px;
}

#template-switch-controls {
	margin-bottom: 0;
	padding:0;
	margin-left:auto;
	margin-right:auto;
	text-align: center;
	max-width:360px;
}


/* HINT TEXT */

#edit-controls-choose-hint p, .slidesort-add-hint, .no-items td {
	font-size: 150% !important;
	color: #888 !important;
	text-align: center !important;
}


/* Choose a slide to start */

#edit-controls-choose-hint {
	position: relative;
	left: auto;
	top: auto;
	margin: auto;
}

#message-area {
	display: none;
	background-color: #a5ff6d;
	border-color: #568438;
	width: auto;
}


/* Add a slide to start */

.slidesort-add-hint {
	position: absolute;
	left: 0;
	top: 30px;
	right: 0;
}


/* Click to create a new slide group */

.no-items td {
	padding-top: 45px !important;
	padding-bottom: 50px !important;
	border-bottom: 1px solid #DFDFDF !important;
}


/* Slide Groups Table Column widths */

.column-slides_count {
	width: 100px !important;
	max-width: 100px !important;
}

.column-template {
	width:90px;	
}

.column-actions {
	width: 220px;
}

#new-slide-group {
	display: none;
}


/* Metaboxes */

.postbox .hndle {
	cursor: default !important;
}

.postbox .hndle input {
	position: relative;
	z-index: 100;
}

.handlediv {
	display: none;
}

.inner-sidebar {
	float:right;
	clear:right;
	width:286px;
}

.has-right-sidebar #post-body-content {
	margin-right: 300px !important;
}


/* Copyright */

#copyright, #contrib-note {
	margin: 10px 0 0;
	padding: 1px 0 0;
	border-top: 2px groove #FFF;
}

#vpm-credit {
	text-transform: lowercase;
	text-shadow: 0 1px 0px #FFF, 0 0 2px #FFF;
	text-align: center;
	font-size: 13px;
	color: #777;
}

#vpm-credit a {
	display: inline-block;
	width: 120px;
	height: 19px;
	background: url('../img/vpm.png') no-repeat;
	text-indent: -1000in;
	position: relative;
	top: -2px;
	margin: 0;
}
