generated from 2KAbhishek/tiny-web
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
83 lines (71 loc) · 1.41 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
71
72
73
74
75
76
77
78
79
80
81
82
83
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap");
* {
box-sizing: border-box;
/* background-color: black; */
color: white;
}
body {
font-family: "Dancing Script", sans-serif;
margin: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.one {
background-image: linear-gradient(135deg, silver, black);
}
.two {
background-image: linear-gradient(135deg, orange, red);
}
.four {
background-image: linear-gradient(135deg, skyblue, royalblue);
}
.three {
background-image: linear-gradient(135deg, violet, indigo);
}
.five {
background-image: linear-gradient(135deg, yellow, green);
}
.container {
display: flex;
width: 90vw;
}
.panel {
height: 80vh;
width: 10vw;
border-radius: 10px;
margin: 15px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex: 1 1;
transition: flex 0.7s ease-in;
}
h2 {
text-align: center;
font-size: 28px;
margin: 0;
opacity: 0;
}
.panel.active {
flex: 0 0 30%;
box-shadow: 12px 9px 24px 3px #000;
}
.panel.active h2 {
opacity: 1;
transition: opacity 0.7s ease-in 0.2s;
}
/* Arrange panels vertically */
@media (max-width: 680px) {
.container {
height: 90vh;
flex-direction: column;
}
.panel {
width: 80vw;
height: 10vh;
}
}