-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
99 lines (86 loc) · 1.79 KB
/
index.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*CSS stylesheet for the project*/
/*CSS for the entire webpage*/
body {
margin: 0;
overflow: hidden;
background-color: #191970;
}
/*Canvas*/
canvas {
display: block;
}
/*CSS for the mode button*/
.mode{
width: 8vw;
height: 7vh;
border-radius: 1em;
background-color: blue;
margin-top: 1vw;
background-image: url('/media/night.png');
background-size: contain;
background-position: left;
background-repeat: no-repeat;
border-color: rgb(213, 59, 224) ;
border-width: 0.4vw;
position: absolute;
left: 5vw;
top: 2vw;
cursor: pointer;
transition-duration: 1s;
}
/*CSS keyframes for border-color animation*/
@keyframes writing_space {
0% {border-color: rgb(22, 20, 152);}
25% {border-color: rgb(226, 43, 208)}
50% {border-color: rgb(167, 59, 207);}
100% {border-color: rgb(18, 87, 128);}
}
/*CSS when hovering over the mode button*/
.mode:hover {
animation: writing_space 3s infinite;
}
/*CSS for the moon and sun images*/
#modeDisplay{
max-width: 20vw;
max-height: 20vh;
position: absolute;
right: 5vw;
top: 3vw;
opacity: 0.8;
cursor: pointer;
}
.modelbtn{
background-color: darkmagenta;
color: white;
font-size: 1rem;
text-align: center;
cursor: pointer;
border: 0.4vw double white;
padding: 0.7vw 1vw;
position: absolute;
top: 10vw;
left: 5vw;
}
#btn2{
top:15vw;
}
#btn3{
top: 20vw;
}
#btn4{
top: 25vw;
}
/*CSS when the sun or moon image is hovered*/
#modeDisplay:hover{
opacity: 1; /*Creates a glowing effect as intially it has opacity of 0.8*/
}
/*CSS for responsive mode button*/
@media screen and (max-width: 768px){
.mode{
width: 30vw;
height: 10vh;
}
.modelbtn{
margin-top: 10vw;
}
}