Skip to content

Commit 6074861

Browse files
committed
comments in standard theme fixed.
1 parent fee56fe commit 6074861

File tree

4 files changed

+76
-35
lines changed

4 files changed

+76
-35
lines changed

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/css/styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/scss/sections/_comments.scss

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
.lbl-CommentsDisabled {
1+
.lbl-CommentsDisabled {
22
color: rgba(255, 255, 255, 0.3);
33
text-transform: uppercase;
44
display: block;
55
position: relative;
6-
font-size: .875rem;
6+
font-size: 0.875rem;
77
margin-bottom: 2rem;
88
text-align: center;
99

1010
&:before {
11-
margin-right: .5rem;
11+
margin-right: 0.5rem;
1212
position: relative;
1313
top: $px1;
1414
@include fontawesome("\f023");
@@ -28,12 +28,16 @@
2828
.comment-item {
2929
margin-left: 3.5rem;
3030
}
31+
32+
#status {
33+
margin-left: 3.5rem;
34+
}
3135
}
3236

3337
.comment-content {
3438
position: relative;
3539
min-height: 3rem;
36-
margin-bottom: .5rem;
40+
margin-bottom: 0.5rem;
3741
margin-left: 3.5rem;
3842
background-color: #eee;
3943
padding: 1rem;
@@ -48,7 +52,7 @@
4852
}
4953

5054
.comment-author {
51-
margin-bottom: .5rem;
55+
margin-bottom: 0.5rem;
5256
font-weight: $font-weight-bold;
5357

5458
a {
@@ -58,26 +62,26 @@
5862

5963
.comment-replylink {
6064
color: #aaa;
61-
font-size: .75rem;
65+
font-size: 0.75rem;
6266
font-style: italic;
6367
font-weight: $font-weight-normal;
6468
text-transform: uppercase;
65-
margin-top: .5rem;
69+
margin-top: 0.5rem;
6670
}
6771

6872
.comment-adminlinks {
6973
font-size: 0;
7074

7175
a {
7276
color: #fff;
73-
font-size: .875rem;
77+
font-size: 0.875rem;
7478
background-color: $color-danger;
75-
margin-right: .5rem;
79+
margin-right: 0.5rem;
7680
display: inline-block;
77-
padding: .25rem 1rem;
78-
border-radius: $px3;
81+
padding: 0.25rem 1rem;
7982

80-
&:nth-child(1), &:nth-child(2) {
83+
&:nth-child(1),
84+
&:nth-child(2) {
8185
display: none;
8286
}
8387

@@ -88,13 +92,24 @@
8892
}
8993

9094
.comment-form {
91-
display: none;
95+
box-shadow: none;
96+
padding: 0;
97+
margin-left: 3.5rem;
98+
margin-top: 1rem;
9299
}
93100

101+
p#cancelReply a {
102+
color: #fff;
103+
font-size: 0.875rem;
104+
background-color: #666;
105+
display: inline-block;
106+
padding: 0.25rem 1rem;
107+
margin-left: 3.5rem;
108+
}
94109
@media screen and (max-width: 48rem) {
95110
.comment-content {
96111
margin-left: 0;
97-
padding: 0 0 .5rem;
112+
padding: 0 0 0.5rem;
98113
background: none;
99114
border-bottom: $px1 solid #ddd;
100115

@@ -104,7 +119,6 @@
104119
}
105120

106121
.comment-item {
107-
108122
.comment-item {
109123
margin: 0;
110124
}
@@ -126,7 +140,6 @@
126140
}
127141
}
128142

129-
130143
#status.warning {
131144
background-color: $color-danger;
132145
display: block;
@@ -142,19 +155,18 @@
142155
color: #fff;
143156
margin-bottom: 1rem;
144157
margin-left: 3.5rem;
145-
146158
@media screen and (max-width: 48rem) {
147159
margin-left: 0;
148160
}
149161
}
150162

151-
152163
#commentCaptcha {
153164
position: relative;
154165
display: table;
155166
width: 100%;
156167

157-
label, #simpleCaptchaValue {
168+
#simpleCaptchaValue,
169+
label {
158170
display: table-cell;
159171
vertical-align: top;
160172
}
@@ -174,7 +186,7 @@
174186
height: 2.5rem;
175187
border: 1px solid #ccc;
176188
outline: none !important;
177-
padding: .5rem;
189+
padding: 0.5rem;
178190
width: 100%;
179191
min-width: 100%;
180192
}
@@ -183,6 +195,6 @@
183195
position: absolute;
184196
bottom: -.875rem;
185197
left: 0;
186-
font-size: .75rem;
198+
font-size: 0.75rem;
187199
}
188200
}

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/scss/sections/_pages.scss

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,42 @@
1-
.page-global, .well-global {
1+
.page-global {
2+
div#admin {
3+
font-size: 0;
4+
5+
a {
6+
color: #fff;
7+
font-size: 0.75rem;
8+
margin-right: 0.5rem;
9+
display: inline-block;
10+
padding: 0.25rem 1rem;
11+
text-align: center;
12+
text-transform: uppercase;
13+
background-color: #ddd;
14+
15+
&:first-child {
16+
background-color: $color-info;
17+
}
18+
19+
&:last-child {
20+
background-color: $color-danger;
21+
}
22+
}
23+
}
24+
}
25+
26+
.page-global,
27+
.well-global {
228
box-shadow: $shadow-normal;
329
background: #fff;
430
margin-bottom: 2rem;
531
padding: 3rem;
6-
732
@media screen and (max-width: 64rem) {
833
margin-bottom: 1rem;
934
padding: 1.5rem;
1035
}
1136

1237
.page-global-title {
1338
font-size: 1.5rem;
14-
}
39+
}
1540
}
1641

1742
#trackbacks {

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/scss/sections/_posts.scss

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.post {
1+
.post {
22
background: #fff;
33
box-shadow: $shadow-normal;
44
margin-bottom: 2rem;
@@ -11,7 +11,7 @@
1111
.post-title {
1212
line-height: 1;
1313
font-size: 2.25rem;
14-
margin: 0 0 .5rem;
14+
margin: 0 0 0.5rem;
1515
font-weight: $font-weight-bold;
1616

1717
a {
@@ -46,15 +46,22 @@
4646
text-decoration: underline;
4747
}
4848

49-
h1, h2, h3, h4, h5, h6 {
49+
h1,
50+
h2,
51+
h3,
52+
h4,
53+
h5,
54+
h6 {
5055
margin-top: 2rem;
5156
}
5257

5358
h2 {
5459
font-size: 1.4375rem;
5560
}
5661

57-
h3, h4, h5 {
62+
h3,
63+
h4,
64+
h5 {
5865
font-size: 1.25rem;
5966
}
6067
}
@@ -69,11 +76,10 @@
6976

7077
a {
7178
color: #fff;
72-
font-size: .75rem;
73-
margin-right: .5rem;
79+
font-size: 0.75rem;
80+
margin-right: 0.5rem;
7481
display: inline-block;
75-
padding: .25rem 1rem;
76-
border-radius: $px3;
82+
padding: 0.25rem 1rem;
7783
text-align: center;
7884
text-transform: uppercase;
7985
background-color: #ddd;
@@ -91,12 +97,10 @@
9197
}
9298
}
9399
}
94-
95100
@media screen and (max-width: 64rem) {
96101
margin-bottom: 1rem;
97102
padding: 1.5rem;
98103
}
99-
100104
@media screen and (max-width: 40rem) {
101105
.post-footer {
102106
display: none;

0 commit comments

Comments
 (0)