-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
93 lines (75 loc) · 1.52 KB
/
styles.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
*{
box-sizing: border-box;
}
body{
font-family: 'Roboto', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
overflow: hidden;
background-color: rgb(16, 15, 15);
width: 100%;
overflow: hidden;
}
.container{
display: flex;
height: 90vh;
margin: 20px;
}
.panel{
background-size: auto 99%;
background-position: center;
background-repeat: no-repeat;
width: 15vw;
color: rgb(255, 255, 255);
margin: 5px;
opacity: 0.5;
text-align: center;
border-radius: 10px;
cursor: pointer;
position: relative;
transition: flex 0.5s, width 0.5s, opacity 0.7s;
}
.panel h3, p{
color: rgb(255, 255, 255);
opacity: 0;
}
.panel.active{
flex: 5;
width: 50vw;
opacity: 1;
transition: flex 0.5s, width 0.5s, opacity 0.7s;
}
.panel.active h3{
opacity: 1;
transition: opacity 0.5s ease-in 0.5s;
}
.panel.active p{
opacity: 1;
transition: opacity 0.5s ease-in 0.5s;
}
@media only screen and (max-width: 767px) {
/* Add styles for mobile devices here */
body{
width: 100%;
margin-left: 50vw;
padding: 0;
margin-right: 25vw;
}
.container{
margin: 0 10px;
}
.panel:nth-child(4),
.panel:nth-child(5) {
display: none;
}
.panel{
width: 30vw;
}
.panel:hover{
width: 90vw;
}
}