summaryrefslogtreecommitdiff
path: root/style/main.less
blob: 1c64dd184a2b6ba792feb6aca1b099ef93557dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* main.less */
@import "../node_modules/normalize.css/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);
}

@import "menu.less";

/* main content */
main {
    background: @color-secondary-1-3;
    margin: auto;
    padding: 1em;
    border-radius: 2px;

    max-width: 800px;
    text-align: left;
}

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";

/* footer */
footer {
    background: @color-secondary-1-4;
}

/* vim: set sw=4 et ts=4: */