barryserver-git
Barry Adding a more mobile friendly view c0a227c (3 years, 8 months ago)diff --git a/git.php b/git.php index 97369d5..45ced02 100644 --- a/git.php +++ b/git.php @@ -48,6 +48,7 @@ ob_start(); <html> <head> <title><?php echo $TITLE; ?></title> + <meta name="viewport" content="width=device-width; initial-scale=1"> <style> /* Main Page */ body { @@ -125,6 +126,7 @@ ob_start(); .path { font-weight: bold; color: orange; + word-break: break-all; } .path a:focus, .path a:active { color: red; @@ -190,6 +192,19 @@ ob_start(); ::-webkit-scrollbar-thumb {background: orange;} ::-webkit-scrollbar-thumb:hover {background: #BB6100;} ::-webkit-scrollbar-corner {background: #0D0D0D;} + + /* Mobile view */ + @media only screen and (max-device-width: 960px) { + .clone { + display: none; + } + .raw-link { + float: none; + } + br:nth-of-type(n+3) { + display: none; + } + } </style> </head> <body>