Fix for pre/table overflow, title h1->div

This commit is contained in:
DarkCat09 2023-08-15 19:13:09 +04:00
parent b4d710334e
commit 6a0eda16d6
No known key found for this signature in database
GPG Key ID: 4785B6FB1C50A540
3 changed files with 19 additions and 11 deletions

View File

@ -33,7 +33,7 @@ body {
main { main {
max-width: 50rem; max-width: 50rem;
width: fit-content; width: 100vw;
margin: auto; margin: auto;
} }
@ -43,3 +43,15 @@ a {
a:hover { a:hover {
color: var(--link-hl); color: var(--link-hl);
} }
pre {
display: block;
max-width: 100%;
overflow-x: auto;
}
table {
display: block;
max-width: 100%;
overflow-x: auto;
}

View File

@ -5,16 +5,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
<title> <title><%= parsed.title %></title>
<%= parsed.title %>
</title>
<link rel="stylesheet" href="/static/common.css"> <link rel="stylesheet" href="/static/common.css">
</head> </head>
<body> <body>
<main> <main>
<h1> <div class="title">
<%= parsed.title %> <%= parsed.title %>
</h1> </div>
<%- parsed.content %> <%- parsed.content %>
</main> </main>
</body> </body>

View File

@ -14,9 +14,7 @@
<main> <main>
<header> <header>
<h1>txt.</h1> <h1>txt.</h1>
<p> <p><%= desc %></p>
<%= desc %>
</p>
</header> </header>
<form action="/get" method="get" class="input-grid"> <form action="/get" method="get" class="input-grid">
<div class="input"> <div class="input">