Skip to content

Commit b6939a3

Browse files
Fix several style issues (#1190)
1 parent a2cc19c commit b6939a3

File tree

31 files changed

+114
-172
lines changed

31 files changed

+114
-172
lines changed

layout/_macro/post-collapse.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<header class="post-header">
1616

1717
<div class="post-meta">
18-
<time class="post-time" itemprop="dateCreated"
18+
<time itemprop="dateCreated"
1919
datetime="{{ moment(post.date).format() }}"
2020
content="{{ date(post.date, config.date_format) }}">
2121
{{ date(post.date, 'MM-DD') }}

layout/_partials/header/menu-item.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{%- set menuText = __('menu.' + name) | replace('menu.', '') %}
1010
{%- if theme.menu_settings.icons %}
11-
{%- set menuIcon = '<i class="menu-item-icon fa fa-fw fa-' + value.split('||')[1] | trim | default('question-circle') + '"></i> <br>' %}
11+
{%- set menuIcon = '<i class="fa fa-fw fa-' + value.split('||')[1] | trim | default('question-circle') + '"></i>' %}
1212
{%- endif %}
1313

1414
{%- set menuBadge = '' %}

layout/_partials/header/menu.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<li class="menu-item menu-item-search">
2626
<a href="javascript:;" class="popup-trigger">
2727
{%- if theme.menu_settings.icons %}
28-
<i class="menu-item-icon fa fa-search fa-fw"></i> <br>{#
28+
<i class="fa fa-search fa-fw"></i>{#
2929
#}{%- endif %}{#
3030
#}{{ __('menu.search') }}{#
3131
#}</a>

source/css/_common/components/post/post-collapse.styl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
display: inline;
9696
font-size: $font-size-medium;
9797
font-weight: normal;
98-
line-height: inherit;
9998
margin-bottom: 0;
10099
margin-top: 0;
101100

source/css/_common/components/post/post-title.styl renamed to source/css/_common/components/post/post-header.styl

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.posts-expand .post-header {
2+
font-size: $font-size-large;
3+
}
4+
15
.posts-expand .post-title {
26
word-wrap();
37
font-weight: $font-weight-normal;
@@ -29,7 +33,6 @@
2933
border-bottom: none;
3034
color: $black-light;
3135
display: inline-block;
32-
line-height: 1.2;
3336
position: relative;
3437
vertical-align: top;
3538

@@ -56,3 +59,51 @@
5659
margin-left: 5px;
5760
}
5861
}
62+
63+
.posts-expand .post-meta {
64+
color: $grey-dark;
65+
font-family: $font-family-posts;
66+
margin: 3px 0 60px 0;
67+
text-align: center;
68+
69+
.post-description {
70+
font-size: $font-size-small;
71+
margin-top: 2px;
72+
}
73+
74+
time {
75+
border-bottom: 1px dashed $grey-dark;
76+
cursor: help;
77+
}
78+
}
79+
80+
.post-meta .post-meta-item + .post-meta-item::before {
81+
content: '|';
82+
margin: 0 .5em;
83+
}
84+
85+
.post-meta .post-meta-item {
86+
font-size: $font-size-smallest;
87+
}
88+
89+
.post-meta-divider {
90+
margin: 0 .5em;
91+
}
92+
93+
.post-meta-item-icon {
94+
margin-right: 3px;
95+
96+
+tablet-mobile() {
97+
display: inline-block;
98+
}
99+
}
100+
101+
.post-meta-item-text {
102+
if (!hexo-config('post_meta.item_text')) {
103+
display: none;
104+
}
105+
106+
+tablet-mobile() {
107+
display: none;
108+
}
109+
}

source/css/_common/components/post/post-meta.styl

Lines changed: 0 additions & 47 deletions
This file was deleted.

source/css/_common/components/post/post.styl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
font-size: $font-size-large;
77
}
88

9-
+mobile() {
10-
font-size: $font-size-small;
11-
}
12-
139
span.exturl .fa {
1410
font-size: $font-size-small;
1511
margin-left: 4px;
@@ -65,11 +61,10 @@
6561
@import 'post-eof';
6662
@import 'post-expand';
6763
@import 'post-gallery';
68-
@import 'post-meta';
64+
@import 'post-header';
6965
@import 'post-nav';
7066
@import 'post-rtl';
7167
@import 'post-tags';
72-
@import 'post-title';
7368
@import 'post-widgets';
7469

7570
@import 'post-reward' if (hexo-config('reward_settings.enable'));

source/css/_common/components/third-party/related-posts.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
margin-top: $post-eof-margin-bottom;
77
}
88

9-
ul.popular-posts {
9+
.popular-posts {
1010
padding: 0;
1111

1212
.popular-posts-item {

source/css/_common/outline/footer/footer.styl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
}
1919

2020
.footer-inner {
21-
box-sizing: border-box;
2221
margin: 0 auto;
2322
text-align: center;
2423
width: $content-desktop;

source/css/_common/outline/header/github-banner.styl

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
.github-corner {
1616
$scheme = hexo-config('scheme');
1717
$bg-color = unquote(hexo-config('android_chrome_color'));
18-
$mobile-layout-economy = hexo-config('mobile_layout_economy');
1918

2019
:hover .octo-arm {
2120
animation: octocat-wave 560ms ease-in-out;
@@ -47,16 +46,10 @@
4746
}
4847
}
4948

50-
+mobile() {
51-
svg {
52-
if ($scheme == 'Mist') {
49+
if ($scheme == 'Mist') {
50+
+mobile() {
51+
svg {
5352
top: inherit;
54-
55-
if ($mobile-layout-economy) {
56-
+mobile-small() {
57-
margin-top: initial;
58-
}
59-
}
6053
}
6154
}
6255
}

0 commit comments

Comments
 (0)