/** 
 * SilverStripe Black Candy Theme
 * http://www.silverstripe.com
 *
 * This typography file is included in the WYSIWYG editor and the front end. It provides
 * a place to add link styles and font styles you would like in the CMS and the Front End.
 */

 
/* GENERIC STYLES 
-------------------------------------------- */
 
.typography * {
	font-family: Verdana, Lucida, Arial, sans-serif; 
}

/* PARAGRAPHS 
-------------------------------------------- */
.typography p { 
 	color: #666;
 	line-height: 18px;
 	font-size: 11px;
	margin: 0 0 18px 0;
}

/* QUOTES
-------------------------------------------- */
.typography blockquote {
	margin: 10px;
	font-size: 1.4em;
	color: #777;
	font-style: italic;
}	
.typography q {
	display:block;
	font-size: 0.8em;
	margin: 1em 1em;
	padding: 0.5em;
	border: 1px #ccc solid;
}

/* LINKS 
-------------------------------------------- */

.typography a { 
 	text-decoration: none; 
	color: #3E91C4;
}
	.typography a:hover { 
 		text-decoration: underline;
	}

	/* LINK ICONS - shows type of file
	------------------------------------ */
	.typography a[href$=".pdf"],
	.typography a[href$=".PDF"],
	.typography a.pdf {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_white_acrobat.png) no-repeat left center;
	}
	.typography a[href$=".doc"],
	.typography a[href$=".DOC"],
	.typography a.doc {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_word.png) no-repeat left center;
	}
	.typography a[href$=".xls"],
	.typography a[href$=".XLS"],
	.typography a.xls {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_excel.png) no-repeat left center;
	}
	.typography a[href$=".gz"],
	.typography a[href$=".GZ"],
	.typography a[href$=".gzip"],
	.typography a[href$=".GZIP"],
	.typography a[href$=".zip"],
	.typography a[href$=".ZIP"],
	.typography a.archive {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/page_white_zip.png) no-repeat left center;
	}
	.typography a[href$=".exe"],
	.typography a[href$=".EXE"],
	.typography a.application {
		padding: 2px;
		padding-left: 20px;
		background: url(../images/icons/application.png) no-repeat left center;
	}
	
	.no-a-typography {
		padding: 0 !important;
		padding-left: 0 !important;
		background: none !important;
	}

/* LIST STYLES 
-------------------------------------------- */
.typography ul, 
.typography ol {
	margin: 0 0 18px 24px;
	color: #666;
}
	.typography li {
		margin: 5px 10px;
		font-size: 11px;
	}
		.typography li li {
			font-size: 10px;
		}

/* DL styles */
.typography dl {
	margin: 0 0 12px 0;
	color: #666;
	font-size: 11px;
}

	.typography dl dd {
		margin-bottom: 10px;
		margin-left: 32px;
	}
	
	.typography dl dt {
		margin-bottom: 2px;
	}

code {
	font-family: monospace !important;
	font-size: 12px;
}

/* Various useful blocks */
.typography .info {
	color: #666;
	font-style: italic;
}

.nobr {
	white-space: nowrap;
}

.typography p.important, .typography div.important,
.typography p.quote, .typography div.quote
{
	padding: 6px 12px 12px 40px;
	background-image: url(../images/importantBg.png);
	background-repeat: no-repeat;
	background-position: 3px 7px;
}

.typography p.quote, .typography div.quote  {
	background-image: url(../images/quoteBg.png);
}

/* HEADER STYLES 
-------------------------------------------- */

.typography h1,
.typography h2 { 
	color: #4EA3D7; 
	margin: 0 0 18px 0;
	font-weight: 300;
	font-family: Tahoma, Verdana, sans-serif;
}

.typography h1 {
	font-size: 24px;
}
.typography h2 { 
 	font-size: 20px; 
}	
.typography h3 {
	color: #222;
	margin: 0 0 18px 0;
	font-weight: 300;
	clear: both;
	font-size: 18px;
}
.typography h4 {
	font-size: 16px;
	color: #222;
	width: 95%;
	font-weight: 300;
	line-height: 18px;
	border-bottom: 1px solid #ccc;
	margin: 0 0 16px 0;
}
.typography h5 {
	font-size: 14px;
	color: #222;
	font-weight: 700;
	margin: 0 0 12px 0;
}
.typography h6 {
	font-size: 13px;
	color: #555;
	line-height: 1.4em;
	margin: 0 0 12px 0;
}

/* PRE STYLES 
-------------------------------------------- */

.typography pre {
	/* all importants here are for prism overriding */
	font-family:"Courier New",Courier;
	display:block;
	font-size:1.2em;
	margin: 0 !important;
	margin-bottom: 18px !important; /* the same size as paragraphs have */
	padding: 0.5em 0.5em 0.5em 1em !important;
	
	overflow: auto;
    /* Without this Firefox can not show scrollbar when needed if "overflow: auto" */
     min-height: 18px;

   /* Without width overflow in IE6 does not working at all */
    _width: 100%;
    /* избавляемся от вертикального скролл-бара */
    _overflow-y: hidden; /* IE6 */ 
    *overflow-y: hidden; /* IE7 */ 

    /* выводим текст из-под горизонтального скролл-бара (только если скроллинг есть) */
    _padding-bottom: expression(scrollWidth > offsetWidth ? '20px' : '0'); /* IE6 */ 
    *padding-bottom: expression(scrollWidth > offsetWidth ? '20px' : '0'); /* IE7 */ 
}

.typography li pre {
	margin-top: 5px !important; /* as list items have for the top */
	margin-bottom: 0px !important; /* don't add bottom margin for pre inside lists (it works until a pre is the last element of an li) */
}

/**
 * The same borders and background for .important, .quote, pre
 */
.typography p.important, .typography div.important,
.typography p.quote, .typography div.quote,
.typography pre
{
	background-color: #eee !important;  
	border: 1px #ccc solid;
}

/* TABLE STYLING 
-------------------------------------------- */
.typography table {
	margin: 0 0 18px 0;
	font-size: 11px;
	color: #666;
	border-collapse:collapse;
}
	.typography tr {}
	
		.typography td {
			border:1px solid #999;
			padding:5px;
		}

/* WYSIWYG EDITOR ALIGNMENT CLASSES 
-------------------------------------------- */
.typography .left {
	text-align: left;
}

.typography .center {
	text-align: center;
}
.typography .right {
	text-align: right;
}

/* IMAGES 
-------------------------------------------- */
.typography img {
	border: none;
}
	.typography img.right {
		float: right;
		margin-left: 20px;
	}
	.typography img.left {
		margin-right: 3px;
		float: left;
	}
	.typography img.leftAlone {
		/*float: left;*/
		/*margin-right: 100%;*/
		float: none;
		display: block;
	}
	.typography img.center {
		float: none;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
