Es wurde an die Darstellung auf einen iPhone bzw. ähnlichen Geräten angepasst.

This commit is contained in:
2021-04-14 17:10:01 +02:00
parent 338c3ce5e4
commit b74e9bbd69
2 changed files with 53 additions and 15 deletions
+43 -4
View File
@@ -137,6 +137,7 @@
width: @breiteNavBereich; width: @breiteNavBereich;
} }
} }
@media screen and (max-width: 830px) { @media screen and (max-width: 830px) {
html body { html body {
@boxHeight: 5rem; @boxHeight: 5rem;
@@ -145,16 +146,18 @@
font-size: @boxHeight; font-size: @boxHeight;
text-align: center; text-align: center;
padding: 1rem; padding: 1rem;
}
& > footer {
padding: 1rem;
} }
& > nav { & > nav {
background: none;
left:auto;
ul { ul {
li { li {
display: inline-block; display: inline-block;
border: none; border: none;
width: auto; width: auto;
height: 1.5em;
padding-top: 0.25em;
a { a {
padding: 0.75rem; padding: 0.75rem;
} }
@@ -184,6 +187,7 @@
@formLabelWidth: 10rem; @formLabelWidth: 10rem;
@formItemWidth: 40rem; @formItemWidth: 40rem;
@sectionMargin: 1rem; @sectionMargin: 1rem;
margin: @sectionMargin;
fieldset { fieldset {
width: auto; width: auto;
margin: 1rem auto; margin: 1rem auto;
@@ -262,6 +266,41 @@
} }
} }
} }
@media screen and (max-width: 720px) { @media screen and (max-width: 720px) {
html body {
@boxHeight: 2.5rem;
& > header {
height: @boxHeight;
font-size: @boxHeight;
text-align: center;
padding: 1rem;
}
& > nav {
.hamburgerMenu();
}
main section header {
h1, h2 {
text-align: center;
margin: 0.5rem auto;
}
}
table {
width: 100%;
margin: 1rem 0;
td, th {
padding: 0.25rem;
}
colgroup:not(:first-child) col:first-child{
border-left: solid thin;
}
thead {
th {
font-size: 100%;
font-weight: bold;
.hyphens();
}
}
}
}
} }
+7 -8
View File
@@ -67,19 +67,18 @@
color: white; color: white;
width: 3rem; width: 3rem;
height: 2rem; height: 2rem;
top: 0.5rem; top: 0.25rem;
right: 0.5rem; left: 0.25rem;
left: auto;
.border-radius(4px); .border-radius(4px);
border: none; border: none;
.vertical-gradient(#555; #000); .vertical-gradient(@mainColorDark; @mainColor);
> ul { > ul {
height: auto; height: auto;
width: auto; width: auto;
position: absolute; position: absolute;
right: 0; left: 0;
top: 100%; top: 100%;
background: fade(black,80%); background: fade(@mainColorDark,80%);
.border-radius(5px); .border-radius(5px);
display: none; display: none;
> li { > li {
@@ -100,7 +99,7 @@
&:hover, &:hover,
&:focus { &:focus {
color: white; color: white;
.vertical-gradient(#59b4fd; #0560e8); .vertical-gradient(@mainColorLight; @mainColor);
} }
} }
&:first-child { &:first-child {
@@ -115,7 +114,7 @@
} }
} }
} }
&:hover, &:focus, &:active { &:hover, &:focus, &:active, &:checked {
ul { ul {
display: block; display: block;
} }