de3cb1a19d30d3b30687b666d55ed53b6de82a70
[website] / src / main / webapp / less / screen / layout.less
1 /** Seite gesamt (Abmessungen, Aussenabstände etc.) */
2
3 body
4 {
5   padding: 0;
6   overflow-y: scroll; /** Die vertikale Scroll-Leiste stets anzeigen */
7 }
8 #page
9 {
10   margin: 0 auto; /** Seiteninhalte zentrieren, wenn max-width des Inhalts (s.u.) erreicht ist */
11   max-width: 62.375em; /** 608px + 390px (Marginalspalte) = ca. 1000px (muss zu Wergen in faux-columns.less passen!!) */
12 }
13
14 /** Seitenaufteilung mit Menü (Zweispaltig) */
15
16 body
17 {
18   padding: 0 3em 0 5em;
19 }
20 .content
21 {
22   position: relative;
23   padding: 0 0 7.1875em 0; /** Unten: 115px (gemessene Gesamthöhe des Footers - mit Abstand und Margin) */
24 }
25 .menu .content,
26 .nomenu .content
27 {
28   padding-right: 27em;
29 }
30 .content > .main
31 {
32   min-height: 1em;
33   position: relative;
34   width: 100%;
35 }
36 .menu .content > .main,
37 .nomenu .content > .main
38 {
39   float: left;
40 }
41 .content > .marginal
42 {
43   position: relative;
44   background-color: @heller;
45 }
46 .menu .content > .marginal,
47 .nomenu .content > .marginal
48 {
49   float: left;
50   margin: 0 -27em 0 2.625em;
51   padding: 0 2em 1.0625em 2em;
52   width: 20.375em;
53 }
54
55 /** Anpassungen für Seiten ohne Menü */
56
57 .nomenu .content > .marginal
58 {
59   padding-top: 2em;
60   background-color: @sehrhell;
61 }
62
63 /** Anpassungen für einspaltige Seiten */
64
65 .onecolumn .content > .marginal
66 {
67   margin-top: 4em;
68   background-color: transparent;
69 }
70
71 /** Seitenkopf positionieren */
72
73 #header
74 {
75   margin-left: -2.125em;
76   padding: 1em 0 2em 0;
77 }
78 #header > hr.h
79 {
80   display: none;
81 }
82
83
84 /** Bereichsauswahl positionieren und stylen */
85
86 .onecolumn #nav
87 {
88   position: absolute;
89   top: 0;
90   right: 0; /** Hier eigentlich nicht nötig, aber für Tablet-Style erforderrlich! */
91   width: 100%;
92 }
93
94 #nav > hr.n
95 {
96   display: none;
97 }
98 #nav
99 {
100   position: relative;
101   top: auto;
102   right: auto;
103   width: 22.375em; /** 358px = 326px + 32px*/
104 }
105 #menu
106 {
107   position: relative;
108   width: 200%;
109   top: -9em; /** 136px */
110   right: 100%;
111   text-align: right;
112   list-style-type: none;
113   margin: 0 0 -2.125em 0; /** 0 0 -34px 0 */
114   padding: 0;
115   border-style: none;
116 }
117 .nomenu #menu
118 {
119   top: -11em; /** 2em mehr wegen 2em margin-top der Marginalspalte auf .nomenu-Seiten */
120 }
121 .onecolumn #menu
122 {
123   top: -15.125em;
124 }
125 #menu > li.m
126 {
127   display: inline-block;
128   padding: 0 0 0 4em;
129 }
130 #menu > li.m > .m
131 {
132   font-size: 250%; /** 40px */
133   color: @normal;
134 }
135 #menu > li.m > a.m
136 {
137   border-color: @normal;
138 }
139 #menu > li.m > a.m:hover
140 {
141   border-color: @dunkler;
142 }
143 #menu > li.m > a.m:hover,
144 #menu > li.m > strong.m
145 {
146   border-style: solid;
147 }
148 #menu > li.m > a.m.selected
149 {
150   color: @normal;
151 }
152 #menu > li.m > a.m:hover
153 {
154   color: @dunkler;
155 }
156 #menu > li.m > a.m:hover:before,
157 #menu > li.m > a.m.selected:before,
158 #menu > li.m > strong.m:before
159 {
160   content: '> ';
161   margin-left: -.92em;
162 }
163
164
165 /** Breadcrump positionieren */
166
167 #breadcrumb
168 {
169   position: absolute;
170   top: 8.375em;
171   left: 6.9em;
172   z-index: 3;
173 }
174 #breadcrumb > a.hide
175 {
176   position: absolute;
177 }
178 #breadcrumb > hr.b
179 {
180   display: none;
181 }
182
183
184 /** Footer positionieren */
185
186 #footer
187 {
188   padding: 2em 0;
189 }
190 .onecolumn #footer
191 {
192   background-color: @hintergrund;
193 }
194 #footer > hr.f
195 {
196   display: none;
197 }
198
199
200 /** Marginal-Inhalte anpassen... */
201
202 .content > .marginal h1:first-child,
203 .content > .marginal h2:first-child,
204 .content > .marginal h3:first-child,
205 .content > .marginal h4:first-child
206 {
207   margin-top: 0;
208 }