X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=src%2Fmain%2Fwebapp%2Fless%2Fscreen%2Flayout.less;h=9771f834a8e4bdc19eaa04779a8ba91a607c798a;hp=a8cf4ff6232d366460a3c8b7ef898504ab3482aa;hb=40f9a579c5324f56a938e262fe8c708228cf6c83;hpb=336ae665a166ad08f594c85e092ee57d7e65ba28 diff --git a/src/main/webapp/less/screen/layout.less b/src/main/webapp/less/screen/layout.less index a8cf4ff6..9771f834 100644 --- a/src/main/webapp/less/screen/layout.less +++ b/src/main/webapp/less/screen/layout.less @@ -1,135 +1,192 @@ -@import '../variables.less'; +/** Seite gesamt (Abmessungen, Aussenabstände etc.) */ body { - padding: 0 3em 0 5em; + padding: 0; + overflow-y: scroll; /** Die vertikale Scroll-Leiste stets anzeigen */ +} +#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 +{ + padding: 0 3em 0 5em; +} .content { position: relative; - height: 100%; - padding-bottom: 7.1875em; /** 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) */ } -.cols_2 > .content +.menu .content, +.nomenu .content { padding-right: 27em; - margin-right: -24.375em; } -.cols_2 > .content > .main +.content > .main { - float: left; min-height: 1em; position: relative; width: 100%; } -.cols_1 > .content > .marginal +.menu .content > .main, +.nomenu .content > .main +{ + float: left; +} +.content > .marginal { - margin-top: 3em; + position: relative; background-color: @heller; } -.cols_2 > .content > .marginal +.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; } -.content > .marginal h1, -.content > .marginal h2, -.content > .marginal h3, -.content > .marginal h4 + +/** Anpassungen für Seiten ohne Menü */ + +.nomenu .content > .marginal { - color: @hintergrund; + background-color: @sehrhell; } -.content > .marginal h1:first-child, -.content > .marginal h2:first-child, -.content > .marginal h3:first-child, -.content > .marginal h4:first-child + +/** Anpassungen für einspaltige Seiten */ + +.onecolumn .content > .marginal { - margin-top: 0; + margin-top: 4em; + background-color: transparent; } -.cols_1 > .content > .marginal aside.m + +/** Seitenkopf positionieren */ + +#header { - padding: 2em; + margin-left: -2.125em; + padding: 1em 0; } -.content #nav +#header > hr.h +{ + display: none; +} + + +/** 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%; } -.cols_2 > .content #nav + +#nav > hr.n +{ + display: none; +} +#nav { position: relative; top: auto; right: auto; width: 22.375em; /** 358px = 326px + 32px*/ } -.cols_2 > .content #nav > #menu +#menu { + position: relative; + width: 200%; + top: -8em; /** 136px */ + right: 100%; + text-align: right; + list-style-type: none; margin: 0 0 -2.125em 0; /** 0 0 -34px 0 */ + padding: 0; + border-style: none; } -.content.cols_1 #nav > #menu +.onecolumn #menu { - position: absolute; - top: -7em; /** 112px */ - right: 0; - margin: 0; + top: -15.5625em; /** -249px -- warum auch immer... */ } - -/** Always display vertical scroll-bars */ -body { overflow-y: scroll; } - -/** Center content, when screen is bigger than 1240 */ -#page +#menu > li.m { - max-width: 62.375em; /** 608px + 390px (Marginalspalte) = ca. 1000px */ - margin: 0 auto; + display: inline-block; + padding: 0 0 0 4em; } - -/** Make the footer sticky */ -html, body +#menu > li.m > .m { - height: 100%; + font-size: 250%; /** 40px */ + color: @normal; } -#page +#menu > li.m > a.m { - position: relative; - min-height: 100%; + border-color: @normal; } -#footer +#menu > li.m > a.m:hover { - position: absolute; - left: 0; - right: 0; - bottom: 0; + border-color: @dunkler; +} +#menu > li.m > a.m:hover, +#menu > li.m > strong.m +{ + border-style: solid; +} +#menu > li.m > a.m.selected +{ + color: @normal; +} +#menu > li.m > a.m:hover +{ + color: @dunkler; +} +#menu > li.m > a.m:hover:before, +#menu > li.m > a.m.selected:before, +#menu > li.m > strong.m:before +{ + content: '> '; + margin-left: -.92em; } -/** Faux-Column-Hack-Eigengewächs */ -#page.cols_2 + +/** Breadcrump positionieren */ + +#breadcrumb { - max-width: 38em; /** 608px + 390px (Marginalspalte) = ca. 1000px */ - border-right: 24.375em solid @heller; + position: absolute; + top: 8.375em; + left: 6.9em; + z-index: 3; } -#header +#breadcrumb > a.hide { - padding-top: 1em; + position: absolute; } -.cols_2 > #header +#breadcrumb > hr.b { - margin-right: -24.375em; - background-color: @hintergrund; + display: none; } -.cols_2 > #breadcrumb + + +/** Footer positionieren */ + +#footer { - right: -24.375em; /** Weil der Breadcrumb sonst an der Faux-Column umbricht! */ + padding: 2em 0; } -.cols_2 > #footer +.onecolumn #footer { - margin-right: -24.375em; background-color: @hintergrund; } +#footer > hr.f +{ + display: none; +}