
/******************************************/
/*  fixes by isginf                       */
/******************************************/

/* Fix for header overlaying div */
#headerLogo {
	height: auto;
}

/* Fix for navis, remove last delimiter line */ 
#metaNavi li:last-child,
#mainNavi ul li:last-child a {
	border-right: 0;
}

/* Print header logo was invisible because of black bar if logged in */
@media print {
	.withStatusBar #bgUserStatusBar {
		background: none;
	}
}

/* Side column inside the (white) content div */
.withContentNavi #contentNavi {
	min-height: 420px;
}
.withContentColSide #contentTop,
.withContentColSide #contentMain {
	width: calc(100% - 188px);
	float: left;
}
.withContentNavi.withContentColSide #contentTop,
.withContentNavi.withContentColSide #contentMain {
	width: calc(100% - 248px - 188px);
	float: left;
}
.withContentColSide #contentColSide {
	width: 188px;
	float: right;
	min-height: 420px;
}
.withContentColSide #contentColSide > .inside {
	padding-top: 0;
}

/* Static width of side column (outside content div) and space between */
/* Also fixing digit switching (from 198 -> 189px) */
body.colSide #contentContainer,
body.colSide #contentContainer2 {
	width: calc(100% - 10px - 189px);
}
body.colSide #contentContainerSide {
	width: 189px;
}

/* Make meta navi flush with right edge */
#metaNavi > ul > li:last-child {
	padding-right: 0;
}

/* Search box in the top right corner */
.withSearch #search {
	position: absolute;
	right: 0;
	top: 55px;
	width: 189px;
	height: 24px;
	z-index: 100;
	background-color: #565754;
}
.withSearch #search > form > label {
	display: none;
}
.withSearch #search > form > #searchinput {
	float: left;
	width: 164px;
	height: 24px;
	padding: 0 6px 0 6px;
	font-size: 11px;
	color: #565754;
}
.withSearch #search > form > #searchsubmit {
	float: left;
	width: 14px;
	height: 14px;
	padding: 5px;
	margin-left: 1px;
}
@media print {
	.withSearch #search {
		display: none;
	}
}

/* Portal navigation in the top right corner */
.withPortalNavi #metaNavi {
	width: 189px;
	overflow: hidden;
}
.withPortalNavi #portalNavi {
	position: absolute;
	right: 189px;
	top: 30px;
	min-height: 50px;
	margin-right: 10px;
	border-right: 1px solid #627aa8;
}
.withPortalNavi #portalNavi > ul {
	list-style: none;
	list-style-type: none;
	text-align: right;
	padding-right: 10px;
}
.withPortalNavi #portalNavi > ul > li {
	height: 16px;
	line-height: 12px;
}
.withPortalNavi #portalNavi > ul > li > a {
	display: inline-block;
	line-height: 12px;
	font-size: 12px;
	color: #FFFFFF;
	text-decoration: none;
	font-weight: bold;
	cursor: pointer;
}
.withPortalNavi #portalNavi > ul > li > a:hover {
	border-bottom: 1px solid #FFFFFF;
}
@media print {
	.withPortalNavi #portalNavi {
		display: none;
	}
}

/* Download link */
a.linkDownload,
#content a.linkDownload {
	background: url('../images/arrow-download.png') no-repeat right center;
	padding-right: 15px;
	display: inline-block;
	margin-right: 5px;
	margin-bottom: -1px;
}

/* Update link */
a.linkUpdate,
#content a.linkUpdate {
	background: url('../images/arrow-update.png') no-repeat right center;
	padding-right: 15px;
	display: inline-block;
	margin-right: 5px;
	margin-bottom: -1px;
}

/* Lock link */
a.linkLock,
#content a.linkLock {
	background: url('../images/lock.png') no-repeat right center;
	padding-right: 15px;
	display: inline-block;
	margin-right: 5px;
	margin-bottom: -1px;
}

/* Font size outside of a paragraph */
.inside {
	font-size: 14px;
}

/* Fix jumping line height on a:hover */
a {
	border-bottom: 1px solid transparent;
}

/* Add margin after content navi if less content than navi */
.withContentNavi #contentNavi {
	margin-bottom: 30px;
}

/* Remove space between boxes to explicitly define paddings inside of boxes*/
.withContentNavi #contentTop {
	width: calc(100% - 248px);
	padding-left: 8px;
}
.withContentNavi #contentMain {
	width: calc(100% - 240px);
	padding-left: 8px;
}

/* Boxes outside side-column */
#contentMain .box p, #contentMain .box li {
	font-size: 14px;
}
#contentMain .box p.small {
	font-size: 12px;
}

/* Place image beside text */
.textimage > img, .textimage > .text {
	float: left;
}
.textimage > .text {
	padding-left: 10px;
}

/* Fix width and position (center with 10px offset) of page to match ethz.ch (full layout) */
#wrapper, #footer, #userStatusBar {
	width: 980px;
	right: 5px;
}
body {
	min-width: 990px;
}

/* Grey text-boxes (from ETH layout) */
.grey {
	background-color: #eaecee;
	padding: 15px;
}

/* Adjust padding-top of h2/h3 in side columns */
body.colSide #contentContainerSide h2,
#contentContainerSide > .inside h2,
#contentContainerSide > .inside h3,
#contentColSide > .inside h2,
#contentColSide > .inside h3 {
	padding-top: 0;
}
