diff --git a/src/webui/search.php b/src/webui/search.php index 3d00c94..5fc4d23 100644 --- a/src/webui/search.php +++ b/src/webui/search.php @@ -143,12 +143,38 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu top: 0; left: 0; right: 0; + z-index: 2; } main { - margin-top: 110px; + margin-top: 80px; margin-bottom: 76px; - padding: 0 20px; + padding: 0 32px; + } + + main > div { + border-top: 1px #000 dashed; + font-size: 14px; + margin: 0 auto; + max-width: 620px; + padding: 8px 0; + position: relative; + } + + main > div > img { + left: -24px; + position: absolute; + top: 18px; + + } + + main > div > div { + padding: 8px 0; + line-height: 16px; + } + + main > div > div > a { + font-size: 12px; } h1 { @@ -170,9 +196,8 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu h2 { display: block; - font-size: 16px; + font-size: 15px; font-weight: normal; - margin: 4px 0; color: #fff; } @@ -238,33 +263,12 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu a, a:visited, a:active { color: #9ba2ac; - font-size: 12px; - margin-top: 8px; } a:hover { color: #54a3f7; } - img.icon { - float: left; - border-radius: 50%; - margin-right: 8px; - } - - img.image { - max-width: 100%; - border-radius: 3px; - } - - div { - max-width: 640px; - margin: 0 auto; - padding: 16px 0; - border-top: 1px #000 dashed; - font-size: 14px - } - span { display: block; margin: 8px 0; @@ -276,10 +280,6 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu font-size: 11px; } - p > a, p > a:visited, p > a:active { - font-size: 11px; - } - .text-warning { color: #db6161; } @@ -297,8 +297,6 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu -   - @@ -306,59 +304,62 @@ $results = $query->offset($p * $config->webui->pagination->limit - $config->webu
- getTotal()) { ?> - -
- url)) { ?> +
getTotal())) ?>
+ +
+ url, + PHP_URL_HOST + ); + + $identicon = new \Jdenticon\Identicon(); + + $identicon->setValue( + $hostname + ); + + $identicon->setSize(14); + + $identicon->setStyle( + [ + 'backgroundColor' => 'rgba(255, 255, 255, 0)', + 'padding' => 0 + ] + ); + + $icon = $identicon->getImageDataUri('webp'); + + ?> + identicon + title)) { ?> +

title ?>

- - description)) { ?> - description ?> - - keywords)) { ?> - keywords ?> - - - setValue( - parse_url( - $result->url, - PHP_URL_HOST - ) - ); - - $identicon->setSize(16); - - $identicon->setStyle( - [ - 'backgroundColor' => 'rgba(255, 255, 255, 0)', - 'padding' => 0 - ] - ); - ?> - identicon - url)) ?> - - +
+ + description)) { ?> +
description ?>
+ + keywords)) { ?> +
+ keywords ?> +
+ +
+ url)) ?> + +
- - webui->pagination->limit <= $results->getTotal()) { ?> +
+ + webui->pagination->limit <= $results->getTotal()) { ?> +
- +
- - -
-