@import url("cgit.css");
:root {
	--red:  hsl(320,100%,35%);
	--orange: orange;
	--yellow: #fade6433;
	--green: #008888;
	--cyan: cyan;
	--blue: hsl(210,100%,35%);
	--purple: mediumpurple;
	--pink: #faaed0;
	--grey: lightslategrey;
	--black: #444;
	--white: #eee;
}

* {
	text-wrap: auto;
	font-family: monospace;
}

body {
	max-width: 768px;
	margin: 0 auto;
}

#cgit {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.content {
	flex: 1;
	padding: 10px 0 !important;
}
div#cgit div.content {
	margin: 10px 0;
}

.footer {
	min-height: 50px;
}

/* commit msg */
.commit-info  {
	//border: 1px solid blue;
}

.commit-info {
	background:  var(--yellow);
	font-size: 0.9em;
	box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.1);
	border-left: 8px outset var(--yellow);
}

.commit-info th {
	text-transform: capitalize;
	font-weight: bold !important;
	padding: 4px 10px !important;
}

.commit-subject {
	font-family: serif;
	font-style: italic;
	/* text-decoration: underline; */
}

/* branch deco */
.decoration a {
	padding: 2px 4px !important;
	border-radius: 4px;
	border: none !important;
	font-size: .8em;
	float: right;
}

/* fix capitalisation */
.cgit-panel,
input,
select:not([name=h]) {
	text-transform: capitalize;
}

.button {
	font-variant: all-small-caps;
	background: #ddd;
	margin: 2px;
	border-radius: 2px;
}

/* tabs */
div#cgit table.tabs {
	border: none;
	box-shadow: 0px 3px 0px 0px #eee;
}
div#cgit table.tabs td {
	padding: 0;
	margin-top: 20px
}

.tabs .form {
	float: right;
}

/* search box */
div#cgit table.tabs td.form form {
	margin-bottom: 10px;
}

.tabs tr {
	display: flex;
	flex-direction: column-reverse;
}

.tabs tr td a {
	background: #eee;
	border: 1px solid #ccc;
}

/* wrap items */
.main,
.list * {
	white-space:  normal !important;
}

/* mobile */

@media screen and (max-width: 540px) {
	.markdown-body {
		padding: 10px 20px;
	}

	div#cgit {
		//margin: 0 20px;
	}

	div#cgit table.tabs td {
		display: contents;
	}

	#header .form input,
	#header .form select {
		margin: 10px;
	}
	.tabs form {
		margin-right: 10px;
	}
	.tabs a {
		margin: 0 10px;
	}
	div#cgit table.tabs {
		border: none;
	}
}


/* branch switch button */
div#cgit table#header td.form {
	padding: 0;
}

.cgit-panel {
	margin: 20px 10px;
}

form select,
form input,
div#cgit div.cgit-panel table {
	border: 1px solid black;
	border-radius: 2px;
}
