/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

#center-container a,
#center-container a:hover
{
	color: #0C7FCC;
}

#center-container a:hover
{
	background-color: #D9E8FB;
}

#center-container .guide-container hr
{
	display: block;
	height: 1px;
	background-color: #ccc;
	border: 0;
	margin: 1.35em 0;
}

#header-content
{
	padding-left: 5px;
	background-image: url(../images/ckeditorLogo.png);
	background-position: left center;
	height: 50px;
	line-height: 50px;
	padding-left: 48px;
	margin-left: 20px;
	font-weight: bold;
	font-size: 18px;
	text-shadow: 0 1px 0 #000;
}

#search-field-inputEl
{
	line-height: 22px !important;
}

/* Welcome page */
#welcome
{
	padding: 30px 15px 15px;
	width: 900px;
}

#welcomeLogo
{
	float: left;
	margin: 0 20px 0 0;
}

#intro
{
	overflow: hidden;
}

#license,
#contribute
{
	clear: both;
	overflow: hidden;
}

#popular,
#resources
{
	overflow: hidden;
}

#popular
{
	float: left;
	width: 70%;
	margin-bottom: -10px;
}

#popular ul li
{
	float: left;
	width: 50%;
}

#popular ul li dl
{
	padding: 0 10px 25px;
}

#popular ul li dl dt
{
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 10px;
}

#welcome h1
{
	padding-bottom: 20px;
	padding-top: 12px;
}

#welcome h2
{
	font-family: "Exo", sans-serif;
	color: #66AB16;
	font-size: 1.4em;
	margin: 20px 0;
}

#welcome .blist
{
	padding-left: 15px;
}

#welcome .blist li
{
	list-style-position: inside;
	list-style-type: disc;

}

#welcome p
{
	margin-bottom: 10px;
}

code
{
	background: #F7F7F7;
	border: 1px solid #E8E8E8;
	padding: 0 3px;
	font-size: 0.9em;
	border-radius: 5px;
	color: #314E64;
}

pre code
{
	border: none;
	background: none;
	color: inherit;
	padding: 0;
}

pre code a
{
	border-bottom: 1px dotted #AAA;
}

blockquote
{
	max-width: 900px;
	margin: 0 0 1em;
}

.tip,
.requirements
{
	box-shadow: 0 4px 0 0 #ccc;
	padding: 1.7em 1.3em 1.7em 6.5em !important;
	margin: 1.5em 0 !important;
	background: #f7f7f7;
	overflow: hidden;
	position: relative;
	/* If other than p element is used for the box,
	then defaults set by JSDuck does not work. */
	max-width: 900px;
}

.tip:before,
.requirements:before
{
	content: url(../images/tip.png);
	position: absolute;
	top: 50%;
	/* Note: Half the height of the icon */
	margin-top: -24px;
	left: 1.5em;
}

.tip.alert
{
	background: #FFF9CC;
}

.tip.alert:before
{
	content: url(../images/alert.png);
	margin-top: -18px;
}

.requirements:before
{
	content: url(../images/require.png);
}

/* Hide image borders in guide index. */
.thumb-list dd .thumb img
{
	border: 0;
}

.guide-container .toc
{
	max-width: 400px;
}

.guide-container .toc li > ol {
	margin-bottom: 0;
}

/*
Float the TOC box if there's enough space for it,
so it does not cover the text which has max-width 900px.
Also, make sure that there's reasonable vertical space.
*/
@media all and (min-width: 1650px) and (min-height: 500px)
{
	.guide-container .toc
	{
		position: fixed;
		top: 170px;
		right: 20px;
		max-height: calc(100vh - 210px);
		overflow: auto;
	}
}

@media all and (min-width: 1650px) and (min-height: 500px)
{
	#dev_section508-section-ckeditor-section-508-compliance + div.toc,
	#dev_wcag-section-ckeditor-wcag-2\.0-compliance + div.toc
	{
		position: relative;
		top:0;
		right:0;
	}
}

.guide-container img
{
	border: 1px solid #E8E8E8;
	padding: 5px;
	display: inline-block;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	box-sizing: content-box;
}

img.inline
{
	padding: 0 5px;
	vertical-align: bottom;
	border: none;
}

.guide-container a > img:hover
{
	border-color: #A0C9E4;
}

.guide-container pre
{
	white-space: pre-wrap; /* CSS 2.1 */
	word-wrap: break-word; /* IE7 */
}

.guide-container h4
{
	margin-bottom:6px;
}

.section508 td:first-child,
.wcag td:first-child {
	width:50%;
}

.section508 td:nth-child(2) { width:25%; }

#center-container .guide-container table.section508 td,
#center-container .guide-container table.section508 th,
#center-container .guide-container table.wcag td,
#center-container .guide-container table.wcag th,
#center-container .guide-container table.a11ychecker td,
#center-container .guide-container table.a11ychecker th {
	border: 1px solid #f0f0f0;
	padding: 3px 7px 2px;
	font-size: 1.1em;
}

.guide-container .x-panel-body table.section508 tr:first-child td,
.guide-container .x-panel-body table.a11ychecker tr:first-child td {
	font-weight:normal;
	color:inherit;
}

.guide-container .responsive img {
	width: 100%;
	height: auto;
}

.guide-container .x-panel-body ul > li > ul {
	margin-bottom: 0;
}

.guide-container .x-panel-body ol > li > ol {
	margin-bottom: 0;
}

.guide-container td.hints-benchmark {
	width:210px;
}

.guide-container td.hints-result {
	width:110px;
}

#center-container .guide-container table.hints td, #center-container .guide-container table.hints th {
	padding:8px;
	text-align: left;
}
