/**
 * Demo frames styles
 */

body {
	background: #fff;
	font-family: sans-serif;
	padding: 12px;
}

.demo-default-blue {
	background: #e7eeee;
}

.demo-bg-1 {
	background: #eb88d9;
}
.demo-bg-2 {
	background: #ffe9bc;
}
.demo-bg-3 {
	background: #c2adfb;
}
.demo-bg-4 {
	background: #eee;
}

.demo-no-pad {
	padding: 0;
}
.demo-no-pad-top {
	padding-top: 0;
}
.demo-serp-ads {
	padding: 10px;
	background: #f5f5f5;
	margin: 0 auto;
	max-width: 600px;
}
.demo-serp-ads > div {
	background: white;
}

.grid-demo > .row > div {
	line-height: 2.5em;
	background: white;
	text-align: center;
}
/* Only show borders on both sides of the last column, all others - show only left border. */
.grid-demo > .row > div:not(:last-of-type) {
	border-left: 2px solid #999;
}
.grid-demo > .row > div:last-of-type {
	border-left: 2px solid #999;
	border-right: 2px solid #999;
}
/* This one is slightly different, only show borders in between two cols. */
.grid-demo > .row .row > div:not(:first-of-type) {
	border-left: 2px solid #999;
}
.grid-demo > .row .row > div:last-of-type {
	border-left: 2px solid #999;
	border-right: none;
}

.grid-demo .row .sub {
	background: #e9e9e9;
}
/* Rows within rows need a margin to look good. */
.grid-demo .row .row,
.grid-demo .row .row .row {
	margin-top: 5px;
}

/**
 * Navbar modificiations
 */
.ui-logo a {
	background: url('http://placehold.it/160x60') no-repeat;
	background-size: contain;
}
@media (max-width: 319px) {
	.ui-logo a {
		background: url('http://placehold.it/130x32') no-repeat;
	}
}
@media (min-width: 320px) and (max-width: 768px) {
	.ui-logo a {
		background: url('http://placehold.it/160x60') no-repeat;
	}
}

/**
 * Hide SVG in XS demos
 */
@media (max-width: 319px) {
	.svg-def svg {
		position: absolute;
		top: -1rem;
		left: -1rem;
		width: 0;
		height: 0;
	}
}

/**
 * Testing mode
 */

.testing-visual * {
	-webkit-transition: none !important;
	-moz-transition:    none !important;
	transition:         none !important;
	-webkit-animation: none !important;
	-moz-animation:    none !important;
	animation:         none !important;
}
