summaryrefslogblamecommitdiffstatshomepage
path: root/scss/style.scss
blob: 8cbe89275d1314910d579aa475d348dc3df2b72b (plain) (tree)
1
2
3
4
5
6
7
8
9


                            
                                


                                            

                    
                 
                 
                      
                    



                                
                         











                                 
                                  



                                  
                            
                         



                       




                                
                                  






                                         








                                  







                                  




                                  


























                                      




                                























                                                  

                                


            

                                                


                                  








                                      
 











                                           
@import '_webfonts';
@import '_responsive_fonts';

$font-sans: Alegreya Sans, sans;
$font-serif: Alegreya, serif;
$font-mono: Iosevka, Inconsolata, monospace;

$font-size-pre: 85%;

$yellow: #ffd400;
$canary: #ffffc3;
$canary-text: #191900;
$mute-text: #5a5a5a;

body {
	background-color: white;
	color: black;
	line-height: 1.6;
	margin: 0;
}

h1 {
	font-family: $font-serif;
	font-size: 3.5rem;
	font-weight: normal;
	margin: 0;
}

code {
	font-family: $font-mono;
	font-size: $font-size-pre;
}

pre {
	background-color: $canary;
	color: $canary-text;
	line-height: 1.3;
	overflow: auto;
	padding: .7rem;
}

pre.clear {
	background-color: white;
}

pre.indent {
	font-size: $font-size-pre;

	border-left: 4px solid lightgrey;

	margin-left: 1.5rem;
	padding-left: 1.5rem;
}

blockquote {
	background-color: $canary;
	padding: .7rem;
}

blockquote > p {
	margin: 0;
}

.frontpage {
	background-color: $yellow;
	font-family: $font-serif;
	font-size: 4rem;
}

.post {
	font-family: $font-sans;
	font-size: 1.3rem;

	header {
		font-size: 1.5rem;
	}
}

nav.main ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	list-style: none;
	margin: .5rem;
	padding: 0;
}

nav.main li a {
	background-color: white;
	border: 4px solid black;
	box-shadow: 10px 10px 0 black;
	color: black;
	display: block;
	margin: .8rem .8rem;
	padding: 0 .8rem;
	text-decoration: none;
}

nav.main li a:hover {
	background-color: black;
	color: white;
}

nav.main li a:focus {
	background-color: black;
	color: white;
}

article {
	margin: 1rem auto;
	max-width: 1024px;
	padding: 0 1rem;

	header {
		border-bottom: 1px solid darkgrey;

		a {
			background-color: white;
			font-weight: bold;
			text-decoration: none;
		}

		address {
			display: none;
		}

		time { font-size: smaller; }
	}

	img {
		display: block;
		margin: 0 auto;
		max-width: 100%;
		height: auto;
	}

	hr {
		border: none;
		border-top: 3px double darkgrey;
	}

	ul { list-style: square; }

	.footnotes {
		font-size: smaller;
	}

	sup > a {
		text-decoration: none;
		font-weight: bold;
	}
}

figure {
	figcaption {
		color: $mute-text;
		text-align: center;
		font-size: smaller;

		padding-top: .5em;
	}

	> img.round { border-radius: 5px; }
}