forked from Shubham56-droid/Web-Components-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (94 loc) · 1.7 KB
/
style.css
File metadata and controls
106 lines (94 loc) · 1.7 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
*
{
margin: 0px;
padding: 0px;
box-sizing: border-box;
font-family: 'Courier', monospace;
}
.sec
{
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background: #0099ff;
}
.sec .dot
{
position: absolute;
width: 40px;
height: 40px;
background: #fff;
border-radius: 50%;
transform: translate(-50%,-50%);
cursor: default;
transition: box-shadow 0.5s;
}
.sec .dot:active
{
box-shadow: 0 0 0 200vh #fff;
border: 2px solid #000;
}
.sec .dot.active
{
background-color: #000;
border: 2px solid black;
}
.sec .dot.active:active
{
box-shadow: 0 0 0 200vh rgb(0, 0, 0);
border: 2px solid #fff;
}
.sec .dot::before
{
content:'Light Mode';
position: absolute;
top: 50%;
left:50px;
white-space: nowrap;
transform: translateY( -50%);
color: #fff;
font-size: 1.5em;
font-weight: 600;
}
.sec .dot.active::before
{
content:'Dark Mode';
color: #000;
}
.sec h2
{
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 80vh ;
color: #fff;
background: #000;
user-select: none;
font-weight: 900;
text-transform: uppercase;
text-align: center;
mix-blend-mode: multiply;
}
.sec.active h2
{
color:#000;
background: #fff;
mix-blend-mode: screen;
}
.sec video
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
/* z-index: 1; */
}