-
Notifications
You must be signed in to change notification settings - Fork 903
/
Copy pathstyle.css
70 lines (70 loc) · 1.7 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
body{
background: radial-gradient(at left, #81e8f2, #f8bbc5);
}
h1,h3{
text-align: center;
font-family: 'Times New Roman', Times, serif;
color: #202020;
font-size: 2.2rem;
}
.cards{
/*border:2px solid red;*/
margin: 1.5em;
height: 50vh;
width: 5vw;
border-radius: 38px;
display: flex;
align-items: flex-end;
transition: 0.5s ease-out;
}
.cards:hover{
cursor: pointer;
box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.13);
}
.main{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.cards h3{
color:white;
font-weight: bold;
position:relative;
left: 10px;
opacity: 0;
transition: 0.5s ease-out;
}
.cards.active{
width:20vw;
transition: 0.5s ease-out;
}
.cards.active h3{
opacity: 1;
transition: 0.5s ease-out;
}
#pvt1{
background-image: url('https://images.unsplash.com/photo-1558979158-65a1eaa08691?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80');
}
#pvt2{
background-image: url('https://images.unsplash.com/photo-1572276596237-5db2c3e16c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80');
}
#pvt3{
background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1353&q=80');
}
#pvt4{
background-image: url('https://images.unsplash.com/photo-1549880338-65ddcdfd017b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80');
}
@media(max-width:680px){
.main{
flex-direction: column;
}
.cards{
width:80vw;
height: 10vh;
}
.cards.active{
width:80vw;
height:40vh;
}
}