Merge pull request #14 from TxtDot/fix-img-width

Bugfix: width for img, other media & iframes
This commit is contained in:
Artemy Egorov
2023-08-16 10:36:53 +03:00
committed by GitHub
3 changed files with 28 additions and 19 deletions

View File

@@ -36,22 +36,3 @@ main {
width: 100%;
margin: auto;
}
a {
color: var(--link);
}
a:hover {
color: var(--link-hl);
}
pre {
display: block;
max-width: 100%;
overflow-x: auto;
}
table {
display: block;
max-width: 100%;
overflow-x: auto;
}

27
static/get.css Normal file
View File

@@ -0,0 +1,27 @@
a {
color: var(--link);
}
a:hover {
color: var(--link-hl);
}
pre {
display: block;
max-width: 100%;
overflow-x: auto;
}
table {
display: block;
max-width: 100%;
overflow-x: auto;
}
img, picture, video {
max-width: 100%;
height: auto;
}
frame, iframe {
max-width: 100%;
}

View File

@@ -7,6 +7,7 @@
<meta name="robots" content="noindex, nofollow">
<title><%= parsed.title %></title>
<link rel="stylesheet" href="/static/common.css">
<link rel="stylesheet" href="/static/get.css">
</head>
<body>
<main>