-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
120 lines (106 loc) · 2.33 KB
/
style.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
:root {
--white-primary:rgb(255, 255, 255);
--black-primary: rgb(51, 51, 51);
--bubble-primary: rgb(255, 144, 104);
--bubble-primary-lighter: rgba(255, 144, 104, 0.7);
--bubble-secondary: rgb(253, 116, 108);
--breathe-time: 4000ms;
}
body {
display: flex;
justify-content: center;
align-items: center;
margin: 0;
max-width: 100vw;
min-height: 100vh;
/*overflow: hidden;*/
color: var(--white-primary);
font-family: Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* .color-pickers {
display: flex;
align-items: center;
margin: 35px;
color: var(--black-primary);
font-size: 1rem;
}
.color-pickers input {
margin: 3px;
cursor: pointer;
} */
.bubble-wrapper {
display: flex;
justify-content: center;
align-items: center;
height: 300px;
width: 300px;
animation: breathe var(--breathe-time) ease-in-out alternate infinite;
}
.outer-circle, .spinning-circle {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: calc(100% - 2px);
width: calc(100% - 2px);
border: 1px solid var(--bubble-primary);
border-radius: 50%;
overflow: hidden;
}
.spinning-circle {
position: absolute;
border: transparent;
animation: spin calc(var(--breathe-time) * 2) linear infinite;
}
.paused {
animation-play-state: paused;
}
.half-circle {
position: absolute;
left: calc(50% - 10px);
height: 20px;
width: 20px;
background-color: var(--bubble-primary-lighter);
border-radius: 50%;
}
.half-circle.bottom {
bottom: -10px;
}
.half-circle.top {
top: -10px;
}
.half-circle.top.darker {
background-color: var(--bubble-primary);
}
.breathe-bubble {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
width: 90%;
height: 90%;
border-radius: 50%;
border: none;
background: radial-gradient(var(--bubble-primary), var(--bubble-secondary));
font-size: 1.125rem;
font-weight: 300;
letter-spacing: .125rem;
}
@keyframes breathe {
0% {
transform: scale(0.7);
}
100% {
transform: scale(1);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}