// //////////////////////////////////////////
// // LINK MODULE
// //////////////////////////////////////////

.link-module {

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

	.module-links {
		padding-top: $link-module-li-space-between*1.5;
	
		ul{
			padding: 0;
			margin: 0;

			@if $link-module-columns != '1'{
				columns: $link-module-columns;
				column-gap: $link-module-column-gap;

				@include break(ml){
					columns: 1;
				}
			}	
		}

		li {
			padding: 0 0.5rem;

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

		a {
			font-size: $link-module-title-font-size;
			padding-left: $link-module-li-left-padding;
			font-weight: $link-module-font-weight;
			font-family: $link-module-font-family;
			text-transform: $link-module-text-transform;
			display: inline-block;
			position: relative;
			text-decoration: none;

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

		$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-module-icon in $icon-links {

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

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

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