10 changed files with 129 additions and 18 deletions
-
25app/common.php
-
30public/themes/dist_static/static/css/empty.css
-
12public/themes/dist_static/static/css/search.css
-
11public/themes/website/1/zh/demo/announce.html
-
8public/themes/website/1/zh/demo/components/empty.html
-
14public/themes/website/1/zh/demo/download.html
-
11public/themes/website/1/zh/demo/faq.html
-
11public/themes/website/1/zh/demo/news.html
-
14public/themes/website/1/zh/demo/search.html
-
11public/themes/website/1/zh/demo/video.html
@ -0,0 +1,30 @@ |
|||||
|
.s-empty { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
min-height: 16rem; |
||||
|
padding: 2.5rem 1.5rem; |
||||
|
border-radius: 1.25rem; |
||||
|
background: rgba(175, 181, 185, 0.08); |
||||
|
box-sizing: border-box; |
||||
|
} |
||||
|
.s-empty__text { |
||||
|
margin: 0; |
||||
|
color: var(--color-text-muted); |
||||
|
font-family: "MiSans VF", "PingFang SC", sans-serif; |
||||
|
font-size: var(--font-18); |
||||
|
line-height: var(--font-26); |
||||
|
text-align: center; |
||||
|
} |
||||
|
|
||||
|
@media (max-width: 576px) { |
||||
|
.s-empty { |
||||
|
min-height: 12rem; |
||||
|
padding: 32Px 16Px; |
||||
|
border-radius: 16Px; |
||||
|
} |
||||
|
.s-empty__text { |
||||
|
font-size: 16Px; |
||||
|
line-height: 24Px; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,8 @@ |
|||||
|
{php} |
||||
|
if (!isset($empty_text) || $empty_text === '') { |
||||
|
$empty_text = '暂无相关内容'; |
||||
|
} |
||||
|
{/php} |
||||
|
<div class="s-empty" role="status"> |
||||
|
<p class="s-empty__text">{$empty_text}</p> |
||||
|
</div> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue