summaryrefslogblamecommitdiff
path: root/css/content.scss
blob: 1934d683172d380d6f82fc499a8f315a315515b1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
          



                          
 
                                                          



                                  




                                    






                                                            
                                                                   






                                                         





                                          


                                                    
                                                              





                                         























                                                    




                                               








                                           






                                              



                                                       
                                                           
                                                      


                         







                                                    
 
#content {
	margin:     auto;
	min-height: 100vh;
	max-width:  72rem;
	padding:    2rem;

	p:not(.heading, #contentHeading, #cloneNotice p) {
		line-height: 2rem;
	}

	a, a:visited {
		color: $textColour;
	}

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

	span {
		&.code {
			background-color: $foregroundColour;
			border-radius:    calc(1rem / 4);
			font-family:      "Fira Mono", "monospace";
			padding:          calc(1rem / 4);

			a {
				font-weight: normal;
			}
		}

		&.small {
			font-size: 0.75em;
		}
	}

	#contentHeading {
		background-color: $foregroundColour;
		border-radius:    1rem;
		display:          block;
		font-family:      "Martian Mono", "monospace";
		font-size:        4rem;
		font-weight:      bold;
		margin:           auto;
		margin-bottom:    1rem;
		padding:          1rem;
		text-align:       center;

		span.small {
			font-size: 0.5em;
		}
	}

	section:nth-of-type(even) p.heading {
		text-align: right;
	}

	section + section {
		margin-top: 1rem;
	}

	p.heading {
		border-bottom-style: solid;
		border-bottom-width: calc(1rem / 4);
		font-size:           2rem;
		font-weight:         bold;
		margin-bottom:       1rem;
		width:               100%;
	}

	x-image {
		background-position: center;
		background-repeat:   no-repeat;
		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);
			position: absolute;
			z-index:  -1;
			width:           100%;
		}

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

	#cloneNotice {
		background-color: $foregroundColour;
		border-radius:    1rem;
		font-weight:      bold;
		padding:          1rem;
		text-align:       center;
	}
}