Skip to content

Commit

Permalink
fix(front): adds background color to privacy, post page; reduce marg… (
Browse files Browse the repository at this point in the history
…#702)

…in >480px

closes #695
  • Loading branch information
dgrebb authored Sep 28, 2023
1 parent 954a021 commit 918dc56
Show file tree
Hide file tree
Showing 47 changed files with 45 additions and 34 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 8 additions & 14 deletions front/src/lib/styles/base/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@
.privacy,
.post,
.category-posts-transition-container {
background: var(--rim-light-bg), var(--bg-clr);
&::before {
background: var(--rim-light-mask-bg);
}
@media screen and (min-width: 640px) {
box-shadow: var(--shadow-elevation-high);
background: var(--rim-light-bg);
&::before {
background: var(--rim-light-mask-bg);
}
}
h1,
h2,
Expand Down Expand Up @@ -215,9 +215,6 @@
}

.post {
@media screen and (max-width: 639px) {
background-color: var(--bg-clr);
}
.summary::first-letter {
color: var(--highlight-clr);
}
Expand Down Expand Up @@ -564,12 +561,12 @@
.privacy,
.post,
.category-posts-transition-container {
background: var(--rim-light-bg), var(--bg-clr);
&::before {
background: var(--rim-light-mask-bg);
}
@media screen and (min-width: 640px) {
box-shadow: var(--shadow-elevation-high);
background: var(--rim-light-bg);
&::before {
background: var(--rim-light-mask-bg);
}
}
h1,
h2,
Expand Down Expand Up @@ -612,9 +609,6 @@
.pubdate {
color: var(--celestial-a75);
}
.post-title {
/* text-shadow: 0 -0.11rem 1.5rem hsl(var(--shadow-color) / 5); */
}
.post-article {
.heading-anchor-link {
&:hover,
Expand Down
4 changes: 3 additions & 1 deletion front/src/lib/styles/components/posts-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
transition-property: filter;
transition-timing-function: var(--transition-timing-function);
cursor: pointer;
box-shadow: var(--shadow-elevation-medium);
border-radius: 0.75rem;
background-position: center top;
background-size: cover;
background-repeat: no-repeat;
min-height: 7rem;
@media screen and (min-width: 480px) {
box-shadow: var(--shadow-elevation-medium);
}
.post-link {
display: block;
backdrop-filter: blur(0.5rem);
Expand Down
20 changes: 12 additions & 8 deletions front/src/lib/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,29 @@ html {
}

body {
@apply dg--font-psxl
flex
flex-col
items-center
text-base
md:text-lg;
display: flex;
position: relative;
flex-direction: column;
align-items: center;
transition: scrollbar-color 1s;
padding-right: 7px;
padding-left: 7px;
height: 100vh;
min-height: 100vh;
overflow: overlay;
scroll-behavior: smooth;
scrollbar-gutter: stable both-edges;
scrollbar-width: thin;
color: var(--fg-clr);
font-size: 1rem;
line-height: 1.5rem;
font-family: var(--font-psxl);
@media screen and (min-width: 480px) {
padding-right: 7px;
padding-left: 7px;
}
@media screen and (min-width: 640px) {
scrollbar-gutter: stable;
font-size: 1.125rem;
line-height: 1.75rem;
}
@media (hover: none),
(hover: on-demand),
Expand Down
13 changes: 11 additions & 2 deletions front/src/lib/styles/pages/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,28 @@
display: flex;
flex-direction: column;
align-items: center;
transition-duration: var(--transition-duration);
transition-property: max-width;
@apply dg--transition-effect;
padding-right: 1rem;
padding-left: 1rem;
.bio-picture {
position: relative;
z-index: 5;
transition-duration: var(--transition-duration);
transition-property: border-color, opacity, filter;
transition-timing-function: var(--transition-timing-function);
margin-top: 1rem;
box-shadow: var(--shadow-elevation-low);
border-radius: 50%;
width: 120px;
height: 120px;
@apply dg--transition-effect;
}
@media screen and (min-width: 480px) {
padding-right: 0;
padding-left: 0;
.bio-picture {
margin-top: auto;
}
}
h1.headline {
transition: color, font-size;
Expand Down
2 changes: 1 addition & 1 deletion front/src/lib/styles/pages/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.post {
display: block;
position: relative;
margin-top: 0.75rem;
margin-top: 2.25rem;
border-radius: 0.77rem;
@media screen and (min-width: 640px) {
margin-top: 1.5rem;
Expand Down
18 changes: 10 additions & 8 deletions front/src/lib/styles/pages/privacy.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
.privacy {
margin-top: 1rem;
font-size: 1rem;
@apply max-w-4xl
p-5
shadow-xl
sm:p-9;
@screen sm {
margin-top: 3rem;
padding-top: 7.77rem;
}
max-width: 56rem;
padding: 1.25rem;
position: relative;
border-radius: 0.77rem;
background-color: rgba(var(--background-saturated), 0.77);
@media screen and (min-width: 640px) {
margin-top: 1rem;
padding-top: 7.77rem;
}
@media screen and (min-width: 768px) {
margin-top: 2.75rem;
}
&::before {
position: absolute;
mask:
Expand Down

0 comments on commit 918dc56

Please sign in to comment.