improved the css
This commit is contained in:
parent
cbe16e8627
commit
ab2d9e28c5
3 changed files with 16 additions and 11 deletions
|
@ -55,7 +55,7 @@
|
|||
$alt = $result["alt"];
|
||||
|
||||
echo "<a title=\"$alt\" href=\"data:image/jpeg;base64,$src\" target=\"_blank\">";
|
||||
echo "<img src=\"data:image/jpeg;base64,$src\" width=\"350\" height=\"200\">";
|
||||
echo "<img src=\"data:image/jpeg;base64,$src\" height=\"200\">";
|
||||
echo "</a>";
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
function check_for_privacy_friendly_alternative($url)
|
||||
{
|
||||
$config = require "config.php";
|
||||
global $config;
|
||||
|
||||
if ($config->replace_youtube_with_invidious != null && strpos($url, "youtube.com"))
|
||||
$url = $config->replace_youtube_with_invidious . explode("youtube.com", $url)[1];
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
function request($url)
|
||||
{
|
||||
$config = require "config.php";
|
||||
global $config;
|
||||
|
||||
$ch = curl_init($url);
|
||||
curl_setopt_array($ch, $config->curl_settings);
|
||||
|
|
|
@ -191,14 +191,21 @@ a:hover, .text-result-wrapper h2:hover {
|
|||
}
|
||||
|
||||
.image-result-container {
|
||||
margin-left:auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 60px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
||||
grid-gap: 1.5rem;
|
||||
justify-items: center;
|
||||
margin-left: 9%;
|
||||
margin-right: 9%;
|
||||
padding: 0;
|
||||
margin-bottom:50px;
|
||||
}
|
||||
|
||||
.image-result-container img {
|
||||
margin: 10px;
|
||||
border: 1px solid var(--button-bg);
|
||||
width: 350px;
|
||||
height: 200px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.donate-container {
|
||||
|
@ -309,9 +316,7 @@ a:hover, .text-result-wrapper h2:hover {
|
|||
margin-right:auto;
|
||||
}
|
||||
|
||||
.image-result-container img {
|
||||
display:block;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
.settings-container {
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue