Die Marginalspalte auch auf Seiten mit einspaltigem Layout hervorgehoben
[website] / src / main / webapp / less / screen / layout.less
index eee9b86..e99be04 100644 (file)
@@ -5,10 +5,6 @@ body
   padding: 1em 3em 1em 5em;
 }
 
-.fc.cols_2
-{
-  border-right: 24.375em solid @heller;
-}
 .content
 {
   position: relative;
@@ -16,7 +12,7 @@ body
 .cols_2 > .content
 {
   padding: 0 27em 0 0;
-  margin: 0 -24.375em 0 0;
+  margin-right: -24.375em;
 }
 .cols_2 > .content > .main
 {
@@ -25,6 +21,11 @@ body
   position: relative;
   width: 100%;
 }
+.cols_1 > .content > .marginal
+{
+  margin: 3em 0;
+  background-color: @heller;
+}
 .cols_2 > .content > .marginal
 {
   float: left;
@@ -34,13 +35,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 +84,28 @@ body { overflow-y: scroll; }
 /** Center content, when screen is bigger than 1240 */
 #page
 {
+  max-width: 62.375em; /** 608px + 390px (Marginalspalte) = ca. 1000px */
   position: relative;
-  max-width: 1000px;
   margin: 0 auto;
 }
+
+/** Faux-Column-Hack-Eigengewächs */
+#page.cols_2
+{
+  max-width: 38em; /** 608px + 390px (Marginalspalte) = ca. 1000px */
+  border-right: 24.375em solid @heller;
+}
+.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;
+}