CSY1018-assignment-1/style/main.css

107 lines
1.7 KiB
CSS
Raw Normal View History

2022-03-04 18:55:12 +00:00
body {
margin: 0;
background-image: url("../assets/images/background.jpg");
background-size: cover;
2022-03-04 20:06:43 +00:00
font-family: body;
2022-03-04 18:55:12 +00:00
display: grid;
grid-template-columns: 20% 40% 40%;
grid-template-rows: 20% 60% 20%;
grid-template-areas:
2022-03-09 17:14:22 +00:00
"nav nav nav"
2022-03-04 18:55:12 +00:00
"main main aside"
"footer footer footer";
}
footer {
grid-area: footer;
2022-03-04 20:06:43 +00:00
color: #e5e5e5;
2022-03-04 18:55:12 +00:00
}
main {
grid-area: main;
}
.navigation {
margin: 0;
2022-03-09 17:14:22 +00:00
margin-right: -24em;
2022-03-04 18:55:12 +00:00
display: grid;
2022-03-09 17:14:22 +00:00
grid-template-columns: 25% 25% 25% 25%;
grid-template-areas: "home port blog contact";
z-index: 1000;
2022-03-04 18:55:12 +00:00
}
.link {
2022-03-09 16:34:28 +00:00
color: #e5e5e5;
}
.nav.link {
2022-03-04 18:55:12 +00:00
margin: 0;
opacity: 90%;
font-family: headers;
font-size: x-large;
background-color: #000000;
color: #f29602;
text-decoration: none;
text-align: center;
2022-03-09 17:14:22 +00:00
border-bottom: 0.1em solid #000000;
2022-03-04 18:55:12 +00:00
}
.link > h2 {
margin: 0;
}
2022-03-09 16:34:28 +00:00
nav > .link:hover {
2022-03-09 17:14:22 +00:00
border-bottom: 0.1em solid #32cd32;
2022-03-04 18:55:12 +00:00
}
.link #home {
grid-area: home;
}
.link #port {
grid-area: port;
}
.link #blog {
grid-area: blog;
}
.link #contact {
grid-area: contact;
}
#contact {
border-top-right-radius: 10em;
border-bottom-right-radius: 10em;
}
2022-03-09 16:34:28 +00:00
.moreInfo {
position: relative;
}
.moreInfo:hover .extraInfo {
display:inline-block;
}
.extraInfo {
white-space: nowrap;
margin-top: -1.2em;
margin-left: -2em;
background-color: #000000;
color: #e5e5e5;
display: none;
z-index: 1000;
position: absolute;
}
2022-03-04 18:55:12 +00:00
@font-face {
font-family: headers;
src: url(../assets/fonts/game_over.woff);
}
2022-03-04 20:06:43 +00:00
@font-face {
font-family: body;
src: url("../assets/fonts/AmaticSC-Regular.woff");
}