X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fwebapp%2Fless%2Fscreen%2Flayout.less;h=1bfbeaf2912b6ab8e4eb3a1667f52b1a46bb876d;hb=3a0cf976cc33ddc25fa4d8e74a2d6ea3585ac2e6;hp=97d0fbb00812aa15db768ea3eb9dab0bc26f7d68;hpb=742e9e70700208183bd2bf94cc639b288e5e05c9;p=website diff --git a/src/main/webapp/less/screen/layout.less b/src/main/webapp/less/screen/layout.less index 97d0fbb0..1bfbeaf2 100644 --- a/src/main/webapp/less/screen/layout.less +++ b/src/main/webapp/less/screen/layout.less @@ -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,12 +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: 1em 0; } #header > hr.h { @@ -62,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; @@ -77,7 +106,7 @@ body { position: relative; width: 200%; - top: -7em; /** 112px */ + top: -9em; /** 136px */ right: 100%; text-align: right; list-style-type: none; @@ -87,7 +116,11 @@ body } .nomenu #menu { - top: -9em; /** 2em mehr wegen 2em margin-top der Marginalspalte auf .nomenu-Seiten */ + top: -11em; /** 2em mehr wegen 2em margin-top der Marginalspalte auf .nomenu-Seiten */ +} +.onecolumn #menu +{ + top: -15.125em; } #menu > li.m { @@ -154,6 +187,10 @@ body { padding: 2em 0; } +.onecolumn #footer +{ + background-color: @hintergrund; +} #footer > hr.f { display: none; @@ -162,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,