Browse Source

make magnet h2 clickable

main
ghost 1 year ago
parent
commit
cf19621062
  1. 31
      src/public/assets/theme/default/css/common.css
  2. 8
      src/public/assets/theme/default/css/framework.css
  3. 4
      src/public/index.php
  4. 4
      src/public/magnet.php

31
src/public/assets/theme/default/css/common.css

@ -12,6 +12,19 @@ body {
font-size: 13px; font-size: 13px;
} }
a,
a:visited,
a:active {
color: #96d9a1;
text-decoration: none;
opacity: .9;
}
a:hover {
opacity: 1;
transition: opacity .5s ease-in-out;
}
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
display: inline-block; display: inline-block;
font-weight: normal; font-weight: normal;
@ -22,21 +35,17 @@ h1 {
} }
h2 { h2 {
color: #ccc;
font-size: 16px; font-size: 16px;
} }
a, /* @TODO doubts
a:visited, a h2,
a:active { a:visited h2,
color: #96d9a1; a:active h2 {
text-decoration: none; color: #a4d4ff;
opacity: .9;
}
a:hover {
opacity: 1;
transition: opacity .5s ease-in-out;
} }
*/
input, input,
textarea { textarea {

8
src/public/assets/theme/default/css/framework.css

@ -82,6 +82,10 @@
border-bottom: 1px #5d627d solid; border-bottom: 1px #5d627d solid;
} }
.border-top-default {
border-top: 1px #5d627d solid;
}
.background-color-night { .background-color-night {
background-color: #34384f; background-color: #34384f;
} }
@ -216,6 +220,10 @@
margin-bottom: 8px; margin-bottom: 8px;
} }
.margin-t-16 {
margin-top: 16px;
}
.margin-b-16 { .margin-b-16 {
margin-bottom: 16px; margin-bottom: 16px;
} }

4
src/public/index.php

@ -271,7 +271,9 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
background-color-night background-color-night
<?php echo !$magnet->public || !$magnet->approved ? 'opacity-06 opacity-hover-1' : false ?>"> <?php echo !$magnet->public || !$magnet->approved ? 'opacity-06 opacity-hover-1' : false ?>">
<div class="padding-16 <?php echo $magnet->sensitive ? 'blur-2 blur-hover-0' : false ?>"> <div class="padding-16 <?php echo $magnet->sensitive ? 'blur-2 blur-hover-0' : false ?>">
<h2 class="margin-b-8"><?php echo $magnet->metaTitle ?></h2> <a href="<?php echo sprintf('%s/magnet.php?magnetId=%s', WEBSITE_URL, $magnet->magnetId) ?>">
<h2 class="margin-b-8"><?php echo $magnet->metaTitle ?></h2>
</a>
<div class="float-right opacity-0 parent-hover-opacity-09"> <div class="float-right opacity-0 parent-hover-opacity-09">
<?php if (!$magnet->public) { ?> <?php if (!$magnet->public) { ?>
<span class="margin-l-8" title="<?php echo _('Private') ?>"> <span class="margin-l-8" title="<?php echo _('Private') ?>">

4
src/public/magnet.php

@ -251,7 +251,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
<?php echo !$response->magnet->public || !$response->magnet->approved ? 'opacity-06 opacity-hover-1' : false ?>"> <?php echo !$response->magnet->public || !$response->magnet->approved ? 'opacity-06 opacity-hover-1' : false ?>">
<div class="padding-16 <?php echo $response->magnet->sensitive ? 'blur-2 blur-hover-0' : false ?>"> <div class="padding-16 <?php echo $response->magnet->sensitive ? 'blur-2 blur-hover-0' : false ?>">
<a name="magnet-<?php echo $response->magnet->magnetId ?>"></a> <a name="magnet-<?php echo $response->magnet->magnetId ?>"></a>
<h2 class="margin-b-8"><?php echo $response->magnet->metaTitle ?></h2> <h1 class="margin-b-8"><?php echo $response->magnet->metaTitle ?></h1>
<div class="float-right opacity-0 parent-hover-opacity-09"> <div class="float-right opacity-0 parent-hover-opacity-09">
<?php if (!$response->magnet->public) { ?> <?php if (!$response->magnet->public) { ?>
<span class="margin-l-8" title="<?php echo _('Private') ?>"> <span class="margin-l-8" title="<?php echo _('Private') ?>">
@ -289,7 +289,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
<div class="margin-y-8"><?php echo $response->magnet->metaDescription ?></div> <div class="margin-y-8"><?php echo $response->magnet->metaDescription ?></div>
<?php } ?> <?php } ?>
<?php if ($response->magnet->description) { ?> <?php if ($response->magnet->description) { ?>
<div class="margin-y-8"><?php echo $response->magnet->description ?></div> <div class="margin-t-16 margin-b-8 padding-t-16 border-top-default"><?php echo $response->magnet->description ?></div>
<?php } ?> <?php } ?>
<?php if ($response->magnet->keywords) { ?> <?php if ($response->magnet->keywords) { ?>
<div class="margin-y-8"> <div class="margin-y-8">

Loading…
Cancel
Save