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):
<html>
<head>
<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>
body {{
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
......@@ -269,10 +269,12 @@ class PET(plugin.PluginAbstract):
line-height: 1.5;
color: #fff;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}}
.prompt {{
color: #98c379;
margin-bottom: 10px;
word-break: break-all;
}}
.command {{
color: #61afef;
......@@ -280,9 +282,13 @@ class PET(plugin.PluginAbstract):
}}
.output {{
color: #abb2bf;
white-space: pre;
white-space: pre-wrap;
margin: 10px 0 20px 0;
}}
@media (max-width: 480px) {{
body {{ padding: 10px; }}
.terminal-body {{ padding: 15px; }}
}}
</style>
</head>
<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