From cf1962106263855942171cfd6cd3de969d2efbde Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 30 Aug 2023 20:29:28 +0300 Subject: [PATCH] make magnet h2 clickable --- .../assets/theme/default/css/common.css | 35 ++++++++++++------- .../assets/theme/default/css/framework.css | 8 +++++ src/public/index.php | 4 ++- src/public/magnet.php | 4 +-- 4 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/public/assets/theme/default/css/common.css b/src/public/assets/theme/default/css/common.css index f464be1..462f89b 100644 --- a/src/public/assets/theme/default/css/common.css +++ b/src/public/assets/theme/default/css/common.css @@ -12,19 +12,6 @@ body { font-size: 13px; } -h1, h2, h3, h4, h5 { - display: inline-block; - font-weight: normal; -} - -h1 { - font-size: 18px; -} - -h2 { - font-size: 16px; -} - a, a:visited, a:active { @@ -38,6 +25,28 @@ a:hover { transition: opacity .5s ease-in-out; } +h1, h2, h3, h4, h5 { + display: inline-block; + font-weight: normal; +} + +h1 { + font-size: 18px; +} + +h2 { + color: #ccc; + font-size: 16px; +} + +/* @TODO doubts +a h2, +a:visited h2, +a:active h2 { + color: #a4d4ff; +} +*/ + input, textarea { background: #5d627d; diff --git a/src/public/assets/theme/default/css/framework.css b/src/public/assets/theme/default/css/framework.css index 474b35d..dd1e726 100644 --- a/src/public/assets/theme/default/css/framework.css +++ b/src/public/assets/theme/default/css/framework.css @@ -82,6 +82,10 @@ border-bottom: 1px #5d627d solid; } +.border-top-default { + border-top: 1px #5d627d solid; +} + .background-color-night { background-color: #34384f; } @@ -216,6 +220,10 @@ margin-bottom: 8px; } +.margin-t-16 { + margin-top: 16px; +} + .margin-b-16 { margin-bottom: 16px; } diff --git a/src/public/index.php b/src/public/index.php index 0874f30..8ce69df 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -271,7 +271,9 @@ echo '' . PHP_EOL ?> background-color-night public || !$magnet->approved ? 'opacity-06 opacity-hover-1' : false ?>">
-

metaTitle ?>

+ +

metaTitle ?>

+
public) { ?> diff --git a/src/public/magnet.php b/src/public/magnet.php index 8327100..ff81ea4 100644 --- a/src/public/magnet.php +++ b/src/public/magnet.php @@ -251,7 +251,7 @@ echo '' . PHP_EOL ?> magnet->public || !$response->magnet->approved ? 'opacity-06 opacity-hover-1' : false ?>">
-

magnet->metaTitle ?>

+

magnet->metaTitle ?>

magnet->public) { ?> @@ -289,7 +289,7 @@ echo '' . PHP_EOL ?>
magnet->metaDescription ?>
magnet->description) { ?> -
magnet->description ?>
+
magnet->description ?>
magnet->keywords) { ?>