@import 'code.css';

#post ul li {
	padding: 0.2em;
}

.post-title a {
	text-decoration: none;
}

kbd {
	border: solid black 0.05em ;
	box-shadow: 0 0.1em 0.1em 0.2em rgba(100,100,100,0.75);
    padding: 0.1em 0.5em;
	border-radius: 0.15em;
	background: #FEFEFE;
	margin: 0 0.2em;
}

blockquote {
	padding: 0.5em 2em;
	margin: 0;
	background-color: whitesmoke;
}

img {
	max-width: 100%;
}

.tags-list {
	text-align: right;
}

.tag {
    background-color: gainsboro;
    padding: 0.1em 0.5em;
    border-radius: 0.3em;
    font-variant: small-caps;
	text-decoration: none;
}

/* 
 * From http://drewsilcock.co.uk/proper-linenumbers/
 */

pre {
    counter-reset: line-numbering;
}

pre span.lineno::after {
	content: counter(line-numbering, decimal-leading-zero);
	counter-increment: line-numbering;
	opacity: 0.4;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	visibility: visible;
	margin-left: -1em;
}

pre span.lineno {
	visibility: collapse;
	text-align: right;
	display: inline-block;
	min-width: 1em;
}

.comments {
	background-color: darkslategrey;
	overflow: auto;
}

@media screen and (min-device-aspect-ratio: 1/1) and (orientation: landscape) {
	.post-date {
		float: right;
		border-left: solid 0.2em black;
		padding-left: 0.5em;
	}
	.post-title h1 {
		margin: 0.5em;
	}
}

@media screen and (max-device-aspect-ratio: 1/1) and (orientation: portrait) {
	.post-date {
		font-size: initial;
		display: block;
		text-align: right;
	}
	.post-title h1 {
		margin: 0;
	}

	kbd {
		font-size: small;
	}
}
