Skip to content

Commit

Permalink
style:fixed some style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfa committed Jan 3, 2025
1 parent 9c055e0 commit 276fd69
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 93 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

Hera is a simple single column wordpress theme with perfect performace and elegance design.

latest version : `0.1.0`
latest version : `0.1.1`

## Changelog

### 0.1.1

- fixed some style issues

### 0.1.0

- bug fixed
Expand Down
6 changes: 5 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

本主题禁止各种修改作者链接打包重新发布的行为。

最新版本 : `0.1.0`
最新版本 : `0.1.1`

## 更新日志

### 0.1.1

- 修复一些样式错误

### 0.1.0

- 更新翻译
Expand Down
2 changes: 1 addition & 1 deletion build/css/misc.css

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions modules/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public function __construct()
global $heraSetting;
add_action('rest_api_init', array($this, 'register_routes'));

// add_filter('get_comment_author', array($this, 'get_comment_author_hack'), 10, 3);
if ($heraSetting->get_setting('show_parent'))
add_filter('get_comment_text', array($this, 'hack_get_comment_text'), 0, 2);
if ($heraSetting->get_setting('disable_comment_link'))
Expand Down Expand Up @@ -78,15 +77,6 @@ function register_routes()
));
}

// function get_comment_author_hack($comment_author, $comment_id, $comment)
// {
// $post = get_post($comment->comment_post_ID);
// if ($comment->user_id == $post->post_author) {
// $comment_author = $comment_author . '<span class="comment--author__tip">' . __('Author', 'Hera') . '</span>';
// }
// return $comment_author;
// }

function handle_posts_request($request)
{
$page = $request['page'];
Expand Down
52 changes: 4 additions & 48 deletions scss/templates/_page.scss
Original file line number Diff line number Diff line change
@@ -1,56 +1,8 @@
.post--single {
max-width: 678px;
margin-left: auto;
margin-right: auto;

&__douban {
.db--nav {
padding-top: 10px;
}
.db--list {
.db--item {
margin-right: 12px;
}
}
.post--single__title {
// text-align: center;
}
}

&__title {
font-size: 32px;
font-weight: bold;
line-height: 1.5;
margin-bottom: 20px;
}

&__meta {
font-size: 14px;
color: var(--hera-text-gray);
}

&__copyright {
color: var(--hera-text-gray);
}

// &__action {
// display: flex;
// align-items: center;
// justify-content: center;
// padding: 20px 0;
// .button--like {
// svg {
// fill: var(--hera-text-gray);
// }
// &:hover,
// &.is-active {
// svg {
// fill: var(--hera-hover-color);
// }
// }
// }
// }

&__related {
display: grid;
grid-template-columns: repeat(2, 1fr);
Expand Down Expand Up @@ -92,6 +44,10 @@
border-radius: 10px;
display: flex;
flex-direction: column;
&__img {
display: flex;
align-items: center;
}
.cover {
border-radius: 10px 10px 0 0;
aspect-ratio: 2/1;
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ Theme URI: https://github.com/bigfa/hera
Author: bigfa
Author URI: https://github.com/bigfa
Description: theme 2025
Version: 0.1.0
Version: 0.1.1
Tags: Minimalism, Responsive
*/
31 changes: 0 additions & 31 deletions templates/template-wide.php

This file was deleted.

0 comments on commit 276fd69

Please sign in to comment.