File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ const currentYear = new Date().getFullYear();
2020 </a >
2121 </div >
2222 <div class =" footer-section" >
23- <p className =" commit-text" >
23+ <p class =" commit-text" >
2424 { import .meta .env .PROD ? " prod@" : " dev@" } <a
25- className =" commit-hash"
25+ class =" commit-hash"
2626 href ={ ` https://github.com/AndrewDTR/website/commit/${hash } ` }
2727 target =" _blank"
2828 aria-label =" GitHub commit hash"
@@ -70,7 +70,6 @@ const currentYear = new Date().getFullYear();
7070 }
7171
7272 .commit-hash {
73- margin-left: 5px;
7473 color: #f0e7d8;
7574 text-decoration: underline;
7675 font-size: 1em;
@@ -84,24 +83,25 @@ const currentYear = new Date().getFullYear();
8483 @media (max-width: 600px) {
8584 .footer-container {
8685 flex-direction: column;
87- align-items: flex-start;
88- padding: 10px 15px;
86+ align-items: center;
87+ padding: 12px 15px;
88+ gap: 4px;
8989 }
9090
9191 .footer-right {
9292 width: 100%;
93- justify-content: space-between;
94- margin-top: 10px;
93+ justify-content: center;
94+ text-align: center;
95+ margin-top: 2px;
9596 }
9697
9798 .footer-section {
98- width: 48% ;
99+ width: auto; ;
99100 margin-right: 0;
100- margin-bottom: 10px;
101101 }
102102
103103 .footer-section:last-child {
104- text-align: right ;
104+ text-align: center ;
105105 }
106106
107107 .commit-hash {
@@ -111,6 +111,11 @@ const currentYear = new Date().getFullYear();
111111 .rss {
112112 display: none;
113113 }
114+
115+ .footer-words p,
116+ .commit-text {
117+ margin: 0;
118+ }
114119 }
115120
116121 .fa-square-rss {
Original file line number Diff line number Diff line change 11---
22import " ../styles/global.css" ;
3- const currentPath = Astro .url . pathname ;
3+ const currentPath = Astro .originPathname ;
44// remove leading or trailing slashes
55const fixedPath = currentPath .replace (/ ^ \/ | \/ $ / g , " " );
66
Original file line number Diff line number Diff line change @@ -193,14 +193,8 @@ allPosts.sort(
193193 }
194194
195195 p {
196- margin: 0 0 10px 0;
197- padding: 0 10px;
198- }
199-
200- .blog-list {
201- margin: 0;
202- padding: 0;
203- width: 100%;
196+ margin: 10px 0 10px 0;
197+ padding: 0 20px;
204198 }
205199
206200 .blog-post-item {
@@ -218,6 +212,14 @@ allPosts.sort(
218212 margin-top: 12px;
219213 margin-bottom: 5px;
220214 }
215+
216+ .blog-list {
217+ margin-top: 0;
218+ margin-left: 20px;
219+ margin-right: 20px;
220+ padding: 0;
221+ width: auto;
222+ }
221223 }
222224
223225 .first-like,
You can’t perform that action at this time.
0 commit comments