Skip to content

Commit

Permalink
style(front): remove content container background
Browse files Browse the repository at this point in the history
this was inconsistent. trying out zero background across all pages — this may have a performance benefit as well.
  • Loading branch information
dgrebb committed Jan 28, 2024
1 parent 923084c commit 4b8b1b3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
8 changes: 0 additions & 8 deletions front/src/lib/styles/components/post-hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@
}

@media screen and (min-width: 640px) {
.post {
margin-top: 1.5rem;
}
.post-hero-wrap {
height: 400px;
}
Expand All @@ -83,11 +80,6 @@
}

@media screen and (min-width: 768px) {
.post {
margin-top: 3.5rem;
background: var(--content-bg-gradient), var(--bg-clr);
padding: 2.33rem;
}
.post-hero-wrap {
top: -5rem;
left: 0;
Expand Down
4 changes: 2 additions & 2 deletions front/src/lib/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ a.scroll-top {
}
}

@media screen and (min-width: 768px) {
/* @media screen and (min-width: 768px) {
.privacy,
.post {
box-shadow: var(--shadow-elevation-high);
Expand All @@ -190,4 +190,4 @@ a.scroll-top {
.post::before {
background: var(--rim-light-mask-bg);
}
}
} */
8 changes: 4 additions & 4 deletions front/src/lib/styles/pages/category.css
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@
}
}

.category-posts-transition-container {
/* .category-posts-transition-container {
box-shadow: var(--shadow-elevation-low);
background: var(--rim-light-bg), var(--bg-clr);
&::before {
background: var(--rim-light-mask-bg);
}
}
} */

@media screen and (min-width: 480px) {
.transition-elastic-fly-container ul {
Expand Down Expand Up @@ -259,13 +259,13 @@
float: left;
width: 77%;
}
.category-posts-transition-container {
/* .category-posts-transition-container {
box-shadow: var(--shadow-elevation-high);
background: var(--category-rim-light-bg), var(--bg-clr);
&::before {
background: var(--category-rim-light-mask-bg);
}
}
} */
}
}

Expand Down
8 changes: 4 additions & 4 deletions front/src/lib/styles/pages/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
position: relative;
margin-top: 1.75rem;
margin-left: 1rem;
border-radius: 0.77rem;
&::before {
/* border-radius: 0.77rem; */
/* &::before {
position: absolute;
mask:
linear-gradient(3deg, #fff 0 0) content-box,
Expand All @@ -14,7 +14,7 @@
border-radius: 0.77rem;
padding: 1px 1px 0 0;
content: '';
}
} */

.post-article {
position: relative;
Expand Down Expand Up @@ -495,7 +495,7 @@
@media screen and (min-width: 768px) {
.post {
margin-top: 3.5rem;
background: var(--content-bg-gradient), var(--bg-clr);
/* background: var(--content-bg-gradient), var(--bg-clr); */
padding: 2.33rem;
}
.post-article,
Expand Down

0 comments on commit 4b8b1b3

Please sign in to comment.