blob: 1b5088c254389d3f90e9f056a5564cdbde0b7304 (
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
/* 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: */
|