blob: c4213828b398e8cc198a206d1781b6ab2c35c023 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/* 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: */
|