This repository was archived by the owner on Jan 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
109 lines (96 loc) · 2.02 KB
/
Copy pathstyle.css
File metadata and controls
109 lines (96 loc) · 2.02 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
* {
margin: 0;
padding: 0;
user-select: none;
box-sizing: border-box;
outline: none;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: radial-gradient(rgb(30, 30, 30), #0f0f0f);
}
label {
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
position: relative;
width: 400px;
height: 150px;
background: #3e3e3e;
box-shadow: 0 0 0 4px #303030;
border-radius: 75px;
}
label input {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
}
label div {
position: absolute;
left: 0;
width: 175px;
height: 150px;
background: url(img/Coffee_01.png);
background-size: auto 150px;
background-repeat: no-repeat;
transition: 1.5s;
transform: rotate(-180deg);
transform-origin: 75px;
}
label input:checked ~ div {
left: 235px;
background: url(img/Coffee_02.png);
background-size: auto 150px;
background-repeat: no-repeat;
transform: rotate(360deg);
}
label span {
position: absolute;
left: -100px;
color: white;
font-family: consolas;
text-transform: uppercase;
font-size: 3em;
filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 35px #fff);
}
label input:checked ~ span {
color: #3e3e3e;
/* color: #8f8f8f; */
transition: 1s;
filter: none;
}
label input:checked ~ span:last-child {
filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 35px #fff);
color: white;
transition: 1s;
}
label span:last-child {
position: absolute;
left: initial;
right: -100px;
color: #3e3e3e;
/* color: #8f8f8f; */
filter: none;
}
@media screen and (min-width: 300px) and (max-width: 800px) {
body {
height: 100vh;
width: 100vw;
}
label {
width: 400px;
height: 150px;
}
label span:nth-child(4) {
right: 20px;
top: -100px;
}
label span:nth-child(3) {
left: 20px;
top: -100px;
}
}