CSY1018-assignment-1/style/mobile.css

134 lines
2.0 KiB
CSS
Raw Normal View History

2022-03-10 16:17:19 +00:00
.arrow {
display: none;
}
body {
grid-template-areas:
"main main main"
"aside aside aside"
"footer footer footer";
}
.moreInfo:hover .extraInfo{
2022-03-04 18:55:12 +00:00
display: none;
}
2022-03-10 16:17:19 +00:00
main {
2022-03-10 16:26:44 +00:00
margin-left: 0.2em;
2022-03-10 16:17:19 +00:00
border-top-right-radius: 0em;
border-bottom-right-radius: 0em;
}
.bio {
border-top-left-radius: 0em;
border-bottom-left-radius: 0em;
}
2022-03-04 18:55:12 +00:00
.navigation {
2022-03-10 16:17:19 +00:00
min-width: 10em;
width: 200%;
height: 50vh;
white-space: nowrap;
grid-template-rows: 20% 20% 20% 20% 20%;
grid-template-areas:
"close"
"home"
"port"
"blog"
"contact";
position: fixed;
z-index: 1000;
top: -2.2em;
}
.shownav {
z-index: 1000;
margin-left: 0.1em;
margin-top: 0.1em;
height: 0.8em;
width: 1.25em;
display: block;
position: fixed;
border-top: 0.2em solid #f29602;
border-bottom: 0.2em solid #f29602;
2022-03-10 16:17:19 +00:00
}
.hidenav {
padding-right: 0.1em;
text-align: right;
opacity: 90%;
background-color: #000000;
z-index: 1;
display: block;
font-size: larger;
display: flex;
color: white;
text-decoration: none;
grid-area: close;
align-self: flex-end;
}
.shownav:before {
content:'';
position: absolute;
width: 1.25em;
margin-top: 0.3em;
border-top: 0.2em solid #f29602;
2022-03-10 16:17:19 +00:00
}
#clicked .shownav {
display: block;
}
#clicked .hidenav {
display: none;
}
#clicked:target .shownav {
2022-03-04 18:55:12 +00:00
display: none;
2022-03-10 16:17:19 +00:00
}
#clicked:target .hidenav {
display: block;
}
#clicked:target > .navigation{
transform: translate(0%,0);
display: grid;
}
#contact{
border-top-right-radius: 0em;
}
.link {
max-height: 4em;
}
nav > .link:hover {
border-right: 0.1em solid #32cd32;
border-bottom: 0.1em solid #000000;
}
#home:hover {
border-right: none;
}
.navigation:hover {
transform: translate(-95%,0);
}
.generalInfo {
margin-top: 1em;
2022-03-10 16:33:24 +00:00
margin-left: 2em;
}
.moreInfo:hover {
cursor: initial;
}
.langList {
margin-left: -5em;
font-size: small;
2022-03-04 18:55:12 +00:00
}