X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=src%2Fmain%2Fwebapp%2Fless%2Fscreen%2Flayout.less;h=9771f834a8e4bdc19eaa04779a8ba91a607c798a;hp=eb79a804e05e6c056a22dd6129a717b49b34f64a;hb=40f9a579c5324f56a938e262fe8c708228cf6c83;hpb=545c20e546e2c2083f66c33c9cf842951ac7db4d diff --git a/src/main/webapp/less/screen/layout.less b/src/main/webapp/less/screen/layout.less index eb79a804..9771f834 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,40 +20,59 @@ 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 { - padding-top: 2em; 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; } #header > hr.h { @@ -63,6 +82,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; @@ -78,7 +105,7 @@ body { position: relative; width: 200%; - top: -9em; /** 136px */ + top: -8em; /** 136px */ right: 100%; text-align: right; list-style-type: none; @@ -86,9 +113,9 @@ body padding: 0; border-style: none; } -.nomenu #menu +.onecolumn #menu { - top: -11em; /** 2em mehr wegen 2em margin-top der Marginalspalte auf .nomenu-Seiten */ + top: -15.5625em; /** -249px -- warum auch immer... */ } #menu > li.m { @@ -155,25 +182,11 @@ body { padding: 2em 0; } -#footer > hr.f +.onecolumn #footer { - display: none; + background-color: @hintergrund; } - - -/** 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, -.content > .marginal h4:first-child +#footer > hr.f { - margin-top: 0; + display: none; }