/* main.less */ @import "normalize.css"; @import "colors.less"; /* page layout */ body { text-align: center; line-height: 2em; background: linear-gradient(-45deg, @color-secondary-2-4, @color-secondary-2-1); display: flex; flex-direction: column; min-height: 100vh; font-family: sans-serif; } /* header */ header { background: @color-secondary-1-4; margin-bottom: 1em; } .banner { > * { font-size: 4em; vertical-align: middle; } } @import "menu.less"; /* main content */ main { margin: auto; padding: 1em; border-radius: 2px; max-width: 800px; text-align: left; flex: 1; } body[data-page="home"] { .intro { height: 300px; padding: 1em; margin: 1em; background-color: @color-secondary-2-1; } .block { background: no-repeat url(../images/filler.png); height: 200px; background-color: @color-secondary-2-1; padding: 1em; margin: 1em; transition: background 0.2s; /* TODO floats over text */ &:hover { background-color: @color-secondary-2-0; } p { margin: 1em; } &:nth-child(2n+1) { padding-left: 200px; } &:nth-child(2n) { background-position: right; padding-right: 200px; } } } @import "curriculum.less"; @import "campus.less"; /* footer */ footer { background: @color-secondary-1-4; margin-top: 1em; } /* vim: set sw=4 et ts=4: */