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


                                                       
 
                       
                      
                         
 

                                                          
                  
                                                 



                                                    
                               

 
       
                               

                                








                               
      


                                            
                                              
 



                                                  

                    
 


                                                       

                                                       
         
 
 
              
                                       
                        

 



                                      
      
                               

 



                                                       
                                      

 



                         
                                      
         

 

                      
                      
$mainFont:    "Montserrat", "sans-serif";
$specialFont: "Raleway", "sans-serif";
$codeFont:    "Fira Mono", "Martian Mono", "monospace";

$contentWidth:   72rem;
$padding:        1rem;
$separatorWidth: 0.25rem;

$shadowColour: color-mix(in srgb, black, transparent 50%);

@mixin separator {
	background-color: var(--highlightColour);
	border-radius:    calc($separatorWidth / 3);
	content:          "";
	display:          block;
	height:           $separatorWidth;
	width:            100%;
}

:root {
	font-family: $mainFont;

	scroll-behavior: smooth;
}

* {
	margin:  0;
	padding: 0;

	box-sizing: border-box;
}

body {
	--backgroundColour: oklch( 25% 0 0);
	--foregroundColour: oklch( 20% 0 0);
	--textColour:       oklch(100% 0 0);
	--highlightColour:  var(--textColour);

	background-color: var(--backgroundColour);
	color:            var(--textColour);
	z-index:          -1;

	// Default.
	//&.dark { }

	&.light {
		--backgroundColour: oklch(96.875% 0 0);
		--foregroundColour: oklch(93.750% 0 0);
		--textColour:       oklch(33.333% 0 0);
		--highlightColour:  oklch(25%     0 0);
	}
}

a, a:visited {
	color:  var(--highlightColour);
	cursor: pointer;
}

h1 {
	color: var(--highlightColour);
}

code {
	font-family: $codeFont;
}

img {
	// Set the `color` property so that alternative
	// text uses the correct colour.

	color: var(--highlightColour);
}

ul {
	list-style: none;

	li p::before {
		content: "\2022\0020";
	}
}

@import "header.scss";
@import "page.scss";
@import "footer.scss";