summaryrefslogblamecommitdiff
path: root/src/templates/base.hbs
blob: 410a5b28f68569d15d85b57119d703a438236a8b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



               

                                                                              




                                          


                      

                                   


                      


                                       




                                               

                 
                     
                                                        

                 

                                         
                                     
                                           


                                              
                       
                                               

                                                        

                 
                              







                                         

                                            

                 
                         
                                       

                 
                                      


                                      
                                           



                                       


                                      
                                            
                                      

                 

                                      

                 




                                         



                                                  

                    


                                       
                                    


                                                  
                          


                                               


                                               




                                                        











                                                           
 




                                                    








                                                            

                                                                                  

                                             

                         



                 
                  






                                           

              


                           


       
<!DOCTYPE html>
<html>

<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<style>
		:root {
			--balboa: #195970;
		}

		html,
		body,
		main {
			margin: 0;
			padding: 0;
		}

		body {
			font-size: 1em;
		}

		nav,
		main,
		aside {
			display: flex;
			flex-direction: column;
		}

		nav {
			background-color: var(--balboa);
		}

		nav a {
			padding: 1em 1em;
			color: white;
			text-align: center;
			text-decoration: none;
		}

		aside {
			flex-direction: column;
			background-color: var(--balboa);
			padding: 0.5em;
		}

		aside button {
			font-size: 1em;
			display: block;
			background: none;
			border: 0 none;
			cursor: pointer;
			color: white;
		}

		aside button.model::before {
			content: "⤷";
		}

		article {
			padding: 0.5em;
		}

		#hidden:target aside {
			display: none;
		}

		#hidden:target a.openMenu {
			display: block;
		}

		a.openMenu {
			display: none;
		}

		#hidden:target a.closeMenu {
			display: none;
		}

		input[type="search"] {
			width: 100%;
		}

		section {
			padding-top: 2em;
		}

		table {
			width: 100%;
			border-collapse: collapse;
		}

		td,
		th {
			padding: 0.5em;
		}

		tr:nth-child(even) {
			background-color: #f2f2f2;
		}

		tr:hover {
			background-color: #ddd;
		}

		th {
			padding-top: 0.25em;
			padding-bottom: 0.25em;
			text-align: left;
			background-color: var(--balboa);
			color: white;
		}

		@media only screen and (min-width: 750px) {

			html,
			body,
			main,
			aside {
				height: 100%;
			}

			a.closeMenu {
				float: right;
			}

			nav,
			main {
				flex-direction: row;
			}

			nav {
				box-shadow: 0 0 0.5em black;
				z-index: 2;
			}

			article {
				flex-grow: 3;
			}

			aside {
				box-shadow: inset -0.5em 0.5em 0.5em -0.5em black;
				flex-grow: 1;
				z-index: 1;
			}

		}
	</style>
</head>

<body id="hidden">
	<nav>
		<a href="/">Index</a>
		<a href="#">Parts</a>
		<a href="#">Cars</a>
		<a href="#">Suggestions</a>
		<a href="#">About</a>
		<a href="/login">Login</a>
	</nav>

	<main>
		{{~> main}}
	</main>
</body>

</html>