Skip to content

Commit 8970f96

Browse files
authored
Merge pull request #12 from thavelick/mobile_responsiveness_fixes
Fix mobile responsiveness and improve UI
2 parents 0f1f414 + a270f26 commit 8970f96

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

public_html/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
33
<head>
44
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
56
<link rel="icon" type="image/svg+xml" href="icon.svg" />
67
<link rel="manifest" href="manifest.json" />
78
<link

public_html/service-worker-lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const STATIC_CACHE_NAME = "just-bangs-static-v5";
1+
const STATIC_CACHE_NAME = "just-bangs-static-v6";
22

33
const STATIC_ASSETS = [
44
"./",

public_html/style.css

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ html.light-mode input[type="text"] {
9494
height: 25px;
9595
cursor: pointer;
9696
transition: all 0.3s ease;
97-
z-index: 1000;
97+
z-index: 100;
9898
}
9999

100100
.toggle-slider {
@@ -146,7 +146,7 @@ html.dark-mode .toggle-slider::after {
146146
align-items: center;
147147
justify-content: center;
148148
transition: all 0.3s ease;
149-
z-index: 1001;
149+
z-index: 50;
150150
}
151151

152152
.hamburger-menu:hover {
@@ -170,7 +170,7 @@ html.dark-mode .hamburger-menu:hover {
170170
width: 100%;
171171
height: 100%;
172172
background: rgba(0, 0, 0, 0.5);
173-
z-index: 1000;
173+
z-index: 200;
174174
display: none;
175175
}
176176

@@ -326,6 +326,28 @@ html.dark-mode .bang-url {
326326
.bang-url {
327327
font-size: 12px;
328328
}
329+
330+
input::placeholder {
331+
opacity: 0;
332+
}
333+
334+
form {
335+
flex-direction: column;
336+
align-items: center;
337+
padding: 0 1em;
338+
}
339+
340+
input[type="text"] {
341+
width: 100%;
342+
margin-bottom: 0.5em;
343+
}
344+
345+
input[type="submit"],
346+
input[type="button"] {
347+
margin-left: 0;
348+
width: auto;
349+
padding: 0.3em 1em;
350+
}
329351
}
330352

331353
@media (min-width: 768px) {

0 commit comments

Comments
 (0)