X-Git-Url: https://juplo.de/gitweb/?p=website;a=blobdiff_plain;f=src%2Fmain%2Fwebapp%2Fless%2Ftablet%2Flayout.less;h=44ab7d58d521b5a297bd39c904f46a767d2f20c5;hp=935e7ef14d824b1b44eb37b49a71f3c1664b13c8;hb=545c20e546e2c2083f66c33c9cf842951ac7db4d;hpb=a06a8f90ea1c87ca482ac7de085883a6d92cd213 diff --git a/src/main/webapp/less/tablet/layout.less b/src/main/webapp/less/tablet/layout.less index 935e7ef1..44ab7d58 100644 --- a/src/main/webapp/less/tablet/layout.less +++ b/src/main/webapp/less/tablet/layout.less @@ -1,3 +1,5 @@ +/** Seite gesamt (Abmessungen, Aussenabstände etc.) */ + body { padding: 0; @@ -6,10 +8,21 @@ body { overflow: hidden; } +.nomenu #page +{ + padding: 0; +} + +/** Seitenaufteilung mit/ohne Menü für Tablets optimieren */ + +.menu .content +{ + padding: 0; +} .nomenu .content { - padding-bottom: 5em; + padding: 0 0 5em 0; @media (max-width: @maxsmalltablet) { padding-bottom: 4em; @@ -19,22 +32,21 @@ body padding-bottom: 3.25em; } } -.menu .content.cf:before, -.menu .content.cf:after +.content.cf:before, +.content.cf:after { clear: none; content: none; display: inline; } -.nomenu .content > .main, -.menu .content > .main +.content > .main { float: none; width: auto; padding: 0 3em 0 5em; @media (max-width: @maxsmalltablet) { - padding: 0 2em 0 3.5em; + padding: 0 2em 0 3em; } @media (max-width: @maxsmallertablet) { @@ -46,51 +58,45 @@ body border-top: 1px solid @hintergrund; border-bottom: 1px solid @hintergrund; } -.nomenu .content > .marginal +.content > .marginal { - margin: 3em 0 -999em 0; - padding: 0 3em 999em 5em; - @media (max-width: @maxsmalltablet) - { - padding-left: 3.5em; - padding-right: 2em; - } - @media (max-width: @maxsmallertablet) - { - padding-left: 2.5em; - padding-right: 1em; - } -} -.nomenu .content > .marginal aside.m -{ - margin: 3.5em -3em -999em -5em; - padding: 2em 3em 995em 5em; - border-style: none; + position: static; + width: 100%; } .menu .content > .marginal { margin: 3em 0 -994em -15em; padding: 2em 0 999em 0; - width: 100%; - position: static; } -.nomenu #footer +.nomenu .content > .marginal { - border-style: none; + margin: 3em 0 -994em 0; + padding: 0 0 999em 0; + background-color: transparent; } -.menu .content > .marginal > aside.m + + +/** Seitenkopf positionieren */ + +#header { - margin: 0 -12em 1em 17.5em; + padding: 1em 3em 2em 5em; @media (max-width: @maxsmalltablet) { - margin-right: -13em; + margin-left: -1.5em; + padding: .5em 2em 2em 3em; } @media (max-width: @maxsmallertablet) { - margin-right: -14em; + margin-left: -1.2em; + padding: 1em 1em 2em 2.5em; } } -.menu .content > .marginal > #nav + + +/** Bereichsauswahl positionieren */ + +.menu #nav { position: static; border-right: .125em solid @hintergrund; @@ -102,42 +108,82 @@ body @media (max-width: @maxsmallertablet) { margin-left: 17.5em; + #menu > li.about + { + display: inline-block; + } } width: auto; } +.nomenu #nav +{ + position: absolute; + top: 0; + right: 0; /** Hier eigentlich nicht nötig, aber für Tablet-Style erforderrlich! */ + width: 100%; +} - -/** Faux-Column-Hack-Eigengewächs zurücksetzen */ -#header +.nomenu #menu, +.menu #menu { - padding: 1em 3em 0 5em; + position: absolute; + width: auto; + top: -9em; + right: 3em; @media (max-width: @maxsmalltablet) { - margin-left: -1.5em; - padding: 1em 2em 0 3.5em; + top: -7.7em; + right: 2em; } @media (max-width: @maxsmallertablet) { - margin-left: -1.2em; - padding: 1em 1em 0 2.5em; + top: -6.5em; + right: 1em; } } - -.menu #page +#menu > li.about { - max-width: none; - border-right-style: none; + display: none; } -.menu #header +#menu > li.m { - margin-right: 0; - border-right-style: none; + @media (max-width: @maxsmalltablet) + { + padding: 0 0 0 3em; + } + @media (max-width: @maxsmallertablet) + { + padding: 0 0 0 2em; + } } -.menu .content +#menu > li.m > .m { - margin: 0; - padding: 0; + @media (max-width: @maxsmalltablet) + { + font-size: 200%; /* 32px */ + } + @media (max-width: @maxsmallertablet) + { + font-size: 150%; /* 24px */ + } } +#menu > li.m > a.m:hover:before, +#menu > li.m > a.m.selected:before, +#menu > li.m > strong.m:before +{ + @media (max-width: @maxsmalltablet) + { + content: '> '; + margin-left: -.95em; + } + @media (max-width: @maxsmallertablet) + { + } +} + + +/** Footer positionieren */ + .menu #footer { position: static; @@ -147,4 +193,74 @@ body width: 15em; background-color: @heller; } +.nomenu #footer +{ + padding: 0 3em 1.5em 5em; + @media (max-width: @maxsmalltablet) + { + padding: 0 2em 1em 3em; + } + @media (max-width: @maxsmallertablet) + { + padding: 0 1em .75em 2.5em; + } + background-color: @heller; + border-style: none; +} + +/** Breadcrump positionieren */ + +.menu #breadcrumb, +.nomenu #breadcrumb +{ + left: 11.9em; + right: 3em; + @media (max-width: @maxsmalltablet) + { + font-size: 87.5%; /* 14px */ + top: 7.2em; + left: 9.8em; + } + @media (max-width: @maxsmallertablet) + { + top: 5.8em; + left: 7em; + } +} + + +/** Faux-Column-Hack für Marginalinhalte */ + +.nomenu .content > .marginal aside.m +{ + margin: 3.5em 0 -999em 0; + padding: 2em 3em 995em 5em; + background-color: @heller; + position: relative; + top: -4.5em; + @media (max-width: @maxsmalltablet) + { + padding-left: 3em; + padding-right: 2em; + } + @media (max-width: @maxsmallertablet) + { + padding-left: 2.5em; + padding-right: 1em; + } +} +.menu .content > .marginal > aside.m +{ + margin: 0 -12em 1em 20em; + @media (max-width: @maxsmalltablet) + { + margin-left: 18.5em; + margin-right: -13em; + } + @media (max-width: @maxsmallertablet) + { + margin-left: 17.5em; + margin-right: -14em; + } +}