﻿@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

@slate-blue: #6993a9;
@mercury: #e2e2e2;
@alabaster: #f7f7f7;
@sky: #c8d7df;

div.view div#page-header div#page-header-title
{
	margin: 15px;

	h2
	{
		margin: 0;
		padding: 0;
		font: 18pt @title-font;
	}

	html[dir='rtl'] &
	{
		margin: 15px;
	}
}

html[dir='rtl'] div#page-actions
{
	padding-right: 15px;
}

div#home-box
{
	padding: 30px 15px 0 15px;
	min-height: 500px;

	#see-also
	{
		padding: 0;
	}
}

div.grid-view
{
	display: block;

	&.half > div
	{
		width: 425px;
		float: left;
		margin-left: 53px;
		padding: 0px;

		&:first-child
		{
			margin-left: 0px;
			width: 430px;
		}
	}

	h1
	{
		font-size: 120%;
		margin-top: 0px;
		margin-bottom: 0px;
	}

	div.scroller
	{
		display: none;
		width: 80px;
		margin-top: -20px;
		float: right;
		text-align: center;
		position: relative;

		img
		{
			cursor: pointer;
		}

		span
		{
			top: -2px;
			left: 10px;
			position: absolute;
			width: 60px;
			text-align: center;
		}
	}

	div.scrollable
	{
		overflow: hidden;
		width: 915px;
		padding-left: 15px;
		margin-left: -15px;
		height: 178px;
	}

	li
	{
		display: inline-block;
		position: relative;
		margin-left: 50px;
		vertical-align: top;
		padding-bottom: 20px;

		html[dir='rtl'] &
		{
			.margin-left-right(0px, 50px);
		}

		&:first-child
		{
			margin-left: 0px;
		}

		&.first
		{
			margin-left: 0px;

			html[dir='rtl'] &
			{
				margin-right: 0;
			}
		}

		a
		{
			color: Black;
			text-decoration: none;
			font: 10pt @title-font;
		}

		& > a
		{
			display: table-cell;
			vertical-align: middle;
			width: 180px;
			height: 110px;
			border: 1px solid #c0c0c0;
			text-align: center;
			background-color: #eeeeee;

			&[href]
			{
				background-color: #ffffff;
				background-image: url(/img/v2/shared/page.png);
				background-repeat: no-repeat;
				background-position: center;
			}

			&.page
			{
				background-image: url(/img/v2/shared/page.png);
			}

			&.dataset
			{
				background-image: url(/img/v2/shared/dataset.png);
			}

			&.presentation
			{
				background-image: url(/img/v2/shared/presentation.png);
			}

			div
			{
				width: 180px;
				height: 110px;
				background-repeat: no-repeat;
			}
		}

		span
		{
			width: 180px;
			height: 53px;
			display: block;
			text-align: center;
			overflow: hidden;
			font-family: @title-font;
			font-size: 10pt;

			a h3
			{
				font: 10pt @title-font;
				margin: 0;
			}
		}
	}

	h1 a
	{
		text-decoration: none;
	}

	ul
	{
		margin-bottom: 0px;
		padding: 0px;
		position: relative;

		html[dir='rtl'] &
		{
			padding: 0;
		}
	}
}

div.sorting
{
	float: right;
	font: bold 9pt @title-font;

	html[dir='rtl'] &
	{
		float: left;
		margin-left: 15px;
	}

	span
	{
		float: right;
		margin-top: 10px;

		html[dir='rtl'] &
		{
			float: left;
		}
	}

	ul#sort
	{
		list-style: none;
		padding: 0;
		margin: 5px 15px 0 10px;
		display: inline-block;
		vertical-align: text-top;

		li
		{
			margin: 0;
			display: inline-block;
			padding: 4px 8px;
			margin-left: -3px;
			background-color: #eaeaea;

			a
			{
				color: #222;
				font: bold 9pt @title-font;
				display: inline-block;
				text-decoration: none;
			}

			&.active
			{
				background-color: @accent-color;

				a
				{
					color: #fff;
				}
			}

			&#popularity
			{
				border-radius: 2px 0 0 2px;
			}

			&#date
			{
				border-right: 1px solid #c0c0c0;
				border-left: 1px solid #c0c0c0;
			}

			&#name
			{
				border-radius: 0 2px 2px 0;
			}
		}
	}
}

