/* main.less */ @import "normalize.css"; @import "colors.less"; /* page layout */ body { text-align: center; line-height: 2em; background: @color-background; display: flex; flex-direction: column; min-height: 100vh; font-family: sans-serif; } /* header */ header { background: @color-header-background; margin-bottom: 1em; } .banner { > * { font-size: 4em; vertical-align: middle; } } @import "menu.less"; /* Mark external links */ @import "links.less"; /* main content */ main { margin: auto; padding: 1em; border-radius: 2px; max-width: 800px; text-align: left; flex: 1; } body[data-page="home"] { .intro { min-height: 200px; padding: 1em; margin: 1em; background-color: @color-home-block; } .block { min-height: 320px; background-color: @color-home-block; margin: 1em; transition: background 0.2s; /* TODO floats over text */ &:hover { background-color: @color-home-hover; } a { color: black; text-decoration: none; } /* position pictures depending on position of the blocks */ &:nth-child(2n+1) { p, h2 { margin-left: 200px; } .side-picture { float: left; margin-right: 1em; } } &:nth-child(2n) { p, h2 { margin-right: 200px; } .side-picture { float: right; margin-left: 1em; margin-right: 2em; } } /* styling of the text block inside */ .inner { width: 100%; height: 100%; padding: 1em; p { margin: 1em; } } } } @import "curriculum.less"; @import "campus.less"; /* footer */ footer { background: @color-footer-background; margin-top: 1em; } /* vim: set sw=4 et ts=4: */