Skip to content

Commit

Permalink
# remoment 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
PG-Z committed May 27, 2024
1 parent c367873 commit 0823321
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 46 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [x] [文章搜索](https://github.com/halo-sigs/plugin-search-widget)(插件)
- [X] [评论系统](https://github.com/halo-sigs/plugin-comment-widget)(插件)
- [x] [地图标记](https://github.com/PG-Z/plugin-map-marker)(/maps)
- [X] [瞬间管理](https://github.com/halo-sigs/plugin-moments)(/moments)

## TODO
- [ ] 细节优化
Expand All @@ -18,7 +19,6 @@




## 鸣谢
> 基于 [Puma](https://github.com/bigfa/Puma) 制作,原作者为 `bigfa`,感谢这么优秀的主题!
>
Expand Down
14 changes: 6 additions & 8 deletions templates/assets/dist/css/misc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1326,13 +1326,13 @@ p.with-img img {
padding: 0 25px 25px 25px;
}

.main-content .notes-box>h2 {
.main-content .notes-box > h2 {
font-size: 17px;
color: #333;
margin-bottom: 15px;
}

.main-content .notes-box>h2 span {
.main-content .notes-box > h2 span {
font-weight: 400;
font-size: 12px;
color: #999;
Expand All @@ -1347,7 +1347,7 @@ p.with-img img {

.main-content .notes-box .notes-content {
margin-bottom: 10px;
max-height: 240px;
max-height: 300px;
overflow: hidden;
position: relative;
}
Expand All @@ -1357,7 +1357,7 @@ p.with-img img {
display: block;
width: 100%;
height: 30px;
position: absolute;
/*position: absolute;*/
top: 170px;
left: 0;
background: linear-gradient(to top, #f5f5f5, rgba(0 0 0 / 0));
Expand Down Expand Up @@ -1417,7 +1417,7 @@ p.with-img img {
.main-content .notes-content * {
margin-bottom: 5px;
font-size: 13px;
font-family: "Open Sans", PingFang SC, Hiragino Sans GB, Microsoft YaHei, STHeiti, WenQuanYi Micro Hei, Helvetica, Arial, sans-serif;
font-family: "Open Sans Light Italic", PingFang SC, Hiragino Sans GB, Microsoft YaHei, STHeiti, WenQuanYi Micro Hei, Helvetica, Arial, sans-serif;
color: #333;
line-height: 1.5;
}
Expand Down Expand Up @@ -1469,7 +1469,6 @@ p.with-img img {

.main-content .notes-content pre {
display: inline-block;
/* width: 100%; */
white-space: pre-wrap;
word-wrap: break-word;
border-radius: 6px;
Expand Down Expand Up @@ -1500,7 +1499,6 @@ p.with-img img {

.main-content .notes-content ul li,
.main-content .notes-content ol li {
/* margin-left: 10px; */
width: calc(100% - 30px);
word-break: break-all;
word-wrap: break-word;
Expand All @@ -1516,6 +1514,6 @@ p.with-img img {
}


.main-content .notes-box>h2 {
.main-content .notes-box > h2 {
font-size: 16px !important;
}
39 changes: 2 additions & 37 deletions templates/moments.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,14 @@
<header class="archive-header u-textAlignCenter">
<h1 class="archive-title"><span>Notes</span></h1>
<button class="button termlike" data-action="termlike" data-action-id="87">
<span class="count" th:text="${#lists.size(moments.items)}"></span>
<span class="count" th:text="${moments.total}"></span>
</button>
</header>
<section class="notes-box">
<!-- <th:block th:each="moment : ${moments.items}">-->
<!-- <article class="block&#45;&#45;inset block&#45;&#45;list block">-->
<!-- <div class="block-postMetaWrap u-textAlignCenter">-->
<!-- <time-->
<!-- class="article-date"-->
<!-- itemprop="datePublished"-->
<!-- th:datetime="${#temporals.format(moment.spec.releaseTime, 'MMMM dd yyyy')}"-->
<!-- th:text="${#temporals.format(moment.spec.releaseTime, 'MMMM dd yyyy')}"-->
<!-- ></time>-->
<!-- </div>-->
<!-- <div class="block-snippet block-snippet&#45;&#45;subtitle grap moment-footer" itemprop="about">-->
<!-- <p th:utext="${moment.spec.content?.html}"></p>-->
<!-- <th:block th:replace="~{modules/moment/moments-medium :: medium(${moment})}" />-->
<!-- </div>-->
<!-- <div class="block-footer">-->
<!-- By-->
<!-- <th:block th:text="${moment.owner?.displayName}" />-->
<!-- . In-->
<!-- <th:block th:if="${not #lists.isEmpty(moment.spec.tags)}">-->
<!-- <th:block th:each="tag : ${moment.spec.tags}"><span th:text="${tag}" />.</th:block>-->
<!-- </th:block>-->

<!-- <div class="block-footer-inner">-->
<!-- <th:block th:text="${moment.stats?.upvote}" />-->
<!-- 喜欢 .-->
<!-- <th:block th:text="${moment.stats?.totalComment}" />-->
<!-- 回复.-->
<!-- </div>-->
<!-- </div>-->
<!-- </article>-->
<!-- </th:block>-->

<ul>
<li th:each="moment : ${moments.items}" th:with="content=${moment.spec.content}">
<div class="notes-content">
<p th:utext="${content.raw}"></p>
<!-- <p th:utext="${content?.html}"></p>-->
<th:block th:replace="~{modules/moment/moments-medium :: medium(${moment})}" />
</div>

Expand All @@ -57,11 +24,9 @@ <h1 class="archive-title"><span>Notes</span></h1>
<span class="icon-clock" th:text="${#dates.format(moment.spec.releaseTime,'yyyy年MM月dd日')}"></span>
</div>
</div>
<div class="view-detail"><a th:href="${'/moments/'+moment.metadata.name}">查看详情</a>
</div>
<!-- <div class="view-detail"><a th:href="${'/moments/'+moment.metadata.name}">查看详情</a></div>-->
</li>
</ul>

</section>

<th:block
Expand Down

0 comments on commit 0823321

Please sign in to comment.