X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=src%2Fmain%2Fwebapp%2Fless%2Fscreen%2Flayout.less;h=434e61cd56d1ce88754472d7e914fbf2cfe28804;hp=eee9b8612e51a39a81dc764865ade8919bc55208;hb=cb1712d6fad34b2c22dee226151e674288175e17;hpb=5d1b0c41c6376bc85d7400436ea8f2e484915d8f diff --git a/src/main/webapp/less/screen/layout.less b/src/main/webapp/less/screen/layout.less index eee9b861..434e61cd 100644 --- a/src/main/webapp/less/screen/layout.less +++ b/src/main/webapp/less/screen/layout.less @@ -2,21 +2,18 @@ body { - padding: 1em 3em 1em 5em; + padding: 0 3em 0 5em; } -.fc.cols_2 -{ - border-right: 24.375em solid @heller; -} .content { position: relative; + padding-bottom: 7.1875em; /** 115px (gemessene Gesamthöhe des Footers - mit Abstand und Margin) */ } .cols_2 > .content { - padding: 0 27em 0 0; - margin: 0 -24.375em 0 0; + padding-right: 27em; + margin-right: -24.375em; } .cols_2 > .content > .main { @@ -25,6 +22,11 @@ body position: relative; width: 100%; } +.cols_1 > .content > .marginal +{ + margin-top: 3em; + background-color: @heller; +} .cols_2 > .content > .marginal { float: left; @@ -34,13 +36,24 @@ body width: 20.375em; background-color: @heller; } -.cols_2 > .content > .marginal h1, -.cols_2 > .content > .marginal h2, -.cols_2 > .content > .marginal h3, -.cols_2 > .content > .marginal h4 +.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 +{ + margin-top: 0; +} +.cols_1 > .content > .marginal div.m +{ + padding: 2em; +} .content #nav { position: absolute; @@ -72,7 +85,49 @@ body { overflow-y: scroll; } /** Center content, when screen is bigger than 1240 */ #page { - position: relative; - max-width: 1000px; + max-width: 62.375em; /** 608px + 390px (Marginalspalte) = ca. 1000px */ margin: 0 auto; } + +/** Make the footer sticky */ +html, body +{ + height: 100%; +} +#page +{ + position: relative; + min-height: 100%; +} +#footer +{ + position: absolute; + left: 0; + right: 0; + bottom: 0; +} + +/** Faux-Column-Hack-Eigengewächs */ +#page.cols_2 +{ + max-width: 38em; /** 608px + 390px (Marginalspalte) = ca. 1000px */ + border-right: 24.375em solid @heller; +} +#header +{ + padding-top: 1em; +} +.cols_2 > #header +{ + margin-right: -24.375em; + background-color: @hintergrund; +} +.cols_2 > #breadcrumb +{ + right: -24.375em; /** Weil der Breadcrumb sonst an der Faux-Column umbricht! */ +} +.cols_2 > #footer +{ + margin-right: -24.375em; + background-color: @hintergrund; +}