Skip to content

Commit 6a5b05c

Browse files
author
Niutoseq
committed
adding styling to update_at and create_at
1 parent e6ba595 commit 6a5b05c

File tree

4 files changed

+75
-4
lines changed

4 files changed

+75
-4
lines changed

docs/_static/css/general.css

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/css/main.css

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_static/scss/general.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ p {
1515
}
1616
}
1717

18+
span, p, div {
19+
color: #404040;
20+
}
21+
1822
a {
1923
text-decoration: none;
2024
}
@@ -806,6 +810,27 @@ li.wy-breadcrumbs-aside a {
806810

807811
/* header end */
808812

813+
/* article meta */
814+
.article-meta {
815+
display: inline-block;
816+
position: relative;
817+
top: 30px;
818+
font-size: 11px;
819+
font-weight: 600;
820+
opacity: 0.35;
821+
822+
&--updated {
823+
opacity: 0.5;
824+
825+
&::after {
826+
content: "";
827+
padding-left: 5px;
828+
}
829+
}
830+
}
831+
832+
/* article meta end */
833+
809834
/* footer */
810835
.edit {
811836
text-align: center;

docs/_templates/layout.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@
215215
{%- endif %}
216216
<div role="main" class="document main-content" itemscope="itemscope" itemtype="https://schema.org/Article">
217217
{%- block document %}
218-
{%- if created_at %}
219-
<div itemprop="dateCreated">{{ created_at }}</div>
218+
{%- if updated_at %}
219+
<div class="article-meta article-meta--updated" itemprop="dateModified">Updated {{ updated_at }}</div>
220220
{%- endif %}
221-
{%- if updated_at %}
222-
<div itemprop="dateModified">{{ updated_at }}</div>
221+
{%- if created_at %}
222+
<div class="article-meta" itemprop="dateCreated">Created {{ created_at }}</div>
223223
{%- endif %}
224224
<div itemprop="articleBody">
225225
{% block body %}{% endblock %}

0 commit comments

Comments
 (0)