Skip to content
Snippets Groups Projects
Select Git revision
  • 67c47cbbd09a84f530f15ededb577e39a0f30c41
  • main default protected
  • scrolling
  • docs
  • deploy
  • tailwind
  • 0.2.1
  • 0.2.0
8 results

schild.css

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    schild.css 1.07 KiB
    @page {
    	size: a4 landscape;
    	margin: 50px;
    }
    
    * {
    	box-sizing: border-box;
    }
    
    body {
    	font-size: 48px;
    	font-family: "Noto Sans", sans-serif;
    	padding: 0;
    	margin: 0;
    	background-color: #fff;
    	color: #000;
    	display: flex;
    	flex-direction: column;
    
    	@media not print {
    		/* This magic constant approximately corresponds to 48px at A4 size, but scales
    		 * with the viewport/iframe size
    		 */
    		font-size: 4.27426536064114vw;
    		padding: 4.27426536064114vw;
    		width: 100vw;
    		height: 100vh;
    		max-width: 100vw;
    		max-height: 100vh;
    	}
    }
    
    main {
    	flex-grow: 1;
    	max-height: 11.3em;
    }
    
    img {
    	max-width: 100%;
    	max-height: 100%;
    	object-fit: contain;
    	display: block;
    }
    
    #logo {
    	width: 15%;
    }
    
    footer {
    	font-size: 0.5em;
    	display: flex;
    	align-items: flex-end;
    }
    
    #footer {
    	flex-grow: 1;
    }
    
    h1 {
    	margin-top: 0;
    }
    
    p {
    	margin-top: 0;
    	margin-bottom: 0;
    }
    
    .container {
    	column-count: 2;
    	column-fill: balance;
    }
    
    .container > img,
    .container > svg {
    	max-width: 100%;
    	max-height: 8em;
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }
    
    .box, svg {
    	width: 100%;
    	margin: 0;
    	padding: 0;
    }