Untitled
unknown
plain_text
3 years ago
4.7 kB
5
Indexable
*{
padding: 0px;
margin: 0px;
}
body {
margin: 0;
font-family: Arial;
height:600vh;
}
/*header*/
header {
position: fixed;
top: 0;
background-color: #EDF2FD;
height: 100px;
display:flex;
z-index: 1;
width: 100vw;
box-shadow: 0px 7px 32px -20px #000000;
flex-flow: row wrap ;
justify-content: flex-start;
}
#logo {
display: flex;
width: 150px;
/* float: left; */
margin: 0px;
}
#logo img {
height: 60px;
padding: 0;
margin: 5px;
}
header a {
margin: 24px 40px;
padding: 15px;
text-decoration: none;
color : rgb(2,83,138);
}
header a:hover {
/* background-color: rgb(222, 222, 222); */
border-radius: 5px;
box-shadow:0px 0px 10px rgb(150, 150, 150);
}
/******/
/*team*/
/******/
.team {
background: hsla(221, 45%, 73%, 1);
background: linear-gradient(180deg, hsla(221, 45%, 73%, 1) 0%, hsla(220, 78%, 29%, 1) 100%);
padding: 50px;
position:relative;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
top: 80px;
}
.team-card {
position: relative;
height: 400px;
width: 300px;
background-color: hsla(0, 0%, 98%, 0.60);
padding: 20px;
margin: 20px;
border-radius: 20px;
display: flex;
align-items: center;
box-shadow: 0px 7px 32px -20px #000000;
}
.team-card:hover{
transform: scale(1.02);
}
.infos {
display: inline-block;
width: 50px;
position: absolute;
top: 20px;
right: 20px;
}
.infos img {
border-radius: 50%;
height: 40px;
top: 20px;
right: 20px;
}
.city-pic {
position: absolute;
border-radius: 5px;
height: 170px;
top: 20px;
left: 20px;
}
.team-card .names {
position: absolute;
top: 65px;
right: 20px;
width : 100px
}
.description {
position: absolute;
top: 200px;
padding-right: 20px;
text-align: justify;
}
.team-card-img{
position: relative;
height: 400px;
width: 300px;
padding: 20px;
margin: 20px;
border-radius: 20px;
display: flex;
align-items: center;
order:-1;
box-shadow: 0px 7px 32px -20px #000000;
background-image: url(https://images.pexels.com/photos/46148/aircraft-jet-landing-cloud-46148.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2);
background-size:cover;
}
.team-card-img:hover{
transform: scale(1.02) rotate(0.003turn);
}
@media screen and (max-width: 900px) and (min-width: 600px) {
header {
position: fixed;
top: 0;
background-color: #EDF2FD;
height: 200px;
display:flex;
z-index: 1;
width: 100vw;
box-shadow: 0px 7px 32px -20px #000000;
flex-flow: row wrap ;
justify-content: center;
}
.team-card {
position: relative;
height: 200px;
width: 150px;
background-color:hsla(0, 0%, 98%, 0.60);
padding: 20px;
margin: 20px;
border-radius: 20px;
display: inline-block;
text-size-adjust: 50%;
}
.infos {
display: inline-block;
width: 25px;
position: absolute;
top: 10px;
right: 10px;
}
.infos img {
border-radius: 50%;
height: 20px;
top: 10px;
right: 10px;
}
.city-pic {
position: absolute;
border-radius: 5px;
height: 85px;
top: 10px;
left: 10px;
}
.firstname {
position: absolute;
top: 25px;
right: 5px;
width : 25px;
font-size: 80%;
}
.lastname {
position: absolute;
top: 40px;
right: 5px;
width : 25px;
font-size: 80%;
}
.description {
position: absolute;
top: 100px;
padding-right: 10px;
text-align: justify;
font-size: 70%;
}
.team {
top: 140px;
}
.team-card-img{
position: relative;
height: 200px;
width: 150px;
padding: 20px;
margin: 20px;
border-radius: 20px;
display: flex;
align-items: center;
order:-1;
box-shadow: 0px 7px 32px -20px #000000;
background-image: url(https://images.pexels.com/photos/46148/aircraft-jet-landing-cloud-46148.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2);
background-size:cover;
}
}
@media screen and (max-width: 600px) and (min-width: 0px) {
header {
position: fixed;
top: 0;
background-color: #EDF2FD;;
height: 200px;
display:flex;
z-index: 1;
width: 100vw;
box-shadow: 0px 7px 32px -20px #000000;
flex-flow: row wrap ;
justify-content: center;
}
.team {
top: 140px;
}
}Editor is loading...