﻿@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

div.atlas-index-container
{
	h1#world-data-atlas-header
	{
		font-size: 2em;
		margin: 0;
		text-align: center;
	}

	div#promo
	{
		font-family: @title-font;
		margin-bottom: 1em;

		p
		{
			color: #777;
			margin: 0;
			text-align: center;

			&.data-matrix
			{
				margin-bottom: 1.5em;
			}

			a
			{
				color: @accent-color;
			}
		}

		ul
		{
			padding: 0;
			margin: 10px 0 20px 0;
			list-style: none;

			li
			{
				display: inline-block;
				background: #f5f5f5;
				-moz-border-radius: 30px;
				-webkit-border-radius: 30px;
				border-radius: 30px;
				width: 150px;
				height: 60px;
				margin-left: 110px;
				padding-left: 5px;
				text-align: center;

				html[dir='rtl'] &
				{
					.padding-left-right(0, 5px);

					&:first-child
					{
						margin-right: 110px;
					}

					&:last-child
					{
						margin-left: 0;
					}
				}

				span.value
				{
					width: 58px;
					height: 58px;
					background: white;
					border: 1px solid #cacaca;
					-moz-border-radius: 30px;
					-webkit-border-radius: 30px;
					border-radius: 30px;
					display: inline-block;
					text-align: center;
					line-height: 58px;
					float: right;

					html[dir='rtl'] &
					{
						float: left;
					}
				}

				span.text
				{
					vertical-align: middle;
					display: table-cell;
					height: 58px;
					width: 6em;
					text-align: center;
				}
			}
		}

		div.data-app
		{
			font-size: 80%;
			display: inline-block;
			width: 420px;
			height: 130px;
			border: 1px solid #dcdcdc;
			-moz-border-radius: 5px;
			-webkit-border-radius: 5px;
			border-radius: 5px;
			float: left;
			padding: 0 10px;
			position: relative;
			overflow: hidden;

			html[dir='rtl'] &
			{
				float: right;
			}

			& > span.icon
			{
				width: 45px;
				height: 45px;
				position: absolute;
				top: 7px;
				left: 15px;
				.hires('/img/v2/atlas/icon_dc');

				html[dir='rtl'] &
				{
					left: 390px;
				}
			}

			&.data-bulletin
			{
				margin-left: 25px;

				& > span.icon
				{
					.hires('/img/v2/atlas/icon_db');
				}

				html[dir='rtl'] &
				{
					.margin-left-right(0, 25px);
				}
			}

			h2
			{
				margin: 10px 0 0 55px;

				html[dir='rtl'] &
				{
					margin: 10px 55px 0 0;
				}
			}

			& > p
			{
				margin-left: 55px;

				html[dir='rtl'] &
				{
					.margin-left-right(0, 55px);
				}
			}

			p
			{
				text-align: left;

				html[dir='rtl'] &
				{
					text-align: right;
				}
			}

			a
			{
				color: @accent-color;
				text-decoration: none;
			}

			div.data-snippet
			{
				position: absolute;
				top: 75px;
				font-size: 90%;
				border-top: 1px solid #ededed;
				padding-top: 10px;
				width: 420px;

				& > span
				{
					display: inline-block;
					text-align: center;
					color: #6e6e6e;
					float: left;
					margin-left: 15px;
					font-size: 80%;

					html[dir='rtl'] &
					{
						float: right;
						.margin-left-right(0, 10px);
					}

					span
					{
						display: block;

						&.day
						{
							font-size: 2em;
						}
					}
				}

				h3
				{
					font-size: 1.1em;
					margin: 0;
					width: 350px;
					white-space: nowrap;
					text-overflow: ellipsis;
					overflow: hidden;
					margin-top: .2em;
					margin-left: 55px;

					html[dir='rtl'] &
					{
						.margin-left-right(0, 55px);
					}
				}

				p
				{
					width: 350px;
					font-size: .9em;
					white-space: nowrap;
					text-overflow: ellipsis;
					overflow: hidden;
					margin-left: 55px;

					html[dir='rtl'] &
					{
						.margin-left-right(0, 55px);
					}
				}
			}
		}
	}
}

div#atlas-header.menu-on-left
{	
	margin-top: 25px;
	width: 200px;
	float: left;
	margin-right: 0 !important;

	div#site-holder div#site-main.view &
	{
		 margin-right: 0 !important;
	}

	html[dir='rtl'] &
	{
		float: right;
		margin-left: 0px !important;
	}

	ul#atlas-tabs
	{
		background: white;
		margin: 0;

		li
		{
			display: block;
			padding-bottom: .5em;
			margin-right: 0;
			width: 200px;

			h2
			{
				font-size: 100%;
				margin: 0;
				border-left: 5px solid transparent;
				padding-left: .5em;
				display: inline-block;

				&.active
				{
					border-left-color: @accent-color;
					border-bottom: 0 !important;
					html[dir='rtl'] &
					{
						border-right-color: @accent-color;
						border-left-color: 0;
					}
				}
				
				html[dir='rtl'] &
				{
					border-right: 5px solid transparent;
					border-left: 0;
					.padding-left-right(0, .5em);
				}

				a
				{
					text-decoration: none;
					color: #292929;
					font-size: 18px;
				}
			}

			&:after
			{
				display: block;
				width: 100%;
				content: "";
				height: .5em;
			}

			&.top-topic
			{
				margin-left: 1em;
				width: 180px;

				&:after
				{
					border-bottom: 0;
				}

				a
				{
					font-size: 14px;
					font-weight: normal;
				}
			}

			&.last
			{
				padding-bottom: 0;
			}
		}
	}
}

div#atlas.new.menu-on-left
{
	border-left: 1px solid #c8d7df;
	width: 679px;
	float: right;
	margin: 5px 0 0 0 !important;
	padding-left: 20px;
	min-height: 560px;

	html.no-boxshadow &
	{
		border-left: 2px solid rgb(215, 215, 215);
		width: 678px;
	}

	html[dir='rtl'] &
	{
		border-left: 1px solid #c8d7df;
		float: left;
		margin: 5px 0 15px 0 !important;
		padding-left: 0;
		padding-right: 20px;

		div.atlas-tab-content
		{
			width: 677px;
		}
	}

	html.no-boxshadow[dir='rtl'] &
	{
		border-left: none;
		border-right: 2px solid rgb(215, 215, 215);
	}

	#hash-commodities
	{
		width: 660px;
		padding-left: 20px;

		html[dir='rtl'] &
		{
			.padding-left-right(0, 20px);
		}

		ul.tiles li.commodity-tile
		{
			margin: 0 45px 15px 0;

			html[dir='rtl'] &
			{
				margin: 0 0 15px 45px;
			}
		}

		.columns
		{
			display: inline-block;
			margin-top: 10px;
		}
	}
}