CSY1018-assignment-1/style/main.css

173 lines
2.8 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 {
background-color: rgba(255, 255, 255, 60%);
2022-03-04 18:55:12 +00:00
grid-area: footer;
display: grid;
grid-template-columns: 15% 10% 10% 10% 10% 10%;
}
footer > a {
font-family: headers;
text-decoration: none;
font-size: larger;
color: #14213d;
}
footer > a > p {
margin-top: 1.8em;
font-family: body;
2022-03-04 18:55:12 +00:00
}
main {
grid-area: main;
}
.navigation {
2022-03-09 18:39:18 +00:00
top: 0em;
2022-03-04 18:55:12 +00:00
margin: 0;
grid-area: nav;
width: 80em;
2022-03-04 18:55:12 +00:00
display: grid;
2022-03-09 18:39:18 +00:00
grid-template-columns: 20% 20% 20% 20% 20%;
grid-template-areas: "home port blog contact arrow";
position: sticky;
transform: translate(-95%,0);
transition: transform 1s;
}
.navigation:hover {
transform: translate(0,0);
}
.navigation:hover .arrow {
opacity: 0;
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
}
2022-03-09 18:39:18 +00:00
#home:hover {
border-bottom: 0.1em solid #000000;
}
#home {
2022-03-04 18:55:12 +00:00
grid-area: home;
}
2022-03-09 18:39:18 +00:00
#port {
2022-03-04 18:55:12 +00:00
grid-area: port;
}
2022-03-09 18:39:18 +00:00
#blog {
2022-03-04 18:55:12 +00:00
grid-area: blog;
}
#contact {
2022-03-09 18:39:18 +00:00
grid-area: contact;
2022-03-04 18:55:12 +00:00
border-top-right-radius: 10em;
border-bottom-right-radius: 10em;
}
2022-03-09 18:39:18 +00:00
#arrow {
grid-area: arrow;
}
.arrow {
margin-left: 12em;
2022-03-09 18:39:18 +00:00
margin-top: 1em;
border:0.5em solid #f29602;
border-width: 0em 0.5em 0.5em 0em;
width: 0.5em;
height: 0.5em;
display: inline-block;
padding: 0.5em;
opacity: 1;
transition: opacity 1s ease-in;
transform: rotate(-45deg);
}
2022-03-09 16:34:28 +00:00
.moreInfo {
position: relative;
text-decoration: underline;
cursor: pointer;
2022-03-09 16:34:28 +00:00
}
.moreInfo:hover .extraInfo {
display:inline-block;
}
.extraInfo {
white-space: nowrap;
2022-03-09 19:13:41 +00:00
padding: 0.2em;
2022-03-10 14:38:16 +00:00
margin-top: -1.6em;
2022-03-09 16:34:28 +00:00
margin-left: -2em;
background-color: #e5e5e5;
color: #000000;
2022-03-09 16:34:28 +00:00
display: none;
z-index: 1000;
2022-03-10 14:38:16 +00:00
border-radius: 10em;
2022-03-09 16:34:28 +00:00
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: headings;
2022-03-04 20:06:43 +00:00
src: url("../assets/fonts/AmaticSC-Regular.woff");
}
@font-face {
font-family: body;
src: url("../assets/fonts/Yomogi-Regular.woff");
}
.hidenav {
display: none;
}
#footer_logo {
margin-top: 1.6em;
margin-right: 0.2em;
float: left;
max-width: 2em;
2022-03-04 20:06:43 +00:00
}