ul.tabs
{
	list-style-type: none;
	padding: 5px 15px;
	margin-top: 0;

	li
	{
		text-decoration: none;
		font-weight: bold;
		font-family: @title-font;
		display: inline;
		color: #222;
		cursor: pointer;
		padding: 5px 15px;

		&.active
		{
			border-bottom: 2px solid @accent-color;
		}
	}
}

ul.tabs.down
{
	border-bottom: 1px solid #ccc;

	li
	{
		color: @accent-color;

		&.active
		{
			color: #505050;
			border: 1px solid #ccc;
			background: white;
			border-radius: 2px;
			border-bottom: 1px solid white;
		}
	}
}

div.tab-container
{
	div#page-body
	{
		padding: 0;
	}

	div#home-content
	{
		display: none;

		div.sorting
		{
			margin-top: -40px;
		}

		div#home-box
		{
			padding-top: 5px;
		}
	}

	&.down div#home-content
	{
		margin-top: 50px;

		div#home-box
		{
			padding-top: 0;
		}
	}
}

div#set-overview-dialog
{
    display: none;

    span.wrong-id
    {
        color: red;
        display: none;
    }

    label
    {
        display: block !important;
        font-size: 14px;
        font-family: @title-font;
        font-weight: bold;
        margin-bottom: 5px;
        line-height: 1.43;
        color: @slate-blue;
        text-transform: uppercase;
    }

    input[type=text]
    {
        background-color: @alabaster;
        border: 1px solid @mercury;
        color: #000;
        font-size: 14px;
        line-height: 18px;
        letter-spacing: 0.17px;
        font-family: @title-font;
        padding: 6px 7px;
        width: 100%;
        box-sizing: border-box;

        &:focus
        {
            outline: 0;
            -webkit-appearance: none;
        }

        &::selection
        {
            background-color: @sky;
        }

        &::-moz-selection
        {
            background-color: @alabaster;
        }
    }
}

.tag-page-stats
{
	font: .9em @title-font;
	margin-top: 5px;
	padding: 0 15px;
	float: right;

	html[dir=rtl] &
	{
		float: left;
	}

	span
	{
		display: inline-block;
		width: 16px;
		height: 15px;
		margin-right: .5em;
		margin-left: 1em;
		padding-top: 2px;
		vertical-align: middle;
		background-repeat: no-repeat;

		&.page-pins
		{
			.hires('/img/v2/page/ico-pin', @ext:'png?v=2');
		}

		&.page-views
		{
			.hires('/img/v2/page/ico-views');
		}
	}
}

#insights-header > a
{
	float: right;
	font: .8em @title-font;
	display: inline-block;
	padding: 10px 5px;

	html[dir=rtl] &
	{
		float: left;
	}

	&#download-cheat-sheet
	{
		float: right;
		outline: none;
		margin-top: 5px;
		font: bold 10.5pt @title-font;
		padding: 6px 15px;
		.margin-left-right(10px, 0);

		html[dir=rtl] &
		{
			float: left;
			.margin-left-right(0, 10px);
		}
	}
}


@media all and (min-width: 1440px)
{
	.with-media#site-holder
	{
		div.grid-view
		{
			html[dir=rtl] &
			{
				margin: 20px 5px 0 0;
			}

			ul
			{
				padding: 0;
			}

			li
			{
				.margin-left-right(0, 50px);

				html[dir=rtl] &
				{
					.margin-left-right(50px, 0);
				}
			}
		}
	}
}
