Repository navigation
Expand file tree
/
Copy pathcodepen.css
More file actions
123 lines (113 loc) · 2.28 KB
/
Copy pathcodepen.css
File metadata and controls
123 lines (113 loc) · 2.28 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Bree+Serif&family=EB+Garamond:ital,wght@0,500;1,800&display=swap");
body {
background: rgba(223, 194, 242, 7);
background-image: linear-gradient(to right, rgba(244, 202, 250, 0.6), rgba(230, 230, 250, 0.6));
background-attachment: fixed;
background-size: cover;
}
.container {
box-shadow: 0 15px 30px 1px grey;
background: rgba(255, 255, 255, 0.9);
text-align: center;
border-radius: 5px;
overflow: hidden;
margin: 5em auto;
height: 350px;
width: 700px;
}
.event-details {
position: relative;
overflow: hidden;
padding: 24px 30px;
height: 100%;
float: left;
width: 36%;
}
.container .event-details h1 {
font-family: "Bebas Neue", cursive;
display: inline-block;
position: relative;
font-size: 22px 30px;
color: #344055;
margin: 0;
}
.container .event-details h1:before {
position: absolute;
content: "";
right: 0%;
top: 0%;
transform: translate(25px, -15px);
font-family: "Bree Serif", serif;
display: inline-block;
background: #ffe6e6;
border-radius: 5px;
font-size: 14px;
padding: 5px;
color: white;
margin: 0;
animation: chan-sh 6s ease infinite;
}
.hint-star {
display: inline-block;
margin-left: 0.5em;
color: gold;
width: 50%;
}
.container .event-details > p {
font-family: "EB Garamond", serif;
text-align: center;
font-size: 18px;
color: #7d7d7d;
}
.control {
position: absolute;
bottom: 20%;
left: 22.8%;
}
.event-image {
transition: all 0.3s ease-out;
display: inline-block;
position: relative;
overflow: hidden;
height: 100%;
float: right;
width: 48%;
display: inline-block;
}
.container img {
width: 100%;
height: 100%;
}
.info {
background: rgba(27, 26, 26, 0.9);
font-family: "Bree Serif", serif;
transition: all 0.3s ease-out;
transform: translateX(-100%);
position: absolute;
padding: 10px 10px;
line-height: 1.8;
text-align: left;
font-size: 105%;
cursor: no-drop;
color: #fff;
height: 100%;
width: 100%;
left: 0;
top: 0;
}
.info h2 {
text-align: center;
margin-top: 1rem;
}
.info p{
padding-left: 2rem;
}
.event-image:hover .info {
transform: translateX(0);
}
.event-image:hover img {
transition: all 0.3s ease-out;
}
.event-image:hover img {
transform: scale(1.2, 1.2);
}