// //////////////////////////////////////////
// // LINK ABSTRACT MODULE
// //////////////////////////////////////////

.link-abstract-module {

	.module-content{
		@include module-content($link-abstract-module-width);
	}

	.module-text {
		
		& + .module-links {
			padding-top: $abstract-li-space-between*1.5;
		}
	}

	.module-links {
		margin-bottom: 0;
		padding: 0;
		list-style: none;

		ul {
			list-style: none;

			> li {
				padding: $abstract-li-padding;
				padding-left: $abstract-li-left-padding;
				position: relative;

				& + li{
					margin-top: $abstract-li-space-between;
				}
			}
		}

		.title {
			font-size: $abstract-title-font-size;
			font-weight: $abstract-title-font-weight;
			display: inline-block;
			margin: $abstract-title-margin;
			font-family: $abstract-title-font-family;
			text-transform: $abstract-text-transform;
			line-height: 1.3;
		}

		.desc {
			position: relative;
			clear: both;

			& > *:first-child {
				margin-top: 0;
			}

			& > *:last-child {
				margin-bottom: 0;
			}
		}

		a {
			text-decoration: none;

			&:before {
				content: $fa-var-external-link;
				font-family: 'FontAwesome';
				position: absolute;
				left: 0;
				top: 0.5em;
				text-align: center;
				@include transition(color 0.3s ease);
				font-size: 1rem;
				color: $abstract-icon-color;
			}
		}

		a[href^='/'],
		a[href^='..'] {
			/* internal relative link */

			&:before {
				content: $fa-var-arrow-right;
			}
		}

		$icon-links: (
			pdf:	$fa-var-file-pdf-o,
			doc:	$fa-var-file-word-o,
			docx:	$fa-var-file-word-o,
			xl:		$fa-var-file-excel-o,
			xls:	$fa-var-file-excel-o,
			xlsx:	$fa-var-file-excel-o,
			ppt:	$fa-var-file-powerpoint-o,
			zip:	$fa-var-file-archive-o,
		) !default;

		@each $doc-type, $link-icon in $icon-links {

			a[href$='.#{$doc-type}'] {
				
				&:before {
					content: $link-icon;
				}
			}
		}
	}
}
