Skip to content

Commit d053bb0

Browse files
committed
css magic for author in blog
1 parent 350edb2 commit d053bb0

File tree

3 files changed

+64
-17
lines changed

3 files changed

+64
-17
lines changed

blog/2024-09-14-fastnet-sunsetting-dates-set.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ tags:
99
- League-of-Entropy
1010
slug: /fastnet-to-be-sunset
1111
---
12-
13-
### TL;DR
14-
15-
If you’re currently using `fastnet` you must migrate to `quicknet` by October 31st.
16-
12+
If you’re currently using `fastnet` you must migrate to `quicknet` by October 31st 2024.
1713
<!-- truncate -->
14+
That's the TL;DR!.
1815

1916
## The Details
2017

src/css/blog-sidebar.css

+13-12
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
*/
44

55
/* Remove left margin/padding from main container */
6-
.container.margin-vert--lg {
6+
.blog-wrapper .container.margin-vert--lg {
77
padding-left: 0;
88
margin-left: 0;
99
max-width: 100%;
1010
}
1111

1212
/* Target the blog wrapper structure */
13-
.container.margin-vert--lg .row {
13+
.blog-wrapper .container.margin-vert--lg .row {
1414
display: flex;
1515
margin-left: 0;
1616
}
1717

1818
/* Make blog sidebar match docs sidebar layout */
19-
.container.margin-vert--lg .row aside.col.col--3 {
19+
.blog-wrapper .container.margin-vert--lg .row aside.col.col--3 {
2020
border-right: 1px solid var(--ifm-toc-border-color);
2121
margin-right: 1rem;
2222
padding-right: 1rem;
@@ -31,12 +31,12 @@
3131
}
3232

3333
/* Style the sidebar nav container like docs */
34-
nav.sidebar_re4s.thin-scrollbar {
34+
.blog-wrapper nav.sidebar_re4s.thin-scrollbar {
3535
padding: var(--ifm-spacing-horizontal);
3636
}
3737

3838
/* Style blog sidebar header like docs */
39-
.sidebarItemTitle_pO2u {
39+
.blog-wrapper .sidebarItemTitle_pO2u {
4040
font-size: var(--ifm-h3-font-size);
4141
font-weight: var(--ifm-font-weight-bold);
4242
padding: var(--ifm-padding-vertical) 0;
@@ -45,7 +45,7 @@ nav.sidebar_re4s.thin-scrollbar {
4545
}
4646

4747
/* Format blog sidebar items like docs */
48-
.sidebar_re4s a.sidebar-item {
48+
.blog-wrapper .sidebar_re4s a.sidebar-item {
4949
display: block;
5050
border-radius: var(--ifm-global-radius);
5151
padding: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal);
@@ -54,32 +54,33 @@ nav.sidebar_re4s.thin-scrollbar {
5454
margin: 0.2rem 0;
5555
}
5656

57-
.sidebar_re4s a.sidebar-item:hover {
57+
.blog-wrapper .sidebar_re4s a.sidebar-item:hover {
5858
background-color: var(--ifm-menu-color-background-active);
5959
color: var(--ifm-menu-color-active);
6060
}
6161

6262
/* Limit article width for better readability */
63-
.container.margin-vert--lg article {
63+
.blog-wrapper .container.margin-vert--lg article {
6464
max-width: 900px;
6565
margin: 0 auto;
6666
}
6767

6868
/* Width consistency with docs sidebar */
6969
@media (min-width: 997px) {
7070
/* Make container full-width */
71-
.container.margin-vert--lg {
71+
.blog-wrapper .container.margin-vert--lg {
7272
max-width: 100%;
7373
}
7474

75-
.container.margin-vert--lg .row aside.col.col--3 {
75+
.blog-wrapper .container.margin-vert--lg .row aside.col.col--3 {
7676
flex-basis: var(--doc-sidebar-width, 300px) !important;
7777
max-width: var(--doc-sidebar-width, 300px) !important;
7878
}
7979

80-
.container.margin-vert--lg .row .col.col--9 {
80+
.blog-wrapper .container.margin-vert--lg .row .col.col--9 {
8181
max-width: calc(100% - var(--doc-sidebar-width, 300px)) !important;
8282
flex-basis: calc(100% - var(--doc-sidebar-width, 300px)) !important;
8383
padding-left: var(--ifm-spacing-horizontal);
8484
}
85-
}
85+
}
86+

src/css/custom.css

+49
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,52 @@
6969
white-space: normal;
7070
width: auto;
7171
}
72+
73+
/* Blog post header modifications - only for blog pages */
74+
/* Layout fix for blog post metadata */
75+
.blog-wrapper header > :nth-child(2) {
76+
display: inline-block;
77+
margin-right: 8px;
78+
}
79+
80+
.blog-wrapper header > :nth-child(2)::after {
81+
content: "•";
82+
margin-left: 8px;
83+
}
84+
85+
.blog-wrapper header > :nth-child(3) {
86+
display: inline-block !important;
87+
margin-top: 0 !important;
88+
}
89+
90+
.blog-wrapper .authorCol_Hf19 {
91+
padding: 0;
92+
width: auto;
93+
}
94+
95+
.blog-wrapper .avatar {
96+
margin: 0 !important;
97+
}
98+
99+
.blog-wrapper .authorName_yefp {
100+
font-weight: normal;
101+
}
102+
103+
/* Clear float after the elements */
104+
.blog-wrapper header::after {
105+
content: "";
106+
display: table;
107+
clear: both;
108+
}
109+
110+
.blog-wrapper .margin-bottom--xl {
111+
margin-bottom: 2rem !important;
112+
}
113+
114+
.blog-wrapper .docusaurus-mt-lg {
115+
margin-top: 1rem !important;
116+
}
117+
118+
.blog-wrapper .sidebar_re4s {
119+
max-height: 100%;
120+
}

0 commit comments

Comments
 (0)