adjust style

This commit is contained in:
awesomeoxc 2024-08-02 15:16:21 +08:00
parent 174ced7439
commit 8cb25a03ae
2 changed files with 6 additions and 6 deletions

View File

@ -16,8 +16,8 @@
{% block head %}{% endblock %} {% block head %}{% endblock %}
</head> </head>
<style> <style>
html{background-image: url("{{ blogBase['backgroundImageUrl'] }}");background-repeat: no-repeat;background-size: cover;} html{background-image: url("{{ blogBase['backgroundImageUrl'] }}");background-repeat: no-repeat;background-size: cover;background-attachment: fixed;}
body{box-sizing: border-box;min-width: 200px;max-width: 900px;margin: 20px auto;padding: 45px;font-size: 16px;font-family: sans-serif;line-height: 1.25;} body{box-sizing: border-box;min-width: 200px;max-width: 900px;margin: 20px auto;padding: 45px;font-size: 16px;font-family: sans-serif;line-height: 1.25;background-color: unset;}
#header{display:flex;padding-bottom:8px;border-bottom: 1px solid var(--borderColor-muted, var(--color-border-muted));margin-bottom: 16px;} #header{display:flex;padding-bottom:8px;border-bottom: 1px solid var(--borderColor-muted, var(--color-border-muted));margin-bottom: 16px;}
#footer {margin-top:64px; text-align: center;font-size: small;} #footer {margin-top:64px; text-align: center;font-size: small;}

View File

@ -18,9 +18,9 @@
.title-right button{margin-right:8px;padding:16px;} .title-right button{margin-right:8px;padding:16px;}
.title-right .circle{padding: 14px 16px;} .title-right .circle{padding: 14px 16px;}
.SideNav{min-width: 360px;} .SideNav{min-width: 360px;background-color: unset;}
.SideNav-icon{margin-right: 16px} .SideNav-icon{margin-right: 16px}
.SideNav-item .Label{color: #fff;margin-left:4px;} .SideNav-item .Label{color: #fff;margin-left:4px;border-radius: unset;}
.d-flex{min-width:0;} .d-flex{min-width:0;}
.listTitle{overflow:hidden;white-space:nowrap;text-overflow: ellipsis;max-width: 100%;} .listTitle{overflow:hidden;white-space:nowrap;text-overflow: ellipsis;max-width: 100%;}
.listLabels{white-space:nowrap;display:flex;} .listLabels{white-space:nowrap;display:flex;}
@ -92,9 +92,9 @@
<div class="listLabels"> <div class="listLabels">
{% if postListJson[num]['commentNum']>0 %}<span class="Label" style="background-color:{{ blogBase['commentLabelColor'] }}">{{ postListJson[num]['commentNum'] }}</span>{% endif %} {% if postListJson[num]['commentNum']>0 %}<span class="Label" style="background-color:{{ blogBase['commentLabelColor'] }}">{{ postListJson[num]['commentNum'] }}</span>{% endif %}
{% for label in postListJson[num]['labels'] -%} {% for label in postListJson[num]['labels'] -%}
<span class="Label LabelName" style="background-color:{{ blogBase['labelColorDict'][label] }}"><object><a style="color:#fff" href="tag.html#{{ label }}">{{ label }}</a></object></span> <span class="Label LabelName" {#style="background-color:{{ blogBase['labelColorDict'][label] }}"#}><object><a style="color:#fff" href="tag.html#{{ label }}">{{ label }}</a></object></span>
{%- endfor %} {%- endfor %}
<span class="Label LabelTime" style="background-color:{{ postListJson[num]['dateLabelColor'] }}">{{ postListJson[num]['createdDate'] }}</span> <span class="Label LabelTime" {#style="background-color:{{ postListJson[num]['dateLabelColor'] }}"#}>{{ postListJson[num]['createdDate'] }}</span>
</div> </div>
</a> </a>
{%- endfor %} {%- endfor %}