Files

144 lines
1.9 KiB
CSS
Raw Permalink Normal View History

2026-03-11 15:03:48 +00:00
* {
box-sizing: border-box;
}
2026-03-11 10:53:56 +00:00
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 14px;
2026-03-11 15:03:48 +00:00
background-color: #000;
2026-03-11 10:53:56 +00:00
}
2026-03-11 15:03:48 +00:00
.grid-container {
display: grid;
grid-template-areas:
'header'
'menu'
'main'
'footer';
color: lime;
gap: 10px;
}
.header {
grid-area: header;
text-align: center;
color: lime;
}
.header>h1 {
2026-03-11 10:53:56 +00:00
color: lime;
padding: 10px;
margin-bottom: 10px;
text-transform: uppercase;
2026-03-11 15:03:48 +00:00
text-decoration: underline double green;
}
.menu {
grid-area: menu;
border-right: dashed;
margin-right: 10px;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
2026-03-11 10:53:56 +00:00
}
2026-03-11 15:03:48 +00:00
.menu li {
padding: 8px;
margin-bottom: 7px;
}
.menu li a {
color: lime;
text-decoration: none;
}
.menu li a:hover {
color: green;
}
.content {
grid-area: main;
}
.content>h1 {
2026-03-11 10:53:56 +00:00
font-size: 2em;
2026-03-11 15:03:48 +00:00
margin-bottom: 10px;
2026-03-11 10:53:56 +00:00
}
2026-03-11 15:03:48 +00:00
.content>p {
margin-bottom: 7px;
}
.footer {
grid-area: footer;
color: lightgrey;
2026-03-11 10:53:56 +00:00
text-align: center;
2026-03-11 15:03:48 +00:00
position: fixed;
width: 100%;
left: 0;
bottom: 0;
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
.header {
grid-area: 1 / span 6;
}
.menu {
grid-area: 2 / span 1;
}
.content {
grid-area: 2 / span 4;
}
.footer {
grid-area: 4 / span 6;
}
2026-03-11 10:53:56 +00:00
}
2026-03-11 15:03:48 +00:00
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
body {
font-size: 18px;
}
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
.header {
grid-area: 1 / span 6;
}
.menu {
grid-area: 2 / span 1;
}
.content {
grid-area: 2 / span 4;
}
.footer {
grid-area: 3 / span 6;
}
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
2026-03-11 10:53:56 +00:00
}