Skip to content

Commit

Permalink
Added small margins when diplaying a page on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-lab committed Feb 23, 2024
1 parent 4c12beb commit 82f9016
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tmbus.htm
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3TNM6DDWPG"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-3TNM6DDWPG');
</script>
<!-- Copyright (c) 2023 Taras Greben <[email protected]>. All rights Reserved. -->
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -20,9 +29,9 @@
.header {
display: flex;
position: fixed;
top: 0;
left: 0;
right: 0;
top: 0.2rem;
left: 0.2rem;
right: 0.2rem;
width: 100%;
height: 4rem;
overflow: hidden;
Expand Down Expand Up @@ -50,10 +59,10 @@
width: 100%;
height: 1rem;
text-align: center;
font-size: 0.72rem;
font-size: 0.8rem;
}
@keyframes spin {0% {transform: rotate(0deg)} 100% {transform: rotate(360deg)}}
@media only screen and (max-width:30rem) {body {margin:0} .main {padding-right:0}}
@media only screen and (max-width:30rem) {body {margin:0.2rem} .main {padding-right:0.2rem}}
</style>
<title>Live M-Bus datagram decoder</title>
<script src="tmbus.min.js"></script>
Expand Down Expand Up @@ -301,7 +310,7 @@ <h1>Live M-Bus datagram decoder</h1>
<input type="radio" class="radio" name="mbusFormat" value="plain" id="plain" onclick="refresh();"/>
<label for="plain">Raw</label>
<section>
<div id="ld">
<div id="ld" style="display:none">
</div>
<div id="cmds">
</div>
Expand Down

0 comments on commit 82f9016

Please sign in to comment.