summaryrefslogblamecommitdiff
path: root/css/page.scss
blob: de9edd7454b52b9562db2bb588e71b8e197546ba (plain) (tree)
1
2
3
4
5
6
7
8
9
10
       
                       
 
                        
                                 
                            
 


                                           

         



















                                                            

         



                                                    
 


                                                  


                         

                                          
 




                                                  
 

                                        
                 
 
                        

                                         
 





                                                      
                 
 

                                          
 







                                                                  
                 






                                                                  


                 


                                  








                                           
                          
                                                            
                                           
                                       

                 
                   
                                           
 


                                                       
                                                           
                                                      


                         
 
                         
 
#page {
	$padding: 1rem;

	margin:    auto;
	max-width: $contentWidth;
	padding:   $padding;

	a, a:visited {
		cursor:          pointer;
		text-decoration: underline;
	}

	h1 {
		font-size:     2em;
		font-weight:   bold;
		margin-bottom: 1rem;
		width:         100%;

		&:nth-of-type(even) {
			text-align: right;
		}

		&::after {
			background-color: var(--textColour);
			border-radius:    $separatorWidth;
			content:          "";
			display:          block;
			height:           $separatorWidth;
			margin-bottom:    1rem;
			margin-top:       $separatorWidth;
			width:            100%;
		};
	}

	section {
		line-height: 2em;
		max-width:   calc(36rem - $padding);
		width:       100%;

		&:nth-of-type(odd) {
			p.note {
				text-align: right;
			}
		}

		&:nth-of-type(even) {
			margin-left: auto;

			ol, ul {
				margin-left: auto;
				text-align: left
			}
		}

		&.fullWidth {
			max-width: 100%;
		}

		& + h1 {
			margin-top: 1rem;
		}

		p.note {
			font-weight: bold;

			&::before {
				content: "Note:\0020";
			}
		}

		code {
			$padding: 0.25rem;

			background-color: var(--foregroundColour);
			border-radius:    $padding;
			padding:          $padding;
		}

		em {
			font-style:  normal;
			font-weight: bold;
		}

		ul {
			background-color: var(--foregroundColour);
			border-radius:    1rem;
			padding:          1rem;
			width:            100%;
		}
	}

	x-image {
		display: block;
		position:relative;
		width:   100%;

		&:nth-of-type(odd) {
			margin-right: auto;
		}

		&:nth-of-type(even) {
			margin-left: auto;
		}

		img.blur {
			filter:   blur(1rem) saturate(200%);
			position: absolute;
			width:    100%;
		}

		a {
			position: relative;

			img {
				border-radius:   1rem;
				display:         block;
				image-rendering: pixelated;
				width:           100%;
			}
		}
	}

	@import "footer";
}