Make design responsive
Added 3 screen widths. The side menu doesn't work yet.
This commit is contained in:
parent
b27027039b
commit
7a7593b32d
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta charset="utf-8"/>
|
||||
<title> LUGA — Linux User Group Austria </title>
|
||||
<link rel="stylesheet" href="luga.css" />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<head>
|
||||
<meta name=viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta charset="utf-8"/>
|
||||
<title> LUGA — Linux User Group Austria </title>
|
||||
<link rel="stylesheet" href="luga.css" />
|
||||
|
|
47
luga.css
47
luga.css
|
@ -47,11 +47,11 @@ header {
|
|||
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 65rem) {
|
||||
@media only screen and (min-width: 40rem) and (max-width: 65rem) {
|
||||
body {
|
||||
display: grid;
|
||||
grid-template-columns: 13rem auto;
|
||||
grid-template-rows: 3rem auto auto auto auto;
|
||||
grid-template-rows: auto auto auto auto auto;
|
||||
}
|
||||
|
||||
#logo {
|
||||
|
@ -82,6 +82,48 @@ header {
|
|||
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 40rem) {
|
||||
body {
|
||||
display: grid;
|
||||
grid-template-columns: 3rem auto;
|
||||
grid-template-rows: auto auto auto auto auto;
|
||||
}
|
||||
|
||||
#logo {
|
||||
grid-column: 1;
|
||||
grid-row: 1 / span 2;
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
header {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
nav {
|
||||
grid-column: 1;
|
||||
grid-row: 3;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
nav:hover {
|
||||
overflow: visible;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
main {
|
||||
grid-column: 2;
|
||||
grid-row: 2 / span 3;
|
||||
}
|
||||
|
||||
footer {
|
||||
grid-column: 1 / span 2;
|
||||
grid-row: 5;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: #008;
|
||||
text-decoration: none;
|
||||
|
@ -152,6 +194,7 @@ nav {
|
|||
nav ul {
|
||||
list-style-type: none;
|
||||
padding-left: 0.7em;
|
||||
background-color: var(--yellow-light);
|
||||
}
|
||||
|
||||
footer ul {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<head>
|
||||
<meta name=viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta charset="utf-8"/>
|
||||
<title> LUGA — Veranstaltungen </title>
|
||||
<link rel="stylesheet" href="luga.css" />
|
||||
|
|
Loading…
Reference in New Issue