/*------------------------------------*\
    $ISSUE EDITOR COMPONENT
\*------------------------------------*/

.storyListing {

	.storySection {
		background: white;
		border: 1px solid #d5dade;
		border-radius: 3px;
		margin-bottom: 28px;
		-webkit-box-shadow: 0 1px 1px 1px #e7ebee;
		        box-shadow: 0 1px 1px 1px #e7ebee;

		&.section_0 {

			dd {
				display: block;
			}
		}
	}

	dt {
		padding: 24px 20px;
		border-bottom: 1px solid #d5dade;
		height: 66px;
		@include clearfix();

		.sectionTitle {
			@include type($base-font, 1.7, 1.7, #1f2d34, $medium);
			text-decoration: none;
			float: left;
			display: block;
			height: 17px;

			&:visited {
				color: #1f2d34;
			}

			&:hover {
				@include icon($pen, right);
			}
		}

		.accordionAction {
			@include sprite($accordion-expand);
			float: right;
			position: relative;
			top: -5px;

			&.open {
				@include sprite($accordion-close);
				top: 0;
			}
		}
	}

	dd {
		display: none;
	}

	.articlesList {

		>li {
			list-style: none;
			padding: 24px 20px;
			border-bottom: 1px solid #d5dade;

			&:hover {
				background: #f7f9fa;

				.storyActions {
					display: block;
				}

				.story_details .storyMeta {
					display: block;
				}
			}

			img {
				display: block;
				float: left;
				width: 40px;
				margin-right: 25px;
			}

			.storyItem {
				@include clearfix;
				position: relative;
			}

			.story_details {
				float: left;

				.storyTitle {
					@include type($base-font, 1.4, 1.4, #1f2d34, $medium);
					display: block;
					float: left;
					margin-bottom: 5px;

					&:hover {
						@include icon($pen, right, 5px);
						margin-bottom: 0;
					}

					&:focus {
						outline: 0px solid transparent;
					}
				}

				.storySubCategory {
					@include type($base-font, 1, 1, #575f66, $medium);
					display: block;
					float: left;
					clear: left;
					margin-top: 5px;
				}

				.storyMeta {
					display: none;
					float: left;
					margin-top: -4px;
				}


				%storyDateAuth {
					@include type($base-font, 1, 1, #8f9498, $medium);
					display: inline-block;
					vertical-align: middle;
					height: 11px;
				}

				.storyPublishDate {
					@extend %storyDateAuth;
					@include icon($story-clock, left, -2px);
					margin-left: 10px;
				}

				.storyTimeSeperator {
					@extend %storyDateAuth;
					width: 2px;
					height: 2px;
					background: #a7abaf;
					vertical-align: middle;
					margin-top: 1px;
				}

				.storyPublishTime {
					@extend %storyDateAuth;
				}

				.storyAuthor {
					@extend %storyDateAuth;
					@include icon($story-profile, left, -2px);
					margin-left: 10px;
				}
			}

			.storyActions {
				float: right;
				display: none;
				height: 38px;
			}

			.moveToSection {
				position: absolute;
				right: -50px;
				width: 230px;
				top: 40px;
				background: white;

				.selectboxit-options {
					position: relative;
					display: block;
					overflow: visible;
					border: 1px solid #d9dee0;
    				border-radius: 5px;

					.moveToSection_title {
						@include type($base-font, 1, 1, #b2b9bf, $bold);
						padding: 20px 15px 10px 15px;
						text-transform: uppercase;
						word-spacing: 3px;
					}
				}
			}

			//Empty View
			.emptySection {
				text-align: center;

				p {
					@include type($base-font, 1.5, 1.5, #575f66, $regular);
				}
			}
		}

		%story_actions {
			display: inline-block;
			width: 35px;
			height: 35px;
			cursor: pointer;
			vertical-align: middle;
		}

		.storyEdit {
			@extend %story_actions;
			@include sprite-no-dim($story-edit);
		}

		.storySettings {
			@extend %story_actions;
			@include sprite-no-dim($story-settings);
		}

		.storyPreview {
			@extend %story_actions;
			@include sprite-no-dim($story-preview);
		}

		.storyDelete {
			@extend %story_actions;
			@include sprite-no-dim($story-delete);
		}

		.storyOverview {
			@include sprite($story-expand);
			display: inline-block;
			cursor: pointer;
			vertical-align: middle;
			margin-left: 10px;
		}

		.storyMove {
			@include sprite($story-move);
			display: inline-block;
			cursor: pointer;
			margin-left: 10px;
			position: relative;
			top: 2px;
		}
	}

	.sectionEmpty {
		text-align: center;
		margin-top: 100px;

		.sectionEmpty_title {
			display: block;
			@include type($base-font, 3.6, 3.6, #1f2d34, $thin);
			margin-bottom: 20px;
		}
	}
}