Einspaltige Seite wieder eingeführt
[website] / src / main / webapp / less / screen / layout.less
index eb79a80..de3cb1a 100644 (file)
@@ -8,9 +8,9 @@ body
 #page
 {
   margin: 0 auto; /** Seiteninhalte zentrieren, wenn max-width des Inhalts (s.u.) erreicht ist */
+  max-width: 62.375em; /** 608px + 390px (Marginalspalte) = ca. 1000px (muss zu Wergen in faux-columns.less passen!!) */
 }
 
-
 /** Seitenaufteilung mit Menü (Zweispaltig) */
 
 body
@@ -20,26 +20,39 @@ body
 .content
 {
   position: relative;
-  padding: 0 27em 7.1875em 0; /** Unten: 115px (gemessene Gesamthöhe des Footers - mit Abstand und Margin) */
+  padding: 0 0 7.1875em 0; /** Unten: 115px (gemessene Gesamthöhe des Footers - mit Abstand und Margin) */
+}
+.menu .content,
+.nomenu .content
+{
+  padding-right: 27em;
 }
 .content > .main
 {
-  float: left;
   min-height: 1em;
   position: relative;
   width: 100%;
 }
+.menu .content > .main,
+.nomenu .content > .main
+{
+  float: left;
+}
 .content > .marginal
+{
+  position: relative;
+  background-color: @heller;
+}
+.menu .content > .marginal,
+.nomenu .content > .marginal
 {
   float: left;
   margin: 0 -27em 0 2.625em;
   padding: 0 2em 1.0625em 2em;
-  position: relative;
   width: 20.375em;
-  background-color: @heller;
 }
 
-/** Anpassungen für Seiten ohne Menü (Einspaltig) */
+/** Anpassungen für Seiten ohne Menü */
 
 .nomenu .content > .marginal
 {
@@ -47,13 +60,20 @@ body
   background-color: @sehrhell;
 }
 
+/** Anpassungen für einspaltige Seiten */
+
+.onecolumn .content > .marginal
+{
+  margin-top: 4em;
+  background-color: transparent;
+}
 
 /** Seitenkopf positionieren */
 
 #header
 {
   margin-left: -2.125em;
-  padding-bottom: 2em;
+  padding: 1em 0 2em 0;
 }
 #header > hr.h
 {
@@ -63,6 +83,14 @@ body
 
 /** Bereichsauswahl positionieren und stylen */
 
+.onecolumn #nav
+{
+  position: absolute;
+  top: 0;
+  right: 0; /** Hier eigentlich nicht nötig, aber für Tablet-Style erforderrlich! */
+  width: 100%;
+}
+
 #nav > hr.n
 {
   display: none;
@@ -90,6 +118,10 @@ body
 {
   top: -11em; /** 2em mehr wegen 2em margin-top der Marginalspalte auf .nomenu-Seiten */
 }
+.onecolumn #menu
+{
+  top: -15.125em;
+}
 #menu > li.m
 {
   display: inline-block;
@@ -155,6 +187,10 @@ body
 {
   padding: 2em 0;
 }
+.onecolumn #footer
+{
+  background-color: @hintergrund;
+}
 #footer > hr.f
 {
   display: none;
@@ -163,13 +199,6 @@ body
 
 /** Marginal-Inhalte anpassen... */
 
-.content > .marginal h1,
-.content > .marginal h2,
-.content > .marginal h3,
-.content > .marginal h4
-{
-  color: @hintergrund;
-}
 .content > .marginal h1:first-child,
 .content > .marginal h2:first-child,
 .content > .marginal h3:first-child,