114 lines
1.4 KiB
CSS
114 lines
1.4 KiB
CSS
|
html {
|
||
|
font-family: monospace;
|
||
|
font-size: large;
|
||
|
background: linear-gradient(to bottom right, turquoise, teal);
|
||
|
min-height: 100%;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
margin: 10px;
|
||
|
width: 80ch;
|
||
|
max-width: 100%;
|
||
|
height: 110px;
|
||
|
box-shadow: 5px 5px 5px;
|
||
|
flex: auto;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
|
||
|
#headerimg {
|
||
|
border: 3px black solid;
|
||
|
border-right: 0;
|
||
|
max-height: 100%;
|
||
|
object-fit: cover;
|
||
|
flex: 1;
|
||
|
}
|
||
|
|
||
|
#headermain {
|
||
|
background: turquoise;
|
||
|
border: 3px black solid;
|
||
|
text-align: center;
|
||
|
height: 100%;
|
||
|
flex: 4;
|
||
|
}
|
||
|
|
||
|
#headermain a {
|
||
|
color: blue;
|
||
|
text-decoration: none;
|
||
|
text-transform: uppercase;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
#headermain a:hover {
|
||
|
text-decoration: underline;
|
||
|
}
|
||
|
|
||
|
#homelink {
|
||
|
font-size: xx-large;
|
||
|
font-weight: bold;
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
|
||
|
nav {
|
||
|
font-size: x-large;
|
||
|
}
|
||
|
|
||
|
nav ul {
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
nav ul li {
|
||
|
display: inline;
|
||
|
}
|
||
|
|
||
|
nav ul li + li::before {
|
||
|
content: " | ";
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
flex: auto;
|
||
|
}
|
||
|
|
||
|
aside {
|
||
|
background: turquoise;
|
||
|
border: 3px black solid;
|
||
|
margin: 10px;
|
||
|
padding: 10px;
|
||
|
box-shadow: 5px 5px 5px;
|
||
|
}
|
||
|
|
||
|
article {
|
||
|
background: turquoise;
|
||
|
border: 3px black solid;
|
||
|
margin: 10px;
|
||
|
padding: 30px;
|
||
|
text-align: justify;
|
||
|
hyphens: auto;
|
||
|
box-shadow: 5px 5px 5px;
|
||
|
}
|
||
|
|
||
|
@media screen and (min-width: 80ch) {
|
||
|
main {
|
||
|
display: flex;
|
||
|
align-items: start;
|
||
|
}
|
||
|
|
||
|
aside {
|
||
|
width: 30ch;
|
||
|
flex: auto;
|
||
|
position: sticky;
|
||
|
top: 10px;
|
||
|
}
|
||
|
|
||
|
article {
|
||
|
max-width: 80ch;
|
||
|
flex: auto;
|
||
|
}
|
||
|
}
|