Skip to content

Commit

Permalink
wip(front): adjust category and post title padding (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Feb 9, 2024
1 parent 97bf328 commit 88442b7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ crash.*.log
############################
_ci/backstop/bd/bitmaps_test/*
_ci/backstop/bd/html_report/*
_ci/backstop/bd/bitmaps_reference/local

############################
# Browser Performance Tests
Expand Down
1 change: 0 additions & 1 deletion front/src/lib/styles/base/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
display: flex;
position: relative;
align-items: center;
z-index: 9;
padding: 1.25rem 0 0 1rem;
}

Expand Down
40 changes: 20 additions & 20 deletions front/src/lib/styles/pages/category.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
position: relative;
flex-direction: column;
align-items: center;
padding-bottom: 0;
font-family: var(--font-lb);
}
h1.page-heading {
padding-right: 2rem;
padding-bottom: 1rem;
}
.category-name {
Expand All @@ -18,7 +20,7 @@
.page-navigation.mini.top {
display: block;
position: absolute;
top: 2.5rem;
top: 1rem;
right: 0;
padding: 0.5rem;
.page-navigation-toggle {
Expand Down Expand Up @@ -208,7 +210,10 @@

@media screen and (min-width: 480px) {
.transition-elastic-fly-container ul {
padding: 2rem;
/* padding: 2rem; */
}
.category h1.page-heading {
padding-right: 0;
}
.category .category-posts-list .post-item .category-tag a {
margin-bottom: 0.33rem;
Expand All @@ -230,24 +235,6 @@
@media screen and (min-width: 768px) {
.category {
padding: 0 2.33rem 5rem 2rem;
}
.transition-elastic-fly-container ul {
padding: 3rem;
}
.category .aside {
display: block;
padding-right: 0;
width: 20%;
}
.post-item-image {
margin-left: 2rem;
width: 5rem;
height: 5rem;
}
}

@media screen and (min-width: 768px) {
.category {
.page-navigation.mini.top {
display: none;
}
Expand All @@ -267,6 +254,19 @@
}
} */
}
.transition-elastic-fly-container ul {
/* padding: 3rem; */
}
.category .aside {
display: block;
padding-right: 0;
width: 20%;
}
.post-item-image {
margin-left: 2rem;
width: 5rem;
height: 5rem;
}
}

@media screen and (min-width: 900px) {
Expand Down
14 changes: 8 additions & 6 deletions front/src/lib/styles/pages/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.post-title {
left: -1px;
z-index: 5;
margin-top: 0;
margin-top: 1rem;
margin-bottom: 0;
padding: 0 1rem;
line-height: 1.2;
Expand Down Expand Up @@ -389,15 +389,17 @@
@media screen and (min-width: 333px) {
.post {
margin-top: 0;
.pubdate {
padding-left: 1.5rem;
}
}
}

@media screen and (min-width: 480px) {
.post .post-title {
padding: 1rem 1.5rem 0;
.post {
.pubdate {
padding-left: 1.5rem;
}
.post-title {
padding: 1rem 1.5rem 0;
}
}
.post .post-title,
.post .post-article {
Expand Down
2 changes: 1 addition & 1 deletion front/src/routes/privacy/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function load() {
};

var markedPrivacyDetails = privacyContent
? await marked(privacyContent.details)
? marked(privacyContent.details)
: false;

return {
Expand Down

0 comments on commit 88442b7

Please sign in to comment.