X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=src%2Fmain%2Fwebapp%2Fless%2Fscreen%2Flayout.less;h=bd4f0821d6bc745062d535d67006daf744b10be7;hp=bf77320feb006f8c268ed4958fc41104d290422e;hb=02dfc8d7c054fa2c3f89eae7594f3262817d62f2;hpb=cea459bf2e32af5de46af1c61c8c69f415b19f40 diff --git a/src/main/webapp/less/screen/layout.less b/src/main/webapp/less/screen/layout.less index bf77320f..bd4f0821 100644 --- a/src/main/webapp/less/screen/layout.less +++ b/src/main/webapp/less/screen/layout.less @@ -1,44 +1,31 @@ +/** Seite gesamt (Abmessungen, Aussenabstände etc.) */ + body { padding: 0 3em 0 5em; + overflow-y: scroll; /** Die vertikale Scroll-Leiste stets anzeigen */ } - -#header +#page { - margin-left: -2.125em; + margin: 0 auto; /** Seiteninhalte zentrieren, wenn max-width des Inhalts (s.u.) erreicht ist */ } -.content + +/** Seitenaufteilung mit Menü (Zweispaltig) */ + +.menu .content { position: relative; - height: 100%; - padding-bottom: 7.1875em; /** 115px (gemessene Gesamthöhe des Footers - mit Abstand und Margin) */ + padding: 0 27em 7.1875em 0; /** Unten: 115px (gemessene Gesamthöhe des Footers - mit Abstand und Margin) */ } -.cols_2 > .content -{ - padding-right: 27em; - margin-right: -24.375em; -} -.cols_2 > .content > .main +.menu .content > .main { float: left; min-height: 1em; position: relative; width: 100%; } -.cols_1 > .content > .main -{ - margin-bottom: 7em; -} -.cols_1 > .content > .marginal aside.m -{ - margin: 3.5em 0 -999em 0; - padding: 2em 2em 995em 2em; - background-color: @heller; - position: relative; - top: -4.5em; -} -.cols_2 > .content > .marginal +.menu .content > .marginal { float: left; margin: 0 -27em 0 2.625em; @@ -47,20 +34,34 @@ body width: 20.375em; background-color: @heller; } -.content > .marginal h1, -.content > .marginal h2, -.content > .marginal h3, -.content > .marginal h4 + +/** Anpassungen für Seiten ohne Menü (Einspaltig) */ + +.nomenu .content { - color: @hintergrund; + position: relative; + padding: 0 0 7.1875em 0; /** 115px (gemessene Gesamthöhe des Footers - mit Abstand und Margin) */ } -.content > .marginal h1:first-child, -.content > .marginal h2:first-child, -.content > .marginal h3:first-child, -.content > .marginal h4:first-child +.nomenu .content > .main { - margin-top: 0; + margin-bottom: 7em; +} + + +/** Seitenkopf positionieren */ + +#header +{ + margin-left: -2.125em; } +#header > hr.h +{ + display: none; +} + + +/** Bereichsauswahl positionieren und stylen */ + #nav { position: absolute; @@ -68,61 +69,143 @@ body right: 0; /** Hier eigentlich nicht nötig, aber für Tablet-Style erforderrlich! */ width: 100%; } -.cols_2 #nav +#nav > hr.n +{ + display: none; +} +.menu #nav { position: relative; top: auto; right: auto; width: 22.375em; /** 358px = 326px + 32px*/ } -.cols_2 #menu +#menu { + position: relative; + width: 200%; + top: -7em; /** 112px */ + right: 100%; + text-align: right; + list-style-type: none; margin: 0 0 -2.125em 0; /** 0 0 -34px 0 */ + padding: 0; + border-style: none; +} +#menu > li.m +{ + display: inline-block; + padding: 0 0 0 4em; +} +#menu > li.m > .m +{ + font-size: 250%; /** 40px */ + color: @normal; } -.cols_1 #menu +#menu > li.m > a.m +{ + border-color: @normal; +} +#menu > li.m > a.m:hover +{ + 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; +} + +/** Anpassungen der Bereichsauswahl für Seiten ohne Menü */ + +.nomenu #menu { position: absolute; - top: -7em; /** 112px */ right: 0; - margin: 0; } -/** Always display vertical scroll-bars */ -body { overflow-y: scroll; } -/** Center content, when screen is bigger than 1240 */ -#page +/** Breadcrump positionieren */ + +#breadcrumb { - max-width: 62.375em; /** 608px + 390px (Marginalspalte) = ca. 1000px */ - margin: 0 auto; + position: absolute; + top: 8.375em; + left: 6.9em; + z-index: 3; +} +#breadcrumb > a.hide +{ + position: absolute; } +#breadcrumb > hr.b +{ + display: none; +} + -/** Faux-Column-Hack-Eigengewächs */ -#page.cols_2 +/** Footer positionieren */ + +#footer { - max-width: 38em; /** 608px + 390px (Marginalspalte) = ca. 1000px */ - border-right: 24.375em solid @heller; + padding: 2em 0; } -#header +.nomenu #footer { - padding-top: 1em; + padding-top: 0; } -.cols_2 > #header +#footer > hr.f { - margin-right: -24.375em; - background-color: @hintergrund; + display: none; } -.cols_2 > #breadcrumb + + +/** Marginal-Inhalte anpassen... */ + +.content > .marginal h1, +.content > .marginal h2, +.content > .marginal h3, +.content > .marginal h4 { - right: -24.375em; /** Weil der Breadcrumb sonst an der Faux-Column umbricht! */ + color: @hintergrund; } -.cols_1 > #footer +.content > .marginal h1:first-child, +.content > .marginal h2:first-child, +.content > .marginal h3:first-child, +.content > .marginal h4:first-child { - border-top: 1.5em solid @hintergrund; - background-color: @hintergrund; + margin-top: 0; } -.cols_2 > #footer + + +/** Faux-Column-Hack für Marginalinhalte auf Seiten ohne Menü */ + +.nomenu .content > .marginal aside.m { - margin-right: -24.375em; + margin: 3.5em 0 -999em 0; + padding: 2em 2em 995em 2em; + background-color: @heller; + position: relative; + top: -4.5em; +} +.nomenu #footer +{ + /** Hintergrund des Faux-Column-Hack für Marginal-Inhalte überlagern */ + border-top: 1.5em solid @hintergrund; background-color: @hintergrund; }