Portfolio/pages/mainpage.css
2021-09-16 15:03:14 +01:00

202 lines
2.9 KiB
CSS

@import url("reset.css");
@font-face{
font-family:"roboto";
font-weight: 100;
src: url("../fonts/Roboto/RobotoMono-VariableFont_wght.ttf")
}
html{
font: 100%;
}
body{
color: #ffd256;
background-color: #181818;
font-family: "roboto";
line-height: 1.3;
}
button{
background-color: transparent;
border: none;
color: #ffd256;
}
button:focus {
border: none;
outline: none;
}
a:link:not(.galleryLink), a:visited:not(.galleryLink){
color: #ffd256;
border-radius: 2px;
transition: background-color 0.5s, color 0.5s;
}
h1{
font-size: clamp(1.2rem, 4vw, 4rem);
padding-left: 6;
margin-top: 10vh;
margin-bottom: 70vh;
margin-left: 2vw;
margin-right: 60vw;
height: 20vh;
text-align: left;
}
.subTitle{
font-size: 30%;
padding-top: 10;
padding-left: 5;
}
.orangeBorder{
border: 2px solid transparent;
border-radius: 5px;
padding: 5px;
transition: border 0.5s;
}
.orangeBorder:hover{
border: 2px solid #ffd256;
padding: 5px;
}
.textBox{
text-align: center;
font-size: clamp(1rem, 1.2vw, 3rem);
padding: 1.3vh;
margin-top: 8vh;
margin-bottom: 8vh;
margin-left: 10vw;
margin-right: 10vw;
}
.profileImage{
width: 30vw;
height: 30vw;
text-align: center;
}
#galleryHeader{
margin-left: 30vw;
margin-right: 30vw;
border-radius: 5px;
font-size: clamp(1rem, 1.2vw, 3rem);
}
.gallery{
display: flex;
margin-left: 10vw;
margin-right: 10vw;
height: 19vh;
margin-bottom: 0vh;
transition: margin-bottom 0.5s;
justify-content: space-evenly;
}
.gallery:hover{
margin-bottom: 36vh;
}
.galleryItem{
height: 13vw;
}
.galleryItem:hover + .galleryPopup{
visibility: visible;
opacity: 1;
}
.galleryItem:hover .popupTongue{
visibility: visible;
opacity: 1;
}
.galleryPopup:hover{
visibility: visible;
opacity: 1;
}
.galleryPopup:hover .popupTongue{
visibility: visible;
opacity: 1;
}
.galleryPopup{
visibility: hidden;
opacity: 0;
display: flex;
z-index: 5;
position: absolute;
background-color: #ffd256;
border-radius: 2px;
color: #181818;
width: 78.5vw;
height: 19vh;
transition: visibility 0.3s, opacity 0.5s;
margin-top: 14.85vw;
}
.popupTongue{
visibility: hidden;
opacity: 0;
transition: visibility 0.3s, opacity 0.5s;
width: 1.85vw;
height: 1.85vw;
margin-left: 5vw;
}
.popupImage{
padding: 10px;
}
.popupTextContainer{
display: flex;
flex-direction: column;
padding: 6px;
}
.galleryImage{
width: 100%;
height: 100%;
}
.galleryImageContainer{
height: 100%;
width: 100%;
display: block;
}
.galleryTitle{
font-weight: 700;
}
#outroText{
margin-top: 12vh;
margin-bottom: 20vh;
margin-left: 27vw;
margin-right: 27vw;
}
#socialBar{
display: flex;
margin-bottom: 5vh;
justify-content: center;
}