Skip to content
Snippets Groups Projects
Commit dfe38495 authored by Mostafa Hadizadeh's avatar Mostafa Hadizadeh
Browse files

made the html layer mobile-friendly

parent 4b62f3f1
No related branches found
No related tags found
2 merge requests!4Add HTML and ZIP file to make the result section better,!2Plugin template
Pipeline #92758 passed
...@@ -208,7 +208,7 @@ class PET(plugin.PluginAbstract): ...@@ -208,7 +208,7 @@ class PET(plugin.PluginAbstract):
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<style> <style>
body {{ body {{
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
...@@ -269,10 +269,12 @@ class PET(plugin.PluginAbstract): ...@@ -269,10 +269,12 @@ class PET(plugin.PluginAbstract):
line-height: 1.5; line-height: 1.5;
color: #fff; color: #fff;
overflow-x: auto; overflow-x: auto;
-webkit-overflow-scrolling: touch;
}} }}
.prompt {{ .prompt {{
color: #98c379; color: #98c379;
margin-bottom: 10px; margin-bottom: 10px;
word-break: break-all;
}} }}
.command {{ .command {{
color: #61afef; color: #61afef;
...@@ -280,9 +282,13 @@ class PET(plugin.PluginAbstract): ...@@ -280,9 +282,13 @@ class PET(plugin.PluginAbstract):
}} }}
.output {{ .output {{
color: #abb2bf; color: #abb2bf;
white-space: pre; white-space: pre-wrap;
margin: 10px 0 20px 0; margin: 10px 0 20px 0;
}} }}
@media (max-width: 480px) {{
body {{ padding: 10px; }}
.terminal-body {{ padding: 15px; }}
}}
</style> </style>
</head> </head>
<body> <body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment