-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
64 lines (55 loc) · 1.1 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
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');
* {
box-sizing: border-box;
}
body {
height: 100vh;
font-family: 'Roboto', sans-serif;
display: flex;
justify-content: center;
align-items: center;
margin:0;
overflow: hidden;
}
.container {
display: flex;
width: 90vw;
}
.panel {
background-repeat: no-repeat;
background-size:cover;
background-attachment: fixed;
background-position: center;
position: relative;
height:80vh;
border-radius: 35px;
cursor: pointer;
color:rgb(35, 154, 2);
margin: 15px;
flex:0.5;
transition: flex 0.7s ease;
}
.panel h3 {
font-size: 30px;
position: absolute;
bottom:30px;
left: 30px;
margin: 0;
opacity:0;
}
.panel.active {
flex: 5;
}
.panel.active h3 {
opacity:1;
transition: opacity 0.5s ease-in-out 0.3s;
}
@media (max-width: 660px) {
.container {
width: 100vw;
}
.panel:nth-of-type(5),
.panel:nth-of-type(6) {
display:none;
}
}