-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
52 lines (46 loc) · 702 Bytes
/
Copy pathstyle.css
File metadata and controls
52 lines (46 loc) · 702 Bytes
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
body {
margin: 0;
font-family: Helvetica, sans-serif;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
gap: 2em;
}
.product {
position: relative;
box-shadow: 0 0 2em rgba(0, 0, 0, 0.2);
border-radius: 1em;
overflow: hidden;
}
.img-1 {
width: 30em;
z-index: 0;
}
.img-2 {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 2;
}
p {
max-width: 30em;
line-height: 27px;
}
.color {
background: red;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
mix-blend-mode: multiply;
}
.color-input {
background: #fff;
border: 1px #ccc solid;
border-radius: 4px;
padding: 0.3em;
}