Skip to content

Commit fee56fe

Browse files
committed
Standard theme improved.
1 parent 892b928 commit fee56fe

File tree

4 files changed

+31
-15
lines changed

4 files changed

+31
-15
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/base/_base.scss

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
html {
1+
html {
22
font-size: 1em;
33
}
44

5-
html, body {
5+
body,
6+
html {
67
height: 100%;
78
}
89

@@ -17,9 +18,13 @@ body {
1718
overflow-y: scroll;
1819
padding-top: 2rem;
1920
}
20-
2121
// typography
22-
h1, h2, h3, h4, h5, h6 {
22+
h1,
23+
h2,
24+
h3,
25+
h4,
26+
h5,
27+
h6 {
2328
margin: 0 0 1rem;
2429
font-family: $font-family-heading;
2530
font-weight: $font-weight-bold;
@@ -41,24 +46,22 @@ p {
4146
img {
4247
max-width: 100%;
4348
}
44-
4549
// container
4650
.container {
4751
width: 80rem;
4852
max-width: 100%;
4953
padding-right: 2rem;
5054
padding-left: 2rem;
5155
}
52-
5356
// blog-wrapper
5457
.blog-wrapper {
5558
display: table;
5659
table-layout: fixed;
5760
width: 100%;
5861
max-width: 100%;
5962

60-
> .blog-content,
61-
> .blog-sidebar {
63+
> .blog-sidebar,
64+
> .blog-content {
6265
display: table-cell;
6366
vertical-align: top;
6467
}
@@ -75,22 +78,31 @@ img {
7578
width: 100%;
7679
}
7780

81+
.blog-footer,
82+
.blog-header,
83+
.widgetzone {
84+
max-width: 18.75rem;
85+
}
7886
@media screen and (max-width: 75rem) {
7987
> .blog-sidebar {
8088
width: 15.625rem;
8189
min-width: 15.625rem;
8290
}
8391
}
84-
8592
@media screen and (max-width: 64rem) {
8693
> .blog-content {
8794
padding-left: 1rem;
8895
}
8996
}
90-
9197
@media screen and (max-width: 50rem) {
9298
display: block;
9399

100+
.blog-footer,
101+
.blog-header,
102+
.widgetzone {
103+
max-width: none;
104+
}
105+
94106
> .blog-sidebar {
95107
.widgetzone {
96108
display: none;
@@ -101,8 +113,8 @@ img {
101113
}
102114
}
103115

104-
> .blog-sidebar,
105-
> .blog-content {
116+
> .blog-content,
117+
> .blog-sidebar {
106118
display: block;
107119
vertical-align: top;
108120
padding: 0;
@@ -111,7 +123,6 @@ img {
111123
}
112124
}
113125
}
114-
115126
@media screen and (max-width: 64rem) {
116127
body {
117128
padding-top: 1rem;

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/scss/sections/_post.navigation.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
width: 100%;
44
overflow: hidden;
55
padding: 0;
6-
display: none;
76

87
a {
98
text-decoration: none;
@@ -22,4 +21,7 @@
2221
> div.text-left {
2322
border-right: 1px solid #ddd;
2423
}
24+
@media screen and (max-width: 64rem) {
25+
display: none;
26+
}
2527
}

BlogEngine/BlogEngine.NET/Custom/Themes/Standard/src/scss/sections/_post.related.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@
2626
color: #aaa;
2727
}
2828
}
29+
@media screen and (max-width: 64rem) {
30+
display: none;
31+
}
2932
}

0 commit comments

Comments
 (0)