-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
151 lines (139 loc) · 2.94 KB
/
style.css
File metadata and controls
151 lines (139 loc) · 2.94 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
:root {
--color-bg: #222;
}
html {
background: var(--color-bg);
}
body {
margin: 0;
padding: 0;
background: none;
font-family: 'Segoe UI', 'Arial', sans-serif;
min-height: 100vh;
min-width: 375px;
overflow-x: auto;
display: flex;
flex-direction: column;
align-items: center;
}
.bubble-wrap-background {
position: relative;
width: 100vw;
min-height: calc(100vh - 64px);
display: flex;
flex-direction: column;
align-items: center;
background: var(--color-bg);
padding: 0;
margin: 0;
z-index: 1;
overflow: visible;
margin-top: 64px; /* content starts after navbar */
}
/* Fixed Navbar */
.navbar {
position: fixed;
z-index: 99;
top: 0;
left: 0;
width: 100vw;
height: 64px;
background: var(--color-bg);
box-shadow: 0 1.5px 8px #0a0a0d52;
display: flex;
align-items: center;
justify-content: center;
}
.navbar nav {
width: 100vw;
max-width: 900px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 28px;
color: #f1f5fb;
}
.navbar-title {
font-size: 1.12rem;
font-weight: 700;
color: #f1f7fb;
letter-spacing: 1.5px;
user-select: none;
text-shadow: 0 2px 6px #111;
}
.navbar-counter {
font-size: 1.12rem;
font-weight: 400;
color: #f9fafb;
background: none;
border-radius: 0;
padding: 0 0.55em 0 0.3em;
min-width: 0;
text-align: right;
box-shadow: none;
user-select: none;
margin-left: 14px;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 0.7em;
}
#popped-counter,
.navbar-counter-pill {
font-weight: 700;
color: #1a252f;
background: #f7f8fb;
border-radius: 2em;
padding: 0.19em 0.86em 0.16em 0.86em;
font-size: 1.12rem;
margin-left: 0.1em;
box-shadow: 0 1.5px 10px -3px #fff7;
display: inline-block;
}
#game-container {
width: 100vw;
height: 100%;
background: transparent;
border-radius: 0;
box-shadow: none;
padding: 0;
margin: 0;
display: flex;
}
.bubble-grid {
display: grid;
grid-template-columns: repeat(auto-fill, 50px);
grid-auto-rows: 50px;
gap: 0;
padding: 0;
border-radius: 0;
box-shadow: none;
user-select: none;
width: 100vw;
min-height: 100%;
overflow: visible;
}
.bubble {
width: 50px;
height: 50px;
background-image: url("bubble.png");
background-size: 50px 50px;
background-position: center;
background-repeat: no-repeat;
box-shadow:
0 2px 8px #6f7b9242,
0 1.5px 5.5px 0 #b2c2d031;
cursor: pointer;
transition: filter 0.1s, box-shadow 0.12s;
position: relative;
overflow: visible;
z-index: 1;
}
.bubble.popped {
background-image: url("bubble-popped.png");
background-size: 50px 50px;
background-position: center;
background-repeat: no-repeat;
filter: none;
box-shadow: 0 1px 2px #757d893b;
}