mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
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"];
|
$alt = $result["alt"];
|
||||||
|
|
||||||
echo "<a title=\"$alt\" href=\"data:image/jpeg;base64,$src\" target=\"_blank\">";
|
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>";
|
echo "</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
function check_for_privacy_friendly_alternative($url)
|
function check_for_privacy_friendly_alternative($url)
|
||||||
{
|
{
|
||||||
$config = require "config.php";
|
global $config;
|
||||||
|
|
||||||
if ($config->replace_youtube_with_invidious != null && strpos($url, "youtube.com"))
|
if ($config->replace_youtube_with_invidious != null && strpos($url, "youtube.com"))
|
||||||
$url = $config->replace_youtube_with_invidious . explode("youtube.com", $url)[1];
|
$url = $config->replace_youtube_with_invidious . explode("youtube.com", $url)[1];
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
function request($url)
|
function request($url)
|
||||||
{
|
{
|
||||||
$config = require "config.php";
|
global $config;
|
||||||
|
|
||||||
$ch = curl_init($url);
|
$ch = curl_init($url);
|
||||||
curl_setopt_array($ch, $config->curl_settings);
|
curl_setopt_array($ch, $config->curl_settings);
|
||||||
|
|
|
@ -191,14 +191,21 @@ a:hover, .text-result-wrapper h2:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-result-container {
|
.image-result-container {
|
||||||
margin-left:auto;
|
display: grid;
|
||||||
margin-right: auto;
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
||||||
margin-bottom: 60px;
|
grid-gap: 1.5rem;
|
||||||
|
justify-items: center;
|
||||||
|
margin-left: 9%;
|
||||||
|
margin-right: 9%;
|
||||||
|
padding: 0;
|
||||||
|
margin-bottom:50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-result-container img {
|
.image-result-container img {
|
||||||
margin: 10px;
|
|
||||||
border: 1px solid var(--button-bg);
|
border: 1px solid var(--button-bg);
|
||||||
|
width: 350px;
|
||||||
|
height: 200px;
|
||||||
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.donate-container {
|
.donate-container {
|
||||||
|
@ -309,9 +316,7 @@ a:hover, .text-result-wrapper h2:hover {
|
||||||
margin-right:auto;
|
margin-right:auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-result-container img {
|
.settings-container {
|
||||||
display:block;
|
margin-bottom: 100px;
|
||||||
margin-left:auto;
|
|
||||||
margin-right:auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue