summaryrefslogblamecommitdiffstatshomepage
path: root/scss/style.scss
blob: ff443b91fda168fd6c4ed65b4a05e62d4397ecde (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.3;

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

	font-family: $font-sans;
	font-size: 1.3rem;
}

body.frontpage {
	header { font-size: larger; }

	nav ul {
		list-style: none;
		padding: 0;
	}

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

h1 {
	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;
	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;
}

nav li > article {
	display: flex;
	flex-direction: column;

	margin-bottom: 1.5rem;

	font-size: 2.7rem;
	line-height: 1.2;

	a {
		text-decoration: none;
	}

	a:hover {
		text-decoration: underline;
	}

	time {
		display: flex;

		font-size: 60%;
		color: $mute-text;
	}

	a { align-self: flex-start; }
}

header.post {
	font-size: 1.5rem;
	border-bottom: 1px solid darkgrey;

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

	time { font-size: smaller; }

	address { display: none; }
}

section.post {
	line-height: 1.6;

	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;
	}

	.footnotes :target {
		font-weight: bold;
	}

	sup > a {
		text-decoration: none;
	}

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

			padding-top: .5em;
		}

